|
POST
|
Hi Leo, from the image I can see that the token error arise for the logistics.arcgis.com url and not for the analysis1.arcgis.com. Maybe the PlanRoutes using more than one analysis services. Try to set on the proxy page this url also.
... View more
05-10-2016
12:06 AM
|
2
|
0
|
2096
|
|
POST
|
so the license is working properly. the problem is with ArcMap. Please see the Event Viewer (windows) in order to detect any application error.
... View more
05-09-2016
03:34 PM
|
1
|
1
|
1745
|
|
POST
|
A nice sample for this is the following Soil details - mobile | ArcGIS API for JavaScript You can use the JQuery for the UI and the ArcGIS Javascript API + Dojo for the GIS functionality.
... View more
05-09-2016
12:08 PM
|
0
|
0
|
670
|
|
POST
|
Hi Hani, Also in the above spatial view Julia proposed, try to create the building centroid and use this point layer to intersect with Parcels, in case you face any performance issue. The performance may vary according to the polygon complexity.
... View more
05-09-2016
12:03 PM
|
0
|
0
|
850
|
|
POST
|
connect from pgAdmin on your SDE geodatabase. find on SDE schema the table sde.sde_server_config and preview the data. the row with the value "AUTH_KEY" on prop_name field hosts the sde license here you can see everything you want.
... View more
05-09-2016
07:28 AM
|
3
|
1
|
2652
|
|
POST
|
try to delete the Normal.mxt file from C:\Users\<user>\AppData\Roaming\ESRI\Desktop10.4\ArcMap\Templates and then open again the ArcMap.
... View more
05-09-2016
07:19 AM
|
1
|
5
|
1745
|
|
POST
|
1. make query on the feature layer and select the features you want to update 2. loop on the result set 3. for each feature applyEdits layerForEdit.applyEdits(null, [newGraphic], null, successApplyGeometry, failApplyGeometry); 4. newGraphic must have the same ObjectID with the selected in order to find and update the correct feature. so try the same with objectid on the Graphic's attribute list.
... View more
05-09-2016
07:11 AM
|
1
|
0
|
603
|
|
POST
|
Hi Leo, General the token and analysis url parameters are more complex on this case to be retrieved. you have to follow the steps here: Programmatically accessing analysis services—ArcGIS REST API: Spatial Analysis Service | ArcGIS for Developers in order to take the token and the analysis url for the PlanRoute task. then see here for more details about the PlanRoute task Plan Routes—ArcGIS REST API: Spatial Analysis Service | ArcGIS for Developers In your case now at the beginning add this : esriConfig.defaults.io.corsEnabledServers.push("analysis1.arcgis.com"); esriConfig.defaults.io.corsEnabledServers.push("www.arcgis.com"); urlUtils.addProxyRule({ urlPrefix: "https://analysis1.arcgis.com", proxyUrl: "http://<machine>/proxy/proxy.ashx" }); later on your code when you set the analysis service url: ..... analysisTools = new PlanRoutes({ // startLayer: "", // endLayer: "", analysisGpServer: "https://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/PlanRoutes/submitJob", portalUrl: "http://www.arcgis.com/", FeatureLayers: [schoolLayer, stopLayer], returnToStart: false, showChooseExtent: false, ......... on the proxy page I am using the following: <serverUrl url="https://analysis1.arcgis.com/arcgis/rest/services" accessToken="xxxxxxxxxxxxxxxx" matchAll="true"/> in order to retrieve the token for your portal use this url https://www.arcgis.com/sharing/generateToken?f=json&request=gettoken&username=<username>&password=<password>&Referer=MyToken but you also can use the clientId and the clientSecret in order to generate the token. by doing that the PlanRoutes submit request is working after that see the PlanRoutes settings Plan Routes—ArcGIS REST API: Spatial Analysis Service | ArcGIS for Developers in order to make it return results
... View more
05-09-2016
02:44 AM
|
2
|
2
|
2096
|
|
POST
|
Try to create a graphic layer and push the graphics on it. then add the click event on the graphic layer var layer = app.map.getLayer("Geodesic"); layer.on('click', function (evt) { alert("asdasd"); }); see an example here Edit fiddle - JSFiddle on line 98 to 102 you will find the click event. this sample creates buffers around a line (click on the map to be created) and after that the red line (Geodesic graphic layer) has the click event. When you click on the red line the alert box arise.
... View more
05-08-2016
11:45 PM
|
1
|
2
|
1731
|
|
POST
|
Hi Leo, You can use the GP Service from ArcGIS Online http://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/PlanRoutes but this require organization account. In order to access the Analysis service from your custom application use proxy page (Using the proxy | Guide | ArcGIS API for JavaScript ) in order to understand how PlanRoute is working use the Analysis tool Plan Routes from ArcGIS Online execute task and inspect the submitJob
... View more
05-06-2016
06:38 AM
|
2
|
4
|
2096
|
|
POST
|
try to construct the map using webmap (by ID or JSON) (e.g. Web map by ID | ArcGIS API for JavaScript ). The Pop -up functionality embedded and managed from webmap and is the easiest way to create , update and manage your custom application content.
... View more
05-06-2016
06:04 AM
|
0
|
0
|
872
|
|
POST
|
Hi Dave, I am using the following code to construct the geometry var polygon = new Polygon({ "rings": [ [ [-81.63820933449949,32.72321758156744], [-81.6381280506363,32.72321758156744], [-81.6381280506363,32.723341259885146], [-81.63820933449949,32.723341259885146], [-81.63820933449949,32.72321758156744] ] ], "spatialReference": { "wkid": 4326 } }); for this geometry the Cendroid is the following alert(selected.geometry.getCentroid().x + " " + selected.geometry.getCentroid().y); as you can see the cendroid point has the right coordinates. check how the polygon constructed.
... View more
05-06-2016
04:11 AM
|
1
|
0
|
1847
|
|
POST
|
Hi maybe you have to download again the file or it is better to ask for an evaluation (ArcGIS for Desktop | Free Trial ). The ArcGIS Desktop software is the same with the original. The download file from here will be with out problems.
... View more
05-05-2016
01:04 AM
|
0
|
4
|
1047
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-05-2017 12:35 AM | |
| 1 | 02-15-2021 07:16 AM | |
| 1 | 02-15-2021 12:05 AM | |
| 1 | 02-15-2021 12:02 AM | |
| 2 | 12-21-2020 12:38 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-20-2025
06:08 AM
|