Tag Info

New answers tagged

1

The following Python can be used to sort features by some attribute, here the area, and increment some field, here named 'Rank'. The field should exist. Make your polygon layer the active layer and paste the following code into Python console. aLayer = qgis.utils.iface.activeLayer() # get active layer # create list of tupels of area and feature-id aList= ...


3

Finally, that is a very easy treatment with the MMQGIS plugin (Quantum GIS Plugin Repository). It allows to rewrite on another table using selected column and chosen order. It also works for the circles problem


0

The attribute data in a Shapefile is stored in a dBase III file (.dbf) which is a file format that's over thirty years old. This format has no native support for encryption or security, so if you send someone a Shapefile there is no way to prevent them from accessing or changing the data.


2

Right click whichever field/s you want to withhold, select 'Turn Field Off', export as you normally would, the field/s will not be in the export.


0

Since extract by mask creates an entirely new raster, I wouldn't necessarily expect it to preserve any attribute table associated with the original. The actual values of the new raster should be present and match the original. If using this tool (or similar tools which generate a new raster) you may need to use the Build Raster Attribute Table tool and then ...


0

Looking at your screen shot I cannot see any immediate problem with the general workflow of it. I would imagine (based upon the reported error message) that you have not set up the iterator correctly. Did you set the group by field? If not, the iterator would serve out the entire point dataset. You need to set the group by field to a field that will ...


1

The main bottle neck in my previous code was in reading from a GDB featureclass. Once I converted to a shapefile, my read time dropped to about 10% of the original. I should have remembered that I had the same problem just a few months ago #facepalm. Additionally, in a previous iteration of the current problem, I tried to copy my features to an in_memory ...


1

In a model, this is just a combination of Calculate Value and Calculate Field. Use a bit of Python code/cursors in Calculate Value to pull out the first value from the data source. If your data elements are different in your model, adjust the use of '%Feature Class%' and '%Field Name%' as appropriate. And then hook that up to Calculate Field. With ...


3

Thought to comment first, but then it got large.. Processing that much data in 20 min is reasonable time imo. I've also tried to speed up some of the arcpy operations - look here. If performance is an issue, you could read the file geodatabase with API, but I doubt it would be any faster than reading the data with arcpy into a pure Python data structure ...


1

There are multiple reason for this problem and here are some tips. If you are using Shape file make sure dbf is encoded in proper encoding i.e. UTF-8 or 1253 and you have install the keyboard language support (Greek) to windows as well. You can find these steps here. http://www.howtogeek.com/howto/12578/add-keyboard-languages-to-xp-vista-and-windows-7/ My ...


0

I cannot see any other text elements on the layout that you have pictured. Consequently, I think you should: Make sure that you are in Layout View Use the Select Elements tool from the Tools toolbar to click inside the area of text which I am thinking must be a Text Element. It should get a blue border to indicate that it is selected. Hit the Delete key ...


1

Try using a Model to solve this Model Builder - Iterators - Iterate Feature Selection - this will allow you to go through each of your Locations one at a time and create individualized Euclidean Distance grids. Make sure you utilize in-line variable substitution so you are not writing over anything


1

Unfortunately, with arcpy this method (removeUniqueValue()) does not exist under the UniqueValuesSymbology class. An alternative in arcpy would be: Manually remove the value within each unique layer and save out a layer file for each unique layer Iterate through each mxd and loop through each layer list to search for layers that need updated (using for ...



Top 50 recent answers are included