|
POST
|
Havn't been through your code, it is rather difficult to follow. Consider using arcpy.da style cursor to access data. If you need the separate features of roadSeg and to process them individually you could first read them into a dictionary. Like roadSegDict = {}
with arcpy.da.SearchCursor(fc, ["Segment_ID", "SHAPE@"]) as Cur:
for row in Cur:
roadSegDict[row[0]] = row[1] # row[0] is the Segment_ID, row[1] is the geometry. In this scenario, Segment_ID must be unique. Then you can loop through the contents of roadSegDict. for ID, geom in roadSegDict.iteritems(): When I was last messing with NA datasets, I couldn't find a "Create Network Dataset" tool to use in python. It maybe there somewhere, but I couldn't find it. Ended up having a pre created one (using the wizard), then deleting content, appending content, then solving.
... View more
04-26-2016
07:17 AM
|
1
|
0
|
1389
|
|
POST
|
There doesn't seem to by any attachment. Just post the error in the message please. Is it just an image? With no elevation or DEM underlying it? If so, why make it into a web scene?
... View more
04-26-2016
12:20 AM
|
0
|
1
|
2775
|
|
POST
|
I didn't expect my few lines of comment to generate such a rich & long discussion on the underlying nature of the data tables. Curtis, I remember Info well. Did a lot with that in the depths of info processing. Yes, Info ran on ordered lists. So was not a rdms in any modern sense. Do you recall odd / even record processing.....?
... View more
04-25-2016
05:07 AM
|
0
|
0
|
2181
|
|
POST
|
Firstly, use the advanced editor and post the code with python syntax highlighting. That might make it a bit easier to read. Those paths are very complex and contain spaces and other nasty bits. Have you tried running this locally instead? What is happening here: #Loop through each segment in the feature class to calculate the diversion
for segment in roadSegs:
# Get the segment ID value from the segment line layer
segIDCursor = arcpy.UpdateCursor(roadSegs)
for segRow in segIDCursor:
segID = segRow.getValue('Segment_ID') What is the nature of roadSegs? This does not seem to be a list, it points to something on disk (I think). Then you open an Update cursor, but actually just reads the data. Then it reads everything, so segID will always be the last one in segIDCursor..
... View more
04-25-2016
03:56 AM
|
0
|
2
|
1389
|
|
POST
|
Maybe one of the db gurus can step in here, but I think there is no concept of ordering or gaps in a database table. All inserts will be appended to the end of the table. The only way to get them to be ordered is to reprocess and recreate the data. You can obviously impose an ordering on your view of the data (like sorting the table in ArcMap), but this is doing nothing to the actual order on disc.
... View more
04-22-2016
01:17 AM
|
0
|
7
|
4922
|
|
POST
|
Or (more slicing and dicing...) >>> p = "c:/myPath/myShape.shp"
>>> p
'c:/myPath/myShape.shp'
>>> pNew = "{}{}{}".format(p.split(".")[0], "Area.", p.split(".")[1])
>>> pNew
'c:/myPath/myShapeArea.shp'
>>>
... View more
04-22-2016
12:35 AM
|
1
|
1
|
2192
|
|
POST
|
If you have spatial analyst, have a look at the classification toolbox. To do what you need to do, probably create training areas and use a clustering algorithm. An overview of the Segmentation and Classification toolset—Help | ArcGIS for Desktop
... View more
04-21-2016
01:11 AM
|
1
|
0
|
1006
|
|
POST
|
If I am reading you correctly, 15 arcsec = 4 per arc min, which is approximately +400m per pixel. What sort of imagery is this? It is very unlikely that you will be able to identify features like roads from this data. Have you looked at this imagery? What can you identify? If you can't see it with your eyes, no algorithm will help. Extracting actual features from imagery is not for the faint hearted and is a bit of a black art.
... View more
04-21-2016
12:49 AM
|
0
|
0
|
1044
|
|
POST
|
That's really good Jay. Could you explain how you got the labeling organized please.
... View more
04-20-2016
10:01 AM
|
0
|
1
|
1908
|
|
POST
|
Why don't you just post the picture of your data here?
... View more
04-19-2016
11:54 PM
|
0
|
0
|
1444
|
|
POST
|
Sorry, I'm not into .NET and all that... But what sort of geodatabase are you creating? A file geodatabase is normally called "SomeName.gdb".
... View more
04-19-2016
05:11 AM
|
0
|
2
|
4418
|
|
POST
|
This would normally involve a intersect or union of the inputs, then a summary of the output. Have you looked here (this for v10.3x): An overview of the Analysis toolbox—Help | ArcGIS for Desktop Overlay analysis approaches—Help | ArcGIS for Desktop An overview of the Overlay toolset—Help | ArcGIS for Desktop Summary Statistics—Help | ArcGIS for Desktop
... View more
04-18-2016
12:03 PM
|
1
|
0
|
2735
|
|
POST
|
Have you tried using the ms access data directly. If this is all in a personal geodatabase, there is no need to export to anything. Just add the table to ArcMap and create a XY event layer, then export data. If you have data in a db already there is no need to export to excel, dbf etc beforehand. Have you zoomed in on your "1" point? Perhaps the extent is so zoomed out all you see is one tiny speck of data. What is the coordinate system?
... View more
04-18-2016
11:55 AM
|
0
|
0
|
2485
|
|
POST
|
Firstly, what version are you on? These links from 10.3x help. There is a whole bunch of tools in the cartography toolbox. I don't think there are any hard and fast answers to your query. As usual, it will all depend on your data. You will probably have to experiment, until you get some rules of thumb for your situation. An overview of the Generalization toolset—Help | ArcGIS for Desktop Understanding conflict resolution and generalization—Help | ArcGIS for Desktop Automating conflict resolution and generalization workflows with geoprocessing—Help | ArcGIS for Desktop
... View more
04-18-2016
07:18 AM
|
1
|
0
|
1524
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-08-2015 11:28 PM | |
| 1 | 12-20-2013 08:59 PM | |
| 1 | 05-14-2014 10:38 PM | |
| 1 | 12-16-2013 09:05 PM | |
| 1 | 05-31-2019 02:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|