Tag Info

New answers tagged

0

In case someone has the same issue, this is my solution. import arcpy fc = "C:\mygdb\myfile" f1, f2, f3 = "EDITOR", "SPECIES", "OBJECTID" clause = arcpy.AddFieldDelimiters(fc, f3) + "= 1" for row in sorted (arcpy.da.SearchCursor (fc, [f1, f2], clause)): print ("{0}_{1}".format(row[0], row[1])) name =("{0}_{1}".format(row[0], row[1])) ...


0

If I understand your question correctly, you may try this: Make copy of line layer Join (non spatial) point layer to line layer by SplitID fields Apply select by attribute on line joined table to "splitID_pole" IS NULL This should select all the duplicate lines b/c their splitID value does not match the point layer splitID value.


2

You want ListFields: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v0000001p000000 in_data = "test" out_data = "testFC" fields = arcpy.ListFields(in_data) for f in fields: print f.name # join prefix and desired field names with an _ new_name = '_'.join([out_data, fields[0].name, fields[1].name]) # data_type is usually optional... ...


2

Your sub-model should end with a Collects Value tool (exposed as a parameter). This collects the featureclasses and returns a list to the master model. Your merge tool can take this list as the input.


0

The error message you are encountering is telling you that the coordinate systems do not match. For example may be you are trying to copy data that is WGS84 into a UTM defined FeatureDataset? All data copied into the FeatureDataset must match the FeatureDataset..


2

Actually, if I open the recent History .xml file, C:\Users\USERNAME\AppData\Roaming\ESRI\Desktop10.1\ArcToolbox\History The most recent will have parameters & env. settings & time. It gives all the geoprocessing tools used (if w/in arcpy) and all the settings and environment settings and time started and finished.


0

You did not specify which software you use in your question. Based on some of your other questions you are using ArcGIS in which there are a couple of ways to solve this problem. One would be to use Raster to Polygon to convert your raster to a vector layer. You may then need to merge or dissolve the resulting shapes into a single bounding box which you can ...



Top 50 recent answers are included