POST
|
Hi Try an UpdateCursor with a spatial reference set to the datum: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001w000000 Then the XY values returned from the geometry should be in lat/long. Regards
... View more
05-21-2012
06:26 AM
|
0
|
0
|
5
|
POST
|
Keep in mind that ArcMap is a 32 bit application. The network analysis layers such as OD Cost Matrix layers are in-memory layers. Thus they are limited to the overall 2 GB limit. With ArcGIS 10.0, you can run ArcMAP on a 64 bit OS and then that process can access up to 4 GB RAM. So you can solve larger problems. With the upcoming 10.1 release, the ArcGIS Server is true 64 bit app and can access all the RAM you have and will scale even more. You can export the OD to any supported format such as dbase or file geodatabase. And in that case the output has to obey the limits of that particular format. Note that file geodatabase do not have limits whereas dbase does. That said, how big of an OD are you trying to generate? Does the OD solve work and the export fail due to dbase limits? Note that if you do this in ArcMAP, then it has to create and populate the output lines. That table can grow quite large. If you cannot break up/chunk the OD into smaller ones to solve/combine results, then you should consider using an ArcObjects app (.net?) to create the OD (and tell it not to populate the output lines) and directly query the ODCostMatrix object to dump out the data you need. To break up an OD such as 1000 by 1000, you can solve two 500 by 1000 and combine the results. Jay Sandhu
... View more
04-24-2012
08:45 AM
|
0
|
0
|
11
|
POST
|
To clarify: It's not a web service. It's a downloadable custom ArcToolbox script tool created with python. The ultimate goal of the tool is to be able to figure out the area reachable by walking and transit from a given point. To do that, you need to know the network distance between that point and the transit stops you could walk to within the time limit. However, you also need to know the network distance between the transit stops themselves. Someone might, for instance, walk for one minute to get to a stop, get on the bus and ride for 10 minutes, get off the bus and walk for 5 minutes to another stop, and then get on a different bus and ride some more until the time runs out. So, we also need to know the stop-stop network distance to calculate how long it takes to walk between stops. We solve this problem by just calculating one big OD matrix for all the stops, within a cutoff distance. We've separated this part of the tool so you only need to do it once for any city, and you can calculate many different service areas without having to run the long part over and over. The OD matrix just sits in an SQL table that the code can refer to.
... View more
04-20-2012
02:44 PM
|
0
|
0
|
9
|
POST
|
Use a general except clause with print arcpy.GetMessages(3) so arcpy reports the actual error returned. run the script so it fails on the error you want to identify. arcpy should report the error you want to make a named exception for.
... View more
03-13-2012
04:39 AM
|
0
|
0
|
13
|
POST
|
If the layer name that you are after is lines, you should be able to just get it with networkAnalystLayerName+'\\Lines' (where networkAnalystLayerName is the name of the layer you are doing the network analyst stuff on) , i.e.: # if NA_Layer is the variable for your network analyst layer arcpy.Solve_na(NA_Layer) lines = NA_Layer + '\\Lines' Then you will probably need to copy features (i.e. arcpy.CopyFeatures_management(lines)) and do your modifications on the output of copy features.
... View more
11-09-2011
08:17 PM
|
0
|
0
|
1
|
POST
|
I'm trying to figure out how to grab and manipulate Network Analyst output sublayers using python. For instance, I've successfully run an OD cost matrix calculation using python geoprocessing. I get the "Lines" output sublayer. This is probably just a stupid problem, but I can't seem to figure out how to work with the Lines sublayer in python after I create it. I want to: - Create fields in the Lines layer corresponding to my unique stop ids that I put in the origin and destination sublayers and then join the Lines layer to the origin and destination layers so I can grab the stop ids. - Export the Lines layer attributes table, including the new fields with the stop id, to a csv I can do all this by hand, but I want to do it in python, and I'm really stuck. Thanks.
... View more
11-06-2011
08:54 AM
|
0
|
0
|
1815
|
POST
|
Yes it is possible. Each origin as the Cutoff_,attribute name> property that can be set. So if you are solving on a length attribute in miles called Length, then the origins attribute table has a field called Cutoff_Length. You can set it individually for each origin. Or better yet, when you do a Load Locations, this property is listed, so simply map it some field on your existing origins point feature class and have it loaded with the origin locations. Similarly the facilities on the service area solver have a Break_<attribute name> property. You can set it how big of a service area you want computed. And again, you can use Load Locations to load it as well. Regards, Jay Sandhu
... View more
10-18-2011
01:05 PM
|
0
|
0
|
3
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|