Questions tagged [arcgis-10.2]
Use this tag when ArcGIS 10.2 is the version you are using from the ArcGIS platform.
2,962
questions
26
votes
3
answers
4k
views
Major bug in ArcGIS Zonal statistics?
Update: The bug has been fixed in the ArcGIS 10.4 release
I am using ArcGIS 10.2.2 to determine zonal statistics for a number of zones. If there is any NoData in the value raster, I want the zone ...
22
votes
9
answers
72k
views
Changing Field Name in ArcGIS Desktop
How can I change the field names (not the alias) in ArcGIS 10.2?
I already found this page on ArcGIS support: "Renaming shapefile fields (Defense Mapping)" but there is is not "Defense ...
19
votes
6
answers
23k
views
How to randomly subset X% of selected points?
What methods are available in ArcGIS 10.2 to randomly subset a selection of points. For example, in the attached screenshot I am interested in keeping 20% of the selected points and deleting the rest....
19
votes
3
answers
108k
views
Basic If/Then in Python Parser of ArcGIS Field Calculator?
I am using ArcGIS 10.2 for Desktop, and I've been looking through this site, and can't seem to figure out my answer yet. Very new to VBA and Python, but lots of years with ArcGIS. I know I can do ...
17
votes
4
answers
4k
views
Refreshing imported modules in ArcGIS Python Toolbox?
When using a python toolbox (.pyt) in ArcMap, I'll typically follow a pattern where the .pyt file itself is simply a wrapper to collect input arguments and define the tools themselves. Supporting ...
14
votes
4
answers
9k
views
Extracting number of vertices in each polygon?
I have ArcGIS Desktop 10.2 and my challenge is how to extract the of number vertices in each polygon for all features like this:
I have many parcels in my feature class and I want to extract the ...
14
votes
4
answers
48k
views
Add Basemap grayed out in ArcMap?
Why can't I add a base map to my data frame in ArcMap?
I am using ArcGIS 10.2 for Desktop and the options under Add Data for Add Basemap and Add Data From ArcGIS Online are both disabled (grayed out)....
14
votes
2
answers
30k
views
Installing 64-bit geoprocessing of ArcGIS for Desktop?
I am trying to install 64-bit processing to ArcGIS 10.2, but the ESRI Patches and Service Packs website only has installations for Service pack 1 that goes with ArcGIS 10.1.
One similar question on ...
14
votes
2
answers
3k
views
Understanding min and max values with Mosaic to New Raster?
I have to combine several DEM rasters into one from this source: http://srtm.csi.cgiar.org/SELECTION/inputCoord.asp, so I use Mosaic to New Raster tool.
I set up the tool:
I input the rasters (all ...
13
votes
4
answers
5k
views
Is 64-bit background geoprocessing native to ArcGIS 10.2?
I cannot seem to find any documentation as to whether or not 64-bit background geoprocessing is native to ArcGIS 10.2. Or, is a separate download and install required as in 10.1? There were rumors ...
12
votes
4
answers
2k
views
How many layers are too many layers in ArcMap?
I work on ArcGIS using a Citrix virtual software connection at work. It is dreadfully slow at times, and without any changes to the MXDs I'm working on, one minute ArcMap can be operating at a ...
12
votes
3
answers
23k
views
Setting Definition Query on ArcPy layer from shapefile for ArcMap
I am trying to determine options to set a layer definition query using ArcPy.
I know that it is possible when using arcpy.mapping.ListLayers().
However, in this scenario I am loading in ...
12
votes
2
answers
23k
views
One-to-many joins on a feature class to a table
I am using ArcMap 10.2.2 with an Advanced license. I have used ArcMap for other basic analyses, but am fairly new to the program and have only basic coding skills, with no SQL experience outside of ...
12
votes
3
answers
3k
views
Documenting inability to Start Editing SQLite geodatabase layers in ArcMap?
I've recently started creating SQLite geodatabases using ArcGIS 10.2 for Desktop with both ST_GEOMETRY and SPATIALITE storage data types and was impressed by how easy this was to do.
I then tried to ...
12
votes
2
answers
4k
views
Needing ArcGIS Server to edit MS SQL Server database?
Here is what I have:
ArcGIS Desktop Advanced (10.2) & MS SQL Server 2008 R2
Here is my problem:
I need to be able to connect to the ms sql server and import, export, create, and edit spatial ...
12
votes
2
answers
14k
views
Altering label styles (font, color, size, etc.) using ArcPy?
I am trying to write a python macro for ArcGIS 10.2 that will automate the process of labeling points in a layer based on different types of apartments. For example, one style of apartments would ...
12
votes
2
answers
4k
views
Making Map Book of pages with same area shown but different layers turned on/off
In ArcMap a Map Book is best suited for a series of features that each get their own page. It allows you to pick a feature and generate a Map Book Page for each feature including any additional ...
11
votes
2
answers
1k
views
Displaying attributes upon their polygons within ArcMap legend?
Within my ArcMap project (10.2.2) I've got a polygon feature class showing soil types. They are styled using a representation and additionally show the number of the soil type from my attribute table.
...
11
votes
4
answers
6k
views
Setting NoData for a multiband raster?
I have an RGB orthoimage that has black area instead of NoData, as pictured here:
When I use the SetNull tool, it does remove the black area, however it then turns it into a grayscale orthoimage, ...
11
votes
2
answers
1k
views
Create area buffers that are limited by a coastline
I'm trying to use ArcGIS 10.2 to create a buffer of points based on a pre-defined area (e.g 400 sq km). Further to that, the buffers of some of the points are close to the coastline that requires the ...
11
votes
2
answers
6k
views
Summing attribute values for areas where multiple polgons overlap using ArcGIS Desktop?
I have one shapefile with many polygons (at least 100). Each polygon has a value. Almost all these polygons overlap with each other. I want to sum the values of the polygons in the overlappings depend ...
11
votes
3
answers
23k
views
Saving and re-applying symbology properties for classified raster in ArcMap?
I have a classified raster which has the desired symbology configured in ArcMap 10.2, and I want to apply this symbology to other similar rasters.
So I use the Save option on the Symbology tab, ...
11
votes
1
answer
4k
views
Set default values for value table in Python Toolbox tool
I created a Python Toolbox tool to reorder fields and create a new feature class with the reordered fields. The tool works nicely and I am able to use a value table to let the user arrange the fields ...
11
votes
2
answers
3k
views
Writing scripts that can call on both Arcpy and PyQGIS?
I have spent quite a bit of time looking for a clear answer this topic and have still been unable to really accomplish my goal of accessing PyQGIS in a stand alone script.
Parts of answers have been ...
10
votes
5
answers
16k
views
Counting overlapping polygons from one Shapefile using ArcGIS Desktop
I have a shapefile with 16,400 polygons. Each polygon shows the expansion of a bird species for the whole world.
Now I have to count the overlapping polygons. I tried it with union and dissolve (...
10
votes
2
answers
779
views
Does dissolving features improve geoprocessing efficiency?
I have a large set of line data (>140,000 features). Is there a processing advantage, in either time required or (more importantly) memory used:
to running Dissolve on the data before running Buffer?
...
10
votes
4
answers
35k
views
Filling NoData gaps in raster using ArcGIS Desktop?
I have a raster with gaps in it. I want to fill these in with averages of surrounding cells using ArcGIS 10.2 for Desktop.
I have tried "Focal Statistics" but it averages EVERY cell and not just the ...
10
votes
1
answer
6k
views
Batch Georeferencing in ArcMap/ArcPy?
I have about 50 pdf maps that I would like to batch georeference and/or georectify. I've saved one as a jpg and georeferenced it manually and would like to automate the rest which are in the same ...
10
votes
7
answers
6k
views
Dividing polygons into *n* number of groups of equal counts with ArcPy?
One of my tasks for work is to divide parcels into groups. These groups will be used by agents to talk to property owners. The goal is to make the agent's job easy by grouping parcels that are near ...
10
votes
1
answer
4k
views
Adding labels with symbols to legend in ArcMap?
I'm creating a map with ArcGIS Desktop v10.2.2, showing museums as points. The museums layer has no symbol and the labels are made of a circle filled with color with the ID inside, taken from the [ID] ...
10
votes
4
answers
3k
views
ArcGIS 10.2 Query Layer on SQL Server performance
I'm using a Query Layer on SQL Server in ArcMap. The Query Layer executes instantly in in SQL Server but but takes so long to draw in ArcMap that the system appears unresponsive for about 10 minutes ...
10
votes
2
answers
879
views
Run ArcGIS 10.1 application on 10.2
I support a .NET application that has been compiled on a PC with ArcGIS 10.1 installed. The application comprises a user interface and an ArcGIS desktop extension, plus an installer assembly that is ...
9
votes
2
answers
22k
views
Showing polyline direction in ArcGIS for Desktop (ArcMap)?
How can I show the direction of a polyline as it was digitised?
I need this to check if my network analysis is obeying one way streets.
I know of a tool in Xtools that can do this but my trial ...
9
votes
3
answers
4k
views
ArcGIS query specific character(s) in specific part of a field
Using ArcGIS 10.2.2, I have a string field in an SDE attribute table. I need help creating a query to select all records that have a zero in the 6th and 7th character of the field (i.e 1995-0023A). ...
9
votes
2
answers
1k
views
Computing dominant area in polygon using ArcGIS Desktop?
First, I have a shapefile consisting of square grids and each grid has an ID. Second, I have a shapefile consisting of different zones (with IDs).
A grid ID in the first shapefile can contain many ...
9
votes
3
answers
16k
views
Dissolving shapefile but retain attribute fields using ArcGIS Desktop?
Is there any way to dissolve shapefile but keep attributes fields in the same time?
This is how I want to retain fields:
There are two fields I want to conserve in a shapefile. The first column is ...
9
votes
1
answer
21k
views
Reversing color ramp in ArcMap?
I want to reverse the color ramp in ArcMap 10.2. In the example below, I want the red colour to be associated with lower values and the green color with the higher values.
Any idea how to do this?
9
votes
2
answers
9k
views
Specifying field in attribute table with raster calculator using ArcMap
How can I specify the attribute field to use in the raster calculator of ArcMap 10.2?
In 9.x, I used the dot notation.
i.e. To use the "New_Value" field, I could do the following:
[MyRaster]....
9
votes
3
answers
6k
views
Displaying raster Background Value as hollow for more than one set of RGB values using ArcMap?
I have two overlapping .ecw layers of the same area, though one is clipped in the middle, with a white edge.
When I set the background value to 255,255,255, and define it as hollow, it only hollows ...
9
votes
4
answers
3k
views
Is there a way to close a geoprocessing operation when the dialog box has been hidden/pushed to the back of the window
Is there a way to close a geoprocessing operation when the dialog box has been hidden/pushed to the back of the windows? I ran a python process as VB Script and when the error message appeared I ...
9
votes
2
answers
2k
views
How to access current job id from geoprocessing script running on esri server?
I want to programmatically access the current job id of a geoprocessing script running on ESRI 10.2. The script is what needs to know the job id, not the caller of the script.
While searching, I ...
9
votes
2
answers
423
views
Unusual results for geoprocessing speed tests
I have been observing unusual performance with a Python geoprocessing script. The (attached) script performs the following actions:
Use a search cursor to look up UTM zone corresponding to polygon
...
9
votes
1
answer
758
views
Changing to Historical version using ArcPy?
I am having an issue trying to change to a historical version on an SDE feature class using Python and arcpy.ChangeVersion_management.
I am able to manually change the version to a specific date and ...
9
votes
4
answers
4k
views
Minimizing attribute tables in ArcMap?
Prior to ArcGIS 10.0, I worked on several attribute tables at once and I often minimized them.
Now, the attribute tables have no icon to minimize them using ArcGIS 10.1 for Desktop on our Windows 7 ...
9
votes
1
answer
621
views
Is it possible to replicate an SDE geodatabase including the archive tables?
I have a database in one location which I would like to replicate to another using one-way replication. In testing we haven't been able to replicate the archive tables, which is unfortunate because we ...
8
votes
2
answers
11k
views
Exporting raster as .tif with "use renderer" and "force RGB" produces inaccurate colors?
In ArcMap 10.2 I have a DEM and my aim is to change its color ramp using ArcMap, then export this colored raster as a geotiff (8 bit).
I checked "use renderer" and "force RGB" options but the results ...
8
votes
3
answers
9k
views
Creating map with same-area hexagonal polygons using ArcGIS for Desktop?
I'm trying to figure out
(1) what this type of map linked here is called (I've been unable to find the name through search), and
(2) whether there is an Arc tool that will transform a shapefile or ...
8
votes
4
answers
32k
views
Subtracting (erasing) polygons from polygon using ArcGIS for Desktop?
I have two polygon layers, one is green that represents all non-public right-of-way land. I have another polygon that is just a circle with a specified radius.
I would like my output to be a polygon ...
8
votes
3
answers
25k
views
Auto-incrementing field in feature class using ArcGIS Desktop?
So I'm relatively new to ArcGIS and ArcCatalog. I have created a field name of PROJECTID in a feature class in a Personal Geodatabase. The data type is TEXT. This will be a ten digit ID. The first ...
8
votes
7
answers
42k
views
Debugging ImportError: No module named arcpy
I have written a script and am trying to run it in Python IDLE 2.7.6.
I first try to import arcpy, but I get an error message saying:
ImportError: No module named arcpy
Why does it not work?
I am ...