Tag Info

Hot answers tagged

4

that's nearly it, but the referencing of the field should be done on the field list, not the field name fieldList = arcpy.ListFields(r"C:\your.shp") for field in fieldList[19:]: print field.name


3

You should just need to add your Excel worksheet as a table. Then as long as that table has a field that is also present in the feature class use ArcMap (or the Join Field tool) to join them.


3

Using Field Calculator, you are able to create an expression for the calculation of each row in a given field. There are two languages that you can use to write the expression: VB and Python. At the top of the calculator, you'll see where you can choose which language should be used to interpret the code you have entered. If you select VB, you need to ...


2

You need to be in an edit session and have the Editor Attributes window open (Editor dropdown > More Editing Windows > Attributes). The simplest solution is: In the Attributes window, right-click the feature you want to copy from and click Copy Attributes. Right-click the feature you want to paste into and click Paste Attributes. This replaces all ...


2

If all values are the same, just open your attribute table. choose the column you wish to modify, add the value you want and click on update. You can also look at a useful plugin called MMQGIS. Where you can export import CSV files....


2

To do that is preferable create another field with Double type and copy the string field in it. For example, in the next image, I've created the string field 'myString' (editing session) and I've put in it the value "5.78453'. You can corroborate that the type is string because is left aligned. In the below image it can be observed the creation of field ...


2

Field Calculator. Right Click on Total_acci, select Field Calculator. You'll get an option to build a query. Add the other three fields together. If those are not an option, you may need to change the data type using ArcCatalog.


1

First, you should confirm that the edited layer is visible(clicked in layers section).You can also check the color set by default by QGIS for new digitized features. If the two are ok and the issue persists you can first digitize the features then edit their attributes later. Hope this helps !!


1

To change the strange letters, rightlick on the layer in the table of content, -> Properties, General tab. There you find the Data source encoding combo box. Depending on the source of your data, utf-8, System or some windows codepage will bring you the correct display of the data.


1

OK, so you basically need to compare each of the records in table 2 against each record in table 1. To me that suggests you are going to need a loop of some sort. You could either use a loop (or nested loops) inside a Custom Transformer, or you could do an alternative type of loop using a list. For the Custom Transformer, check out this FMEpedia example, or ...


1

Why not just use the Delete Field tool within the Fields toolbox? ArcToolbox --> Data Management Tools --> Fields --> Delete Field Choose your input table/feature class, and select the fields you want to remove. If you want to script it out to delete certain fields every time, it'd be pretty easy. arcpy.DeleteField_management(in_table, ...


1

You can import your data to postgis via shp2pgsql Then you can use an intersection sql like: *Update mine set your_column =k.park_name From park as k Where intersects(st_pointonsurface(mine.the_geom),k.the_geom) and st_pointonsurface(mine.the_geom)&&k.the_geom* Or you can use simple intersection. Note that intersection function return true even ...


1

Right click your field that you want to calculate values into, click Field Calculator. Select Python parser. FieldName = !AAAA![:3] Will bring the first 3 numbers/letters into your new field. Then dissolve on that field by the value. This should give you groups of your values. If that is what you are looking for.


1

You would need to use database triggers for that (which is supported only when storing data in a DBMS). If you are on file/personal geodatabase, you would need to run a Python script that would calculate the columns regularly (scheduled in Windows as a task, for instance). There is no way you could implement database triggers in a file geodatabase; there ...


1

Since you're already looping through data.rows, which contains the data, this looks more like a Bootstrap question. I've just done an example of html table from CartoDB SQL API data with plain JS: <script> var table = document.getElementById('mytable'); var sql = cartodb.SQL({ user: 'documentation' }); sql.execute("select adm0name, name ...



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