Tag Info

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


0

If I understand your question correctly, the following workflow could be an alternative. Create sets of non-overlapping polygon either by code (see this discussion) or manually (run 'zonal statistics as table', identify the zones that have not been calculated and separate them into a new layer. Repeat with the separated layer to find more potential ...


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 think this post may help you http://www.arceyessoft.com/bbs/thread-14-1-1.html


0

The problem appears to be that you're attempting to insert values from your SELECT into a string, but instead are specifying the columns as part of the string literal, rather than constructing the string from the selected values. Try this: UPDATE addresses SET nearest_node_id=(SELECT gid FROM roads ORDER BY geom <-> ST_GeometryFromText('POINT(' || ...


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


0

It depends on the type of analysis you are planning and how irregular your cells are. Anytime pixels are forced to become square, some amount of resampling and deformation is going to take place. You would need to provide more information about the satellite sensor your data originated from and what you're going to be doing with it in ArcGIS before I could ...


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


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


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


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.


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


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

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


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


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


0

It may not be the cause but its good practise to check out the spatial extension and then check it back in at the end of your code. So after the line from arcpy.sa import * put arcpy.CheckOutExtension("Spatial") then at the end of your code use: arcpy.CheckInExtension("Spatial") If you look closely at the error message its trying to create an output ...


0

I see this as two questions: 1) How to find, merge and dissolve features that meet your date requirements and 2) How to preserve the attributes of the search date feature. I will address question 1 in detail. There are several ways to approach this: using Select Layer By Attributes (Data Management) or with a SearchCursor. I often prefer to use the ...


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.


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


0

Adapting my answer to this question: First make ~/.qgis2/python/mytools.py : from qgis.core import (QgsFeature, QgsGeometry, QgsVectorLayer, QgsMapLayerRegistry, QgsField) from PyQt4.QtCore import QVariant from qgis.utils import iface import math def redistribute_geometry_vertices(geom,dist): ...


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


0

Algorithm to get desired result: Take the Line in focus Add some buffer (0.0000005) at Right (or Left) side of the Line geometry. Check whether buffer geometry is ‘Inside’ the Polygon geometry or ‘Overlap’ with Polygon geometry.


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?


0

I'd make this a comment but wanted to post the below code that may help with the understanding of how to use a field info object, or at least add an example (from here: https://geonet.esri.com/message/287684#287684). The key happened to be (and obviously at that thread we were all struggling with it) the field info is modified as an object in memory and ...


1

Those are actually two different things. Geoprocessing tools don't honor the split policies of feature classes or tables as noted on most of help pages for the tools - this one for example (look for the yellow triangle exclamation point). Those are the policies set using domains, and where that third option of Default comes in. As far as I know, this ...



Top 50 recent answers are included