Tag Info

Hot answers tagged

6

In ArcMap, Go to the Customize menu, click Style Manager. You will see a style on the left called "Dano". Under that, any categories which contain custom symbols, labels, etc. you've made will appear as a yellow folder. Click the one you're concerned with and you'll see your custom symbols on the right. Right-click to delete any you don't want. If your ...


6

The following example shows how to integrate the built-in python method .upper() with the arcpy update cursor. This example first tests if a field is of type String then checks each row within that string for lowercase values. If there are lower case values, the row is updated with all upper case. import arcpy fc = r'C:\temp\test.gdb\yourFC' desc = ...


4

I would approach this issue in this way. One can create a feature layer consisting of just one point feature and check whether it intersects the polygon feature layer (using arcpy.da.SearchCursor). However, this would be a bit inefficient since you are dealing with so many features. However, we could create a feature layer and check whether it intersects ...


3

Pending there are no errors in your data or calculations, values for NDVI will always fall between -1 and 1. NDVI values are calculated from reflectance, which is the fraction of radiation that is reflected by a given surface. It sounds like your NDVI raster might be in integer format, which means you'll have rounding errors (e.g. raster displays '1' instead ...


2

Specifically with regard to "[I want to] add a field in a feature class and copy it to the new one (1.5) without having to load each feature and appending the data" Yes, you can use the Add Field tool in Data Management to add fields to each of the affected feature classes without dropping and reloading features. (That field will be empty for each feature ...


2

I just did some basic tests, converting a raster to a binary mask by performing a Con, which created an 8-bit output. From there, I could use Copy Raster to convert the output to a 1-bit raster: arcpy.CopyRaster_management("in_raster", "C:/workspace/foo.img", "", "", "", "", "", "1_BIT") I confirmed that ArcGIS and GDAL both see this as a 1-bit raster. ...


2

Seeing as you have Info (Advanced) level of license you can use the cool geoprocessing toys. Get the values of the polygons onto the points either by spatial join, identity or intersect. I think that intersect would be my choice. This will generate a point for each intersection i.e. if a point falls in more than one buffer then there will be one instance ...


1

I should first mention that if your ASTER data are not calibrated to reflectance, you are not actually calculating NDVI correctly. Make sure you have the appropriate calibrations in place and are indeed using relectance values rather than DN, radiance or pixel brightness values. Very often products are already served-up to reflectance. The actual values ...


1

In order to use C# with the ArcGIS Platform I recommend that you review the ArcObjects API Reference for .NET, and in particular this ArcMap Overview. Something to be aware of at the outset is that little (some annotation is one exception) or no spatial data is stored in *.mxd files. Consequently, I suspect that what you are looking to do is to access ...


1

I had a tool I made that basically did this, so I just tweaked it a little to fit what you need. It's called Calculate Point Statistics, and you can download it here: http://ianbroad.com/downloads/CalculatePointStatistics.tbx Source code: http://ianbroad.com/downloads/scripts/CalculatePointStatistics.py It takes an input Polygon and Point feature class ...


1

Here's a quick example: fc = "whatever" fields = ("Name", "Addy", "Stuff") with arcpy.da.UpdateCursor(fc, fields) as cursor: for row in cursor: row[0] = row[0].upper() row[1] = row[1].upper() row[2] = row[2].upper() cursor.updateRow(row) And here's the ArcGIS manual for the da.UpdateCursor


1

I have wanted to comment first, but then it seemed more appropriate to wrap it to be an answer (even though it might be incomplete). I've run your code on my machine (top hardware laptop with SSD) appending a file geodatabase feature class to a SQL Server geodatabase feature class on the same machine which took me around 13 min. I cannot tell you for sure ...


1

I actually had this exact same issue. I had a script that would search through sub folders in a root directory, check if they had shapefiles, convert the shapefiles to feature layers then to kmls. It would run through about 20-40 conversions and then just stop, no error codes, just the script would end. It would end at different places each time. My ...



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