|
POST
|
When you view the data in ArcMap does it align correctly? What coordinate system is this anyway?
... View more
02-16-2017
10:50 PM
|
1
|
4
|
2350
|
|
POST
|
If it was all around 200-300m I would definitely point to a datum difference between the 2 datasets. Have you tried overlaying the data on top of some of the online basemaps like imagery or something? What do you see in terms of alignment?
... View more
02-16-2017
06:37 AM
|
1
|
8
|
3359
|
|
POST
|
How far is the shift? They will always be differences if these 2 datasets are from different sources and scales. Coordinate system? Datum shift?
... View more
02-15-2017
04:56 AM
|
1
|
1
|
3359
|
|
POST
|
Yes it should do. I always tick the box "make paths relative" on these sort of tools.
... View more
02-15-2017
02:16 AM
|
2
|
0
|
956
|
|
POST
|
Well, here we have another embedded update with a search cursor on the same feature. I don't think this is the correct approach. First read the data into a dictionary (as per other posts rfairhur24) Then do the updates. You are also deleting s_row within the inner loop, so what will the inner loop do with the updateRow without this object?
... View more
02-14-2017
07:49 AM
|
0
|
1
|
5177
|
|
POST
|
That's just the temporary feature "in_memory" for the feature set. You are using the flags.lyr to set the schema (data type - polygon, line or point) and symbology.
... View more
02-14-2017
04:58 AM
|
2
|
2
|
956
|
|
IDEA
|
"can’t write python scripts" Well, once you have gone beyond a certain level of complexity, getting the process into python can be very fulfilling. There are lots of code snippets in the standard help files and many more here and elsewhere. I would regard be able to have some basic understanding of scripting a required skill. And it's not that difficult.
... View more
02-13-2017
11:10 PM
|
0
|
1
|
4100
|
|
POST
|
So, what exactly is the error message you are getting. And, yes, topo to raster should do a reasonable job of interpolating the contour lines into a raster. Don't forget that you seem to be dealing with 2 separate things here - bathymetry, which i take to mean an elevation surface. Watch out for signs here. ie is it negative, below sea level. And isopachs, which I take to mean thickness of a certain layer. If you want to use other methods you could convert the lines to points using one of the conversion tools.
... View more
02-13-2017
10:26 PM
|
0
|
1
|
1590
|
|
IDEA
|
Once you have gone beyond a certain level of processing complexity, it is probably better to pythonise the code. It will be faster and more efficient.
... View more
02-13-2017
07:04 AM
|
0
|
1
|
4100
|
|
POST
|
with arcpy.da.SearchCursor(table,fieldnames,expression) as sCursor: # you open the cursor
for sRow in sCursor: # and start reading each row
table_name=str(sRow[0])+"_"+str(sRow[1])+"_data1" # conduct some table identifier
iCursor=arcpy.da.InsertCursor(table_name,fieldnames) # open cursor and insert row
iCursor.insertRow(sRow)# i hope that table_name exists and fieldnames are compatible
del iCursor # this is okay in this context
del sRow # but woah, why am I deleting the row, it will be recreated on next look anyway
del sCursor # and now I have deleted the cursor itself
# that's why you get an error on the second time round the read.
print("Table "+table_name+" filled") Just to get back to this little bit of code... So, with statements are supposed to obviate the need to delete the cursor objects anyway. They are deleted auto magically after the with closes. Basically, don't delete your cursor object while the loop is still reading it.
... View more
02-13-2017
06:59 AM
|
1
|
0
|
4362
|
|
POST
|
Do you have some sort of identifier in the attribute table (other than the object id)? If so you could always do an attribute join back to the original and compare the area.
... View more
02-13-2017
06:46 AM
|
2
|
1
|
1169
|
|
POST
|
If the coordinates are Lat/Long, again, what do those numbers look like?? "lat long coordinates that are in WGS 84 Web Mercator " If they are Lat/Long, then they are not Web Merc but are already GCS_WGS84 (4326)
... View more
02-13-2017
06:42 AM
|
2
|
0
|
4825
|
|
POST
|
The above info from aziegler is spot on. But are you sure your input csv is actually Web Merc coords. Sounds very unusual. What do those numbers look like? And extra unwanted info, both 3857 and 4326 (GCS_WGS_1984) are WGS84 based, a projection is necessary but no transformation is needed.
... View more
02-13-2017
06:40 AM
|
2
|
1
|
4825
|
|
POST
|
Firstly try formatting your code block correctly. I am sure someone will look at it then : Code Formatting... the basics++ | GeoNet
... View more
02-13-2017
06:36 AM
|
0
|
0
|
4410
|
|
POST
|
Without really trying to figure out exactly what is going on here.... with arcpy.da.SearchCursor(table,fieldnames,expression) as sCursor:
for sRow in sCursor:
table_name=str(sRow[0])+"_"+str(sRow[1])+"_data1"
with arcpy.da.InsertCursor(table_name,fieldnames) as iCursor:
for sRow in sCursor: -> This is where I get the RuntimeError
iCursor.insertRow(sRow)
del iCursor
del sRow
del sCursor
print("Table "+table_name+" filled") You are going through sCursor twice here. Then you are deleting it inside the loop. You don't need a with statement for the InsertCursor. I would open the insert outside of the loop.
... View more
02-10-2017
01:14 AM
|
0
|
0
|
4362
|
| 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
|