Tag Info

Hot answers tagged

5

You could use the following expression (note that your column must be a String type): 'M' || $rownum


4

In your Field Calculator, have the python parser enabled. You can do some neat things with the Field Calculator. I suggest checking out the Field Calculator Unleashed from ESRI for a bit of a code introduction to the Field Calculator. Then check out their documentation for more advanced ideas. I am using lower() and strip() in case there are values that ...


4

building on Joseph's answer, you might find it more useful to generate a sortable text field. As this is a text field, any attempt to sort M1,M2..M10,M11,M12 will come out as M1, M10, M11, M12, M2, M3 ... M9 If you use M0001, M0002, M0003 .. .M0012 then you have the uniqueness and can sort too. Just modify Joseph's suggestion to 'M' || ...


2

You could use a Spatial Join This will join attributes from one feature class to another based on spatial location.So you can join the RockType attribute to any points that fall inside of the polygons.


2

I believe this is supported in versions > 10. Open up attribute table Access field properties (right click header)


2

I have tried to understand what you are asking without success. What I can say is that I think your code snippet should start from code like below: l = [[u'OBJECTID', 1.0 , 2.0 , 3.0 , 4.0 ], [u'LENGTH', 56.29, 61.8 , 11.01 ,164.03]] print l[0] From this you can see that a list gets printed: [u'OBJECTID', 1.0, 2.0, 3.0, 4.0] However, I am unable ...


2

This should be all you need: feats = self.layer.getFeatures() self.layer.startEditing() for feat in feats: score = scores[i] feat['F_SCORE'] = score layer.updateFeature(feat) self.layer.commitChanges() You are mixing update via the layer vs at the provider. Generally you should only update via the layer as it provides rollback and error ...


1

Assuming that you are using a recent version of ArcGIS for Desktop, and I have not tested, but you should be able to use the Excel To Table tool to do this: Converts Microsoft Excel files into a table. I frequently use fields of 4,000 characters in file geodatabase tables and feature classes.


1

While the previous answer is only temporary while the table is open. It is the only method for changing column colors. Table settings are in the arcmap options dialog. These color settings affect selected rows.


1

I found a solution. To date it does not seem possible to export the attribute table to a csv and keep the value relation at the same time. There is however a way of accomplish it by using a your SQL client. I just made a join between the Child and the Parent table to display the value instead of the numeric id number. Note: If you are working with *.shp ...


1

In QGIS 2.8.x you can also get rid of specific or all fields. Open attribute table, Toggle editing mode, Click on "Delete column" button, Select all your unwanted attributes and Click "OK". Save edits.



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