|
POST
|
Your OS map (not familiar with the term) should provide you with some way to reference the coordinate system, as well as, hopefully, some coordinates to locate your grid. You can shift the grid back and forth using the origin coordinate parameters.
... View more
03-18-2015
09:55 AM
|
0
|
1
|
1150
|
|
POST
|
Untested, but should be something like: import arcpy
from arcpy import env
env.workspace = "c:/Wing/Sk"
for i in range(50):
arcpy.FeatureClassToFeatureClass_conversion("spatially50", "c:/Wing/Sk", "pnt" + str(i), "FID=" + str(i))
... View more
03-18-2015
09:39 AM
|
2
|
4
|
4176
|
|
POST
|
Well, it is wrong in the sense that you're not using as a variable (values 0-50), you're using it always as the value 'i'.
... View more
03-18-2015
09:15 AM
|
1
|
0
|
4176
|
|
POST
|
Just to pile on, your where clause "FID = i" literally translates to "where FID = the letter i" (well, technically the number i because it's not within quotes). There are A LOT of discussions on here about how to make a where clause incorporating a variable, and where to put the quotation marks to make it function properly, but I believe it should be as simple as: "FID = " + str(i).
... View more
03-18-2015
09:10 AM
|
1
|
2
|
4176
|
|
POST
|
As Duncan already pointed out, the help page lists the required parameters (there are THREE of them).
... View more
03-18-2015
12:02 AM
|
0
|
0
|
2590
|
|
POST
|
Just a small nit-pick: the method in your link splits lines into x equal lengths, not segments of x length. Subtle difference, and I am sure it has been solved elsewhere, but not there.
... View more
03-17-2015
10:01 PM
|
1
|
1
|
3373
|
|
POST
|
Arcpy implementation (then Split by Lines): >>> fc = "YOUR_LAYER_NAME"
... points = []
... step = 2 # map units
... sr = arcpy.Describe(fc).spatialReference
... with arcpy.da.SearchCursor(fc,"SHAPE@", spatial_reference=sr) as cursor:
... for row in cursor:
... for i in range(int(row[0].length/step)):
... point = row[0].positionAlongLine(i*step)
... points.append(point)
... arcpy.CopyFeatures_management(points, r'in_memory\points')
... View more
03-17-2015
06:22 PM
|
3
|
0
|
3373
|
|
POST
|
I believe you seek Spatial Join, which will create a new point file with county attributes appended.
... View more
03-17-2015
06:00 PM
|
0
|
1
|
1583
|
|
POST
|
It looks like plenty of other users are experiencing the same thing with field mappings in ModelBuilder. Working alternative seems to be to implement in Python, which may or may not be a significant time commitment for you.
... View more
03-17-2015
05:46 PM
|
0
|
8
|
3424
|
|
POST
|
There appears to be neither a geoprocessing tool nor property of arcpy.da Domain class to get at the domain description. You could venture into ArcObjects for the answer, but I'd just copy and paste in that case.
... View more
03-17-2015
05:41 PM
|
0
|
0
|
845
|
|
POST
|
Summation (I assume you mean adding pixel locations between rasters) in the Raster Calculator is achieved through the plus sign.
... View more
03-17-2015
01:11 PM
|
0
|
36
|
2734
|
|
POST
|
IMO, if you're already scripting there is absolutely no reason to use ModelBuilder.
... View more
03-17-2015
12:49 PM
|
0
|
0
|
1577
|
|
POST
|
I'm probably miss-reading your problem, but aren't you describing a Spatial Join? It's unclear exactly which you intend to join to which, since only a point can fall inside a polygon, and only a polygon can be closest to a point, but using 'CLOSEST' Spatial Join will provide the distance, or 0 if overlapping.
... View more
03-17-2015
11:58 AM
|
1
|
0
|
1006
|
|
POST
|
It's hard to tell exactly what your final code block was (not sure if you had the important keyword 'return' in there), but this should work: def FindLabel ( [CV_Ranches_Table_ArcGIS.txt.First], [CV_Ranches_Table_ArcGIS.txt.Second] ):
return "Name: " + [CV_Ranches_Table_ArcGIS.txt.First] + '\n' + [CV_Ranches_Table_ArcGIS.txt.Second] At least, that type of syntax works for simple field names, not sure about field names with '.' (honestly, I didn't know that was possible).
... View more
03-17-2015
11:41 AM
|
1
|
1
|
3800
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-30-2013 02:22 PM | |
| 1 | 04-12-2011 11:19 AM | |
| 1 | 09-17-2021 09:43 AM | |
| 1 | 04-04-2012 12:05 PM | |
| 2 | 07-16-2020 11:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-15-2023
12:11 AM
|