Hot answers tagged

7

I added aerial imagery from GIS server and created fishnet over the area of interest: I use fishnet as index layer for my data driven pages, making sure the sorting order coincides with record order in fishnet table. I applied script (see below) to travel through pages, export them to temp raster, clip it to PNG raster named after page name. Result shows ...


6

You don't need arcpy for this. In Arcmap open the Attribute table click on the context menu and select Add Field Type in the name of your new field and make sure the field type is set to "Short Integer" and add a Default Vaule of 0 and click OK. This will add the new field to your attribute table. Note that this Default Value will not ...


5

This is a known issue with ESRI. Their Page suggests these following workarounds (quoted from ESRI): Use one of the following two solutions to solve this issue. It is highly recommended to download and use ArcGIS Pro to perform all printing and exporting functions. ArcGIS Pro is not limited by the graphical device interface (GDI) ...


4

You'll want to use a cursor to figure out the rows that have values that have already occurred four times. Then you can create an SQL and a feature layer or table view with the SQL applied. Finally you can delete rows from the feature layer or table view. Sample code: #Table/shapefile table = r"C:\Users\e1b8\Desktop\E1B8\Workspace\Workspace.gdb\abc123" ...


4

You can try to use a python script and use one of the two following modules. But think of it carefully as running a program out of a script can do many unpleasent things. import subprocess subprocess.call(['C:\\folder\\gams.exe']) import os os.system('"C:\\folder\\gams.exe"') Update as it is about a file of the type .gms: Check out the answers on this ...


4

To make changes in the legend, first you will have to enable editing, right click the legend -> convert to graphics , then select the labels you want to edit and right click -> ungroup. Now you can manually move them around as much as you want and edit any individual parts, just move the lines with the text under the label. When you are satisfied with what ...


4

I run into this alot with construction plans (black lines and polygons on white backgrounds). There are a couple things you can do to fix this. The first thing is when you export that image from GIMP, set it to grayscale and here's the key: remove the alpha layer. You can do this by Layer>Transparency>Remove Alpha Layer. The alpha layer can cause issues ...


3

Create a field containing only the Year by slicing the existing field, and then symbolize using that field.


3

The tool does not carry over source point layer field/attributes. You will have to apply other tools/methods (e.g. spatial join) to bring over those attributes.


3

You may use the Intersect tool and define POINT as output type. Computes a geometric intersection of the input features. Features or portions of features which overlap in all layers and/or feature classes will be written to the output feature class. output type: POINT - Point intersections will be returned. If the inputs are line or polygon, ...


3

I think this would be spatial aggregation based on this article. https://blogs.esri.com/esri/arcgis/2015/03/25/new-spatial-aggregation-tutorial-for-gis-tools-for-hadoop/


3

The only thing that would change the size of the PNG by that magnitude, assuming your DPI has always been 220, and the vectors are generally similar, would be the page size being larger. 1-4MB is typical for an 8.5"x11" paper, but something larger like 14" x 22" could conceivably generate a PNG around 20MB. If the page size is the same, then I'd try out the ...


2

The best way depends on too many things that you have not mentioned. Is this to only be done once or every time you update the FC/table? Does the sort have to be reflected by the ObjectID or is the sort good enough if it just happens in memory and is reflected in the numbering order of separate column only? Anyway, the Sort tool is the easiest way to ...


2

Make sure your data has a projected coordinate system. Open your attribute table If you do not have an Area field, add a new field, call it "Area" and give it a double data type. Right click on your new area field use "Calculate Geometry" and find the area.


2

From manual page http://www.gdal.org/drv_avcbin.html If the directory contains files with names like w001001.adf then the coverage is a grid coverage suitable to read with GDAL, not a vector coverage supported by OGR. Data seems to contain .adf, continue by reading http://www.gdal.org/frmt_various.html#AIG Having a try with gdal_translate: ...


2

What you have is a hillshade surface built from a LiDAR point cloud. According to ESRI: A hillshade is a grayscale 3D representation of the surface, with the sun's relative position taken into account for shading the image. So each pixel of your .tif raster has an hypothetical illumination value given a reference position of the sun. What you want is ...


2

Not that I'm aware of in modelbuilder as a setting. The only way I can see calling that action would be calling a python script at the end of the model that makes the .net arcobject call to open said layer/table.


2

This can be done with a bit of trial-and-error in the Legend settings. In your Layer Properties Symbology tab, right-click on each symbol category and select Edit Description and enter the text you want on the second line eg (-102.12 - 17.92) and remove this text from the symbol label. Second create your Legend. Once it's created double-click on it to ...


2

Firstly you'll need a spatial layer showing the state boundaries. A rough dataset is included with ArcGIS and is located at C:\Program Files (x86)\ArcGIS\Desktop10.2\TemplateData\TemplateData.gdb (or a similar path on your computer). You'll need to make some changes to your Excel file before you add it to ArcMap. Note that the column names cannot have ...


2

Join the larger table to the smaller table via the common field, selecting Keep All Records. Sort the joined table to see which ones are in one but not the other, export those records. Then append the missing records to Table A


2

The link you post it brings me to a Catalogue Service where the metadata of a cartographic resource is located. This kind of Services are useful to share the information about geographic resources like who's the owner of the data, the extension, where you can download it or buy it, contact point and more other INSPIRE parameters. The XML download option of ...


2

You can use Feature Vertices to Points tool with the option to put the points at the Start and End of the line. Then use the Near tool or the Point Distance tool, this will then give you the linear distance between the end and start point. This can be added to a model to automate it. ...


2

It depends on what coordinate system you're using. If you are using a projected coordinate system (with units in meters or feet), you can use the field calculator (use the Python parser) with this expression: math.hypot(!SHAPE!.firstPoint.X-!SHAPE!.lastPoint.X, !SHAPE!.firstPoint.Y-!SHAPE!.lastPoint.Y) Or if you want distance on the earth's ...


2

The graphics card is rarely an issue when experiencing performance problems with ArcGIS (i.e. unless you are doing heavy 3-D visualizations). In fact, I successfully run a version of ArcGIS on a server that does not have a graphics card. Instead, I recommend focusing your attention on increasing 1) the RAM and 2) disk read/write speed by installing a solid ...


2

For that you need to find another point on the polygon outline (with reasonable accuracy, that is set to 0.01 m in below script) connect 2 points by line split polygon using this line INPUT: OUTPUT: To make script below work, you’ll need to put three layers listed from the top down in your mxd table of content: empty polygon layer to store ...


2

You should check your Environment Settings and adjust the Cell Size to an appropriate cell size: ArcGIS Cell Size


2

First of all you just need to use cities from the ListLayers method if the Cities layer is already in your map. Do not use the layer created by the MakeFeatureLayer if that is the case. Second, you have not created a proper selection string for the SelectLayerByAttribute method. It should be: arcpy.SelectLayerByAttribute_management(cities, ...


1

One way to do this would be to add an attribute to your polygon layer, say "VALUE", and assign it numeric value of 1000 or more. Then convert the polygon layer to a raster. In arcpy using the spatial analyst module these rasters can be multiplied easily. elevRast = arcpy.Raster("path/elevrast") polyRast = arcpy.Raster("path/polygonraster") resultRast = ...


1

Field in the Feature to Raster tool must be exposed as a model variable. Right click on the Feature to Raster tool >> Make Variable >> From Parameter >> Field Once you have done that you can then set Raster_%Field%


1

A couple things might be happening here. You have a transparency on the layer (unlikely). You have a stretch type defined in the symbology for the raster. This might be standard deviation: Set it to None and see if that makes any difference.



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