Tag Info

Hot answers tagged

7

you could also do this: min( !f1!, !f2!) in field calculator, with the parser set to python


6

You should be able to do a simple 'select by expression' where DATECOLUMN like "% 12%" This is assuming your date is a string column. Essentially; the query is using the 'pattern' that is formed, and saying "Find me every record where there's a space, followed by 12, follow by a colon. Since your data is in 24h format, the only records criteria that ...


4

Reiterating the comments as an answer for the convenience of others: Always make sure that each layer has a unique shapefile associated with it, otherwise data losses will be likely if more than one layer is based on the same shapefile and you edit its attributes.


2

I actually just did something very similar to this in another script, so I'll drop this here if anyone finds it useful. It's 10 lines if you remove the comments. import collections #Summarizes the second number in a list of tuples by the occurrences in the first #e.g., [["a", 1], ["b", 2], ["a", 3], ["c", 7], ["d", 0], ["c", -1]] -> #{'a': 4, 'c': 6, ...


2

Before getting to the solution to your question, I need to clarify exactly what you're wanting to divide/compare. If you're wanting the areas in all of red vs all of green, you can skip this part. However, if you want to directly compare the areas of name and type within the same total boundary, you'll need to first clip red to the extents of green. Your ...


2

Try this: Add a new text field Using Field Calculator concatenate the block name field with the ZIP4 field - python e.g. str(!blockName!) + ' ' + str(!ZIP4!) Right click on the step 1 field and select Summarize (keep defaults). This should give you a summary table of all block names by ZIP4 values.


1

Well, you can do that using ogr2ogr, after exporting vectors from GRASS to shp: ogr2ogr -sql "SELECT * FROM file_in WHERE 'category' == 2 AND OGR_GEOM_AREA > 10000" file_out.shp file_in.shp file_in.shp is your data exported from GRASS file_out.shp is your filtered results. Then you can run: ogr2ogr -sql "SELECT count(OGR_GEOM_AREA) FROM file_out" ...


1

I don't believe there is a way to add an additional field in ArcGIS online through your web browser. However, if you have access to ArcMap at work, you can sign into your ArcGIS online account and it will load your map from ArcGIS online. From there you can open up your shapefile and add a new field. However, I'm not sure if the same functionality exists ...


1

This functionality is under the "Show all features" Button:


1

I came up with a solution. It sounds complicated but we are looking at six tools and an iteration here! I copy my Shapefile A, use the dissolve Tool to dissolve shapefile A by Name. Then I use this created Shapefile as a in the Split Tool as the Split feature for Shapefile A. I insert into my model Iterate Feature and chose my Split output as a Workspace ...



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