POST
|
I am having trouble adding a network analyst layer to an mxd using arcpy. I am not getting any errors, yet the layers don't show up after the script completes. I have tried several ways. The first is doing it all in memory. I am creating a layer, say using MakeClosestFacilityLayer, getting the layer from the created object, then adding it via arcpy.mapping.addLayer. I have also exported the Layer to disk and then created a Layer using arcpy.mapping.Layer and then adding that to the mxd. No luck. Help would be appreciated.
... View more
12-11-2017
11:56 AM
|
0
|
5
|
1315
|
POST
|
As the title says, I am using ArcServer tokens generated by the server as a security layer in another program. I found out that the "-" character is sometimes used in the token string. Are there any special characters that are NOT to build a token that I can use to parse out a string that contains the token? Thanks.
... View more
12-05-2017
06:18 AM
|
0
|
1
|
910
|
POST
|
Also it seems that the queryObjectIDs is mandatory for it to work? This makes no sense to me. Basically I can grab single features from an on click event on the feature layer directly, however, what if <1 point are on top of each other? I want all the data. Hence, I was going to use the queryfeatures with a buffer with a map on click. I don't know what my objectids are, and I don't actually care. Any ideas?
... View more
11-08-2017
06:49 AM
|
0
|
1
|
1297
|
POST
|
So this thread is really old - but maybe you can still help me out? I am getting the same error you did at v3.22. I am creating a feature layer from a feature collection (so all the data is stored client side). My data is already spatial, and I define it as such when I instantiate the featurelayer ("esriGeometryPoint")., but I'm still getting the error. Would you happen to still have the code that you used to get this working? The only difference is that I am not needing to query on objectIds. I just want to query based on a mappoint and distance buffer, and no where statement. thanks!
... View more
11-08-2017
06:32 AM
|
0
|
2
|
1297
|
POST
|
So for whatever reason, the geocoding function did not like my mapped path to the locator (like c:\path\to\locator). I ended up using the server name itself (r\\servername\path\to\folder) and that did the trick. Not sure why the geocoding tool is so finicky.
... View more
07-11-2017
10:44 AM
|
0
|
0
|
2044
|
POST
|
Any solution to this problem? I have been having a problem with the geocoding tool not accepting the path for the locator when run in a scheduled task. The locator sits in a folder on a mapped network drive, the rest of the data is on the local C drive. So my setup is similar to yours. The script runs as expected when running from cmd or within IDLE, but not as a scheduled task. Any thoughts on how to move forward would be appreciated.
... View more
06-27-2017
12:00 PM
|
0
|
2
|
2044
|
POST
|
I really feel like it should be a lot easier…thinking about just using a dgrid and populating as I already have my color codes and breaks.
... View more
11-21-2016
07:35 AM
|
0
|
0
|
641
|
POST
|
This information is not provided in the JSON. Shouldn’t that already be created when the classrenderer is created?
... View more
11-21-2016
07:17 AM
|
0
|
2
|
641
|
POST
|
I have created a geoprocessing task that performs a join, and converts to a JSON which then can be retrieved by the client. The reason for this is to limit the amount of memory being used on the server. I do not want to create lots of feature classes on the server, I want the layers to be stored client side. I also strip some fields from features in my JSON before turning it into a feature collection for use in a Feature Layer. I use a Class Breaks Renderer to visualize my data on the map. I am now trying to display the feature layer in a legend, but am having trouble doing so. Is it possible to display my info in the legend? Thanks.
... View more
11-17-2016
11:17 AM
|
0
|
4
|
1187
|
POST
|
I may see if there is a difference in speed between solving on the MakeClosestFacilityLayer and directly running a findclosestfacility process.
... View more
05-14-2016
04:42 PM
|
0
|
0
|
445
|
POST
|
Does anybody have an experience in performing network analyst calculations in ArcObjects versus python? Does ArcObjects tend to run faster than Python? specifically running a Closest Facility Analysis and OD Cost Matrix Analysis. Thanks! Arjun
... View more
05-13-2016
01:44 PM
|
0
|
2
|
2900
|
POST
|
Okay, I was able to switch around my facilities/incidents and “travel_to/from” parameters to sort out in the order I needed and therefore didn’t have to worry about sorting again later. Thanks for your help though!
... View more
05-12-2016
11:22 AM
|
0
|
0
|
1478
|
POST
|
That may work then. I just want to try and limit the number of extra steps as well. I’ll look into it. Thanks!
... View more
05-12-2016
07:10 AM
|
0
|
0
|
1478
|
POST
|
Thanks for the help. I looked into Sort, but it write’s out another table to disc which I then have to read. I am trying to avoid writing to disc, same with generate near table. I have also looked into a list comprehension as well, which I was able to get partly. I need to look into a bit more.
... View more
05-12-2016
07:02 AM
|
0
|
2
|
1478
|
POST
|
Hi Josh, Thanks for the quick response. I just realized something that I need to test, and I broke my program, so Im debugging at the moment. I’ll update you if I figure out the solution! Thanks! Arjun
... View more
05-11-2016
03:00 PM
|
0
|
0
|
1478
|
Title | Kudos | Posted |
---|---|---|
1 | 06-26-2015 10:53 AM | |
1 | 05-19-2015 10:27 AM | |
1 | 04-19-2016 12:53 PM | |
1 | 05-05-2015 08:10 AM | |
2 | 05-05-2015 10:26 AM |
Online Status |
Offline
|
Date Last Visited |
07-14-2021
12:26 PM
|