Tag Info

Hot answers tagged

7

You can accomplish this in batch mode, in ModelBuilder and with Python. Batch Mode: First delete your old XY fields using Delete Fields in batch mode. Right click on the tool and select "batch". Drag the files you want to process into the dialog box. The rows will automatically update to include all of the files you are processing. Choose the XY ...


4

You can easily achieve this using the spatial query plugin. First you select all polygon features that intersect the lines layer. Then you can delete the selection


3

In the looong list of types there is GPValueTable which has an example here: def getParameterInfo(self): param0 = arcpy.Parameter( displayName='Input Features', name='in_features', datatype='GPValueTable', parameterType='Required', direction='Input') param0.columns = [['Feature Layer', 'Features'], ['Long', ...


2

See this prior answer. Each version of ArcGIS uses a specific version and architecture of Python and is hard-linked against it. Forcing an ArcObjects application to use an incompatible Python version will likely lead to a crash.


2

Use the Select Data tool on the result of the Solve tool. It will allow you to get at what you need: The Select Data tool selects data in a parent data element such as a folder, geodatabase, feature dataset, or coverage. The tool allows access to the data stored inside a parent container, such as feature classes or tables inside a geodatabase. ...


2

If the extension were installed but not enabled you'd see a padlock symbol, not a red cross. If a model or script tool has lost its reference you would see such a symbol and you'd need to fix the reference to the tool/model location. See the 10.2 Desktop Help article: Repairing a model


1

You should not need to write the temporary rasters on disks. arcpy optimization is quite obscure to me, but not writing the feature class should help. In fact, you should be able to use geometry object directly for the clip for row in rows: # Execute ExtractByMask outExtractByMask = ExtractByMask(inRaster, row.getValue(shapefieldname)) ...


1

I just opened the same Package Layer (Data Management) tool using ArcGIS 10.2.2 for Desktop and when I browsed to locate a place to create my Output File it set the name to C:\temp\testFolder\test.lpk as expected. Consequently, so I cannot reproduce what you are describing. I think the cause of your ERROR 000814: Invalid file type is that you have not ...


1

The short answer is no - the question is basically about automated feature extraction from imagery. Some of the data that goes into the quad sheets is available as vector data. The National Hydrography Dataset is where you'd start looking. You can grab the point layer, which has stream guages, dams, and 'other' (including seeps/springs) from the National ...


1

The problem could be that you are defining gdbSuccessCount inside of a conditional statement if GDB: gdbSuccessCount = 0 By doing so, if GDB evaluates to false and you keep moving down the script, the variable name gdbSuccessCount will not be set. When you get down to the line if merge and gdbSuccessCount > 1:, the variable gdbSuccessCount has not ...


1

Theres a bunch of things I'd suggest changing. I'm not being picky, I'm listing them all because if you get past the problem you're having, you don't want to get stuck in another section of code. 1) Why are you loading your input into a featureset? I can't think of why this is necessary. Just pass whatever value you're getting directly into buffer. Input = ...


1

I was able to get the Results Window to show up again by deleting the following files: normal.gxt (%AppData%\Roaming\ESRI\Desktop10.1\ArcCatalog) normal.mxt (%AppData%\Roaming\ESRI\Desktop10.1\ArcMap\Templates) normal.mxd (%AppData%\Roaming\ESRI\Desktop10.1\ArcMap\Templates) Booting up ArcMap recreates the new files setting . I'm under the impression ...


1

The step-by-step answer can be found on pages 11 - 12 of the tutorial pdf found in the template. A new toolbox has to be created manually, with the tools added from the main tools list.


1

Use the arcpy.Describe method on the featureset parameter and get the file property. import arcpy notRequiredFeatureSet = arcpy.GetParameter(0) arcpy.AddMessage('AOI is: ' + arcpy.Describe(notRequiredFeatureSet).file) if a Feature set was added: Executing: Script "C:\Program Files\ArcGIS\Desktop10.2\ArcGlobeData\continent.shp" Start Time: Wed ...


1

So, many thanks to all who commented on this. I will go ahead and answer this based on the discussion from those comments and my personal experience. As mentioned by @blah238 and @Branco, there is a JSON property on a featureSet that can be checked, however, when running the script from within ArcMap and using a featureClass as input, checking for that ...


1

I'd add my answer as a comment, but since I can't comment (no reputation enough), I'll add as an answer. It seems that you are trying to add centroid connectors to feed into a traffic assignment algorithm. Right? I should say that doing it automatically is not considered best practice in this industry, but it you are going to do it, I'd like to suggest you ...


1

Since the version 2.x, PyQGIS has an has an interpolate function similar to that of Shapely : for distance in xrange(0,lenght_line,20): point = line.interpolate(distance) look at How to create points in a specified distance along the line in QGIS?



Only top voted, non community-wiki answers of a minimum length are eligible