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 ...


7

If memory use is your prime concern, then lots of little (low vertex count) features is probably going to be more to your liking than a few very large (high vertex count) features. But you may find that "too many features" may eventually overwhelm even "too many vertices" for processing speed. If you think about how the algorithms must be structured to ...


7

A Dissolve operation will usually reduce the number of features, arcs and nodes within a layer, particularly for layers with significant lengths of shared boundaries. Since the time spent during a Buffering operation is highly dependent on the number of nodes, pre-processing with Dissolve may significantly reduce the running time (and memory requirements). ...


4

Have you installed IE11? There is a bug registered as NIM097058 - The 'Simplification Tolerance' option disappears from the Simplify Line and Simplify Polygon geoprocessing tools after installing Internet Explorer (IE) 11. It's solved in 10.3. See bug description for workarounds in 10.2.


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


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

The simplest solution I have found thanks to GISGe's hint is modifying only the updateParameter() method in validationtool class, adding this code. if self.params[0].value: self.params[4].value = "output" This will generate a string with the default workspace with basename, "output". I dont have to modify the python script at all. Thanks to all!!!


1

You should use arcpy.Describe() and/or the os.path Python module. For example: import arcpy, os input = arcpy.GetParameterAsText(0) output_workspace = arcpy.Describe(input).path # the file path, or geodatabase for geodatabase datasets suffix = 1 output_name = arcpy.Describe(input).baseName + "_" + suffix # the file base name + a suffix ...


1

Not sure what you mean. The only options are to "derive" a parameter, ie. when you select a featureclass as a first parameter, one of the derived parameters could be a list of fields for the second input parameter. Alternately, you can provide defaults for any parameter so that when a tool is opened, it will appear as the default option.


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

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

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 ...



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