POST
|
This is my situation. I got a Hadoop datastore which stored all my archived data and I need to provide a playback function to read from Hadoop and display on the map. So my approach is I will provide a REST service (C#.NET MVC) for the user to send a request with parameters like start date and end date. After which, the REST service will base on the parameter that user provided and get the archived data from Hadoop and write it into ArcGIS time aware feature layer for playback. So now I am a bit lost about how to write the archived data from Hadoop to ArcGIS database.
... View more
03-19-2017
06:30 PM
|
0
|
0
|
603
|
POST
|
So the only solution for my problem is calling ArcGIS REST from my server? Or is there any other option?
... View more
03-16-2017
09:37 PM
|
0
|
0
|
603
|
POST
|
Hmm.. noted. Just another check, since it is not possible using Runtime .NET SDK but how come it is possible for Runtime Java SDK? For example, IBM Maximo Spatial Asset Management. It is a web application and server end is run in Java. It somehow seems able to use the Java API to modify the GIS data. Isn't it their Java SDK is using in server?
... View more
03-16-2017
09:23 PM
|
0
|
2
|
603
|
POST
|
Just to share my finding. I managed to apply clustering on stream layer itself by running the clustering function every time upon stream layer "update-end" event. All graphics in that stream layer need to pass into the clustering function in order to perform clustering. This solution might not be perfect but it works for my current requirement.
... View more
03-16-2017
07:36 PM
|
1
|
0
|
474
|
POST
|
Is it possible to use this Runtime .NET SDK to create my own RESTFUL service in order to manipulate with ArcGIS feature layer via .NET MVC? Which to mean that I the MVC controller I need to use the ArcGIS API to some how access ArcGIS server and edit the data.
... View more
03-16-2017
07:25 PM
|
0
|
6
|
1462
|
POST
|
I found a clustering sample in ArcGis website. Points clustering However in the sample is passing in JSON data to the cluster layer in order to perform the clustering. Is there any method to do similar action but the source will be from a stream layer instead of a JSON data or feature layer?
... View more
11-17-2016
08:19 PM
|
0
|
1
|
1061
|
POST
|
Edit fiddle - JSFiddle As can see in the Fiddle sample above, the Trip_ID label is in 7 digits. Anyone can advise how to format the label to show the first 4 digits only?
... View more
11-09-2016
02:26 AM
|
0
|
0
|
451
|
POST
|
Tried and found the answer. ArcGis stream layer with label - JSFiddle
... View more
11-08-2016
05:22 PM
|
0
|
0
|
362
|
POST
|
I am having a stream layer and the stream layer will plot some points on to the map. I would like to implement label beside or near by every single point that stream layer has plotted. Any recommendation how to implement this using javascript?
... View more
11-07-2016
04:41 AM
|
0
|
1
|
1111
|
POST
|
Yes. This is my alternate solution too. Manually remove the point during "graphic-add" event. Just curious that will ArcGis remove the point automatically in stream layer even for the point that manually created provided that "trackId" is defined.
... View more
11-03-2016
06:42 PM
|
0
|
1
|
378
|
POST
|
////// SAMPLE JavaScript//////
//Init stream layer
var streamLayer = new StreamLayer(streamLayerUrl, streamLayerOptions);
//Manually add graphic object into stream layer during init
streamLayer.add(
new Graphic(
new Point(xLoc, yLoc, map.spatialReference),
new SimpleMarkerSymbol(),
{
ID: "1" //trackIdField
}
)
); For example I got sample code as above which will manually plot a point on to stream layer during page on load. After stream layer is starting to publish points to the layer, how to remove the point that manually drew which with same "trackIdField" value and replace by the point pushed out by stream layer itself? Currently my result is the manually plotted point is not removed and the point plotted by stream layer will stacked on top of the manually plotted point (assume the x and y for the point is the same for both manually and stream layer plotted point). Anyone have similar experience that can advise? p/s: streamLayerOptions.maximumTrackPoints is default(1)
... View more
11-03-2016
12:08 AM
|
0
|
3
|
951
|
POST
|
protected boolean determineCentroid(Geometry polygon, Point centroid) {
if (polygon.getType() == Geometry.Type.POLYGON) {
Point tempCentroid;
//Get centroid of the polygon
Envelope env = new Envelope();
polygon.queryEnvelope(env);
tempCentroid = env.getCenter();
//If tempCentroid is within the polygon then centroid is valid, else look for nearest vertex
if (GeometryEngine.within(polygon, tempCentroid, featureServiceTable.getSpatialReference()))
centroid.setXY(tempCentroid.getX(), tempCentroid.getY());
else {
Proximity2DResult proximity2DResult = GeometryEngine.getNearestCoordinate(polygon, tempCentroid, true);
centroid.setXY(proximity2DResult.getCoordinate().getX(), proximity2DResult.getCoordinate().getY());
}
return true;
}
return false;
} I did something as shown above to look for the centroid of a polygon whereby the centre is empty. Although the result it is not really plotted at the "centre" of the polygon but it did solved my problem.
... View more
11-02-2016
11:25 PM
|
0
|
0
|
726
|
POST
|
I need to use ArcGis Runtime SDK for Java API to code it. Feature to point is not available for me.
... View more
09-16-2016
01:50 AM
|
1
|
2
|
726
|
POST
|
Anyone know how to get the centroid of a "C", or "U" shape like polygon and the point need to be inside the polygon some where near the centre?
... View more
09-15-2016
07:15 PM
|
0
|
8
|
1989
|
Title | Kudos | Posted |
---|---|---|
1 | 03-16-2017 07:36 PM | |
1 | 09-16-2016 01:50 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|