Questions tagged [arcgis-10.4]
Use this tag when ArcGIS 10.4 is the version you are using from the ArcGIS platform.
608
questions
14
votes
5
answers
2k
views
Looping through 16 million records using ArcPy?
I have a table with 8 columns and ~16.7 million records. I need to run a set of if-else equations on the columns. I've written a script using UpdateCursor module, but after a few million records it ...
8
votes
2
answers
5k
views
List layers from current view using Arcpy
I am using ArcGIS 10.4.1 and Python 2.7.10.
I have a mxd file of a rather large area which contain hundred of layers. I wish to work in a specific sub-area in that workspace, where only a few layers ...
8
votes
2
answers
3k
views
How do I include 64 bit python with ArcGIS 10.4 install?
I recently updated to 10.4 and was hoping the 64 bit python install was automatic, but apparently it isn't. I can't remember what I did in 10.3.x to get the 64 bit python. Does anyone know how to ...
8
votes
2
answers
2k
views
Why is there a difference between NDVI using Sentinel 2, in ArcMap & QGIS?
I have been trying to calculate the NDVI for a scene using Sentinel 2 bands 4(red) & 8(NIR).
I first did it in ArcMap and then QGIS.
In both softwares, I used the raster calculator and included ...
8
votes
1
answer
505
views
Adding exit command to ArcGIS Python script tool?
I have a GIS script tool that creates a copy of an mxd, sets a definition query and exports a set of data driven pages based on the definition query. After it's finished exporting it deletes the mxd ...
7
votes
4
answers
7k
views
Adding python packages to ArcGIS?
I am using ArcGIS 10.4.1 which comes bundled with Python 2.7.10. I am aware of the fact that to install external python packages, one needs to install "pip". I already have "pip" as "pip" is pre-...
7
votes
1
answer
4k
views
Geopackage Error - 'is mounted and in WAL mode, this combination is not allowed'
I am trying to find a replacement for shapefiles when sharing geospatial data. I am testing the geopackage format and with QGIS 2.18.2, I can create a geopackage and add additional layers to the ...
7
votes
2
answers
2k
views
Add secured WMS service from Geoserver to ArcGIS 10.2 to 10.4
I have a Geoserver running with multiple accounts (secured via Geofence). Each account has access to a certain workspace. In Qgis I am able to add data from any account using the WMS service.
The ...
7
votes
1
answer
916
views
Displaying percentages next to legend items in ArcMap?
I'm using ArcMap 10.4.1 and I have a map showing points on a map.
Each point represents a measurement of a specific radio frequency and has an attribute of signal strength.
The legend displays ...
6
votes
1
answer
3k
views
Disabling on-the-fly projecting in Arcmap?
Using Arcmap 10.4.1 I'd like to temporarily disable on-the-fly projecting, so as to be able to visually see the spatial offset between two vector layers with differing CRS and/or transformations. A ...
6
votes
3
answers
3k
views
What's wrong with my ArcGIS - PostGIS setup?
I have installed ArcGIS and PostGIS, and I'm having a hard time connecting them.
I've imported some shapefiles into PostGIS and I can see them and manipulate them in pgAdmin.
The trouble is that I ...
6
votes
2
answers
2k
views
Python Toolbox - Only update parameter when specific parameter changes
I'm creating a Python Toolbox. One input is a workspace and the second is a list of feature classes and tables. The list of feature classes and tables is generated once the workspace is input by the ...
6
votes
3
answers
2k
views
Using ArcGIS to extend a polygon in one direction up to the edge of another polygon
I have two shapefiles: the first containing a route defined by a single polygon (black line in the image below), the second containing a series of between 1000 and 4000 small polygons located ...
6
votes
1
answer
355
views
Why doesn't the Python window in ArcGIS autocomplete arcpy.Describe objects?
I do a lot of testing in the Python window in ArcGIS Desktop (10.4.1). It's great, especially because it autocompletes code for me.
It will autocomplete for most objects:
However, something that has ...
6
votes
1
answer
2k
views
Choosing cell size in LAS Dataset to Raster Tool [duplicate]
I am creating a raster from an LAS Dataset (LAS Dataset represents only the ground return).
I am wondering how do you choose the sampling size? (which I have set to cell size)
My point spacing is ...
6
votes
3
answers
993
views
Wrong min value from ArcGIS 10.4 zonal statistics as table
I used the zonal statistics as table tool in ArcGIS10.4 to calculate SRTM, the in_zone is a gridded shapefile, the in_value_Raster is the SRTM extracted for the region as in the image (90m x90m). The ...
6
votes
3
answers
4k
views
Fresh Install of ArcMap 10.4 Stalls on "Loading Document"
I have just installed the trial version of the ArcGIS for Desktop which contains ArcMap on my Windows 7 Pro 64-bit.
I haven't been able to launch ArcMap, ArcScene or ArcGlobe yet. As of ArcMap it ...
6
votes
1
answer
346
views
Cursor missing in table view of ArcGIS for Desktop?
In QGIS attribute tables there is a blinking cursor when editing data in tables. This is a very helpful feature that makes the orientation esp. in longer attribute values quite easy, or even just ...
5
votes
2
answers
2k
views
Copy Enterprise Geodatabase to new SQL Server - will it work?
ArcGIS Desktop 10.4.1, ArcGIS Server 10.4.1, SQL Server Enterprise GDB
We need to make an exact copy of an Enterprise GDB (SQL Server) and move it to a new server. Besides changing connection ...
5
votes
2
answers
427
views
Does ArcMap sometimes incorrectly skip datum check between GCS_WGS_1984 and GCS_GDA_1994? [closed]
My original test (included at the bottom of this question) did not match completely the circumstances in which I see ArcMap unexpectedly skip a datum check between GCS_WGS_1984 and GCS_GDA_1994.
This ...
5
votes
1
answer
265
views
ArcGIS: Legend patches turn black with negative contrast
I have a problem I've never seen before in ArcGIS (Desktop 10.4). When I use the Image Analysis Window (or symbology settings), the raster DEM in the background changes accordingly... HOWEVER when I ...
5
votes
2
answers
212
views
Unfolding polygons and other feature classes in Antarctica-like fashion using ArcGIS Desktop?
Is there a way in ArcGIS Desktop 10.4 to 'unfold' (reshape/modify) feature classes, e.g. a polygon of a circular city, to make them look similar to a Mercator or plate carrée projection of Antarctica, ...
5
votes
0
answers
234
views
Set default values when value is added to value table in Python Toolbox tool
Similar to Set default values for value table in Python Toolbox tool, I'm trying to populate a value table with default values. However for the linked question the value table is populated once an ...
5
votes
2
answers
106
views
Creating pseudo-heatmap based on time spent in AOI using ArcGIS Desktop
I wanted to see if there was a way to create a heatmap based on time spent in a certain AOI. What I mean by this is a layer you can toggle on/off that would go from clear to red as you spend more ...
5
votes
0
answers
780
views
Taking ArcGIS feature class to pandas pivot table? [closed]
I'm new to pandas and am trying to create a pivot table based off of two fields - DIVISION and MATERIAL. I'd like to count each occurances of each value. Rows would be DIVISION and columns would be ...
5
votes
0
answers
218
views
Check for mxd write access with python addin
I'm looking for a way to check for writing access to an mxd upon the initiation of a python AddIn tool. My tool should only be enabled if the user has writing access to the mxd. I thought there was a ...
5
votes
1
answer
469
views
How to dissolve by two fields using C#
I need to dissolve a feature class based on two fields for the dissolve_field parameter and two fields for the statistics_fields parameter. Does anyone have an example of how to do this using C#?
...
5
votes
0
answers
1k
views
Geoprocessing Service crash while executing [closed]
I have created a geoprocessing service, which can print a webmap(JSON) to a PDF or PNG. The ArcGis for Server and ArcGis for Desktop are running on my workstation. The Website, which host my webmap ...
4
votes
2
answers
2k
views
Identify and delete all unrequired fields from Shapefile using ArcPy
I have some Shapefiles inside one Folder and for the sake of data compression I want to delete all fields from Table of Content that can be removed (that are not required)!
What I have:
What I ...
4
votes
2
answers
338
views
Calculate all 'Null' integer fields to '0'?
Is there an easy way to calculate all Null integer fields to 0 in a GDB?
Selecting Null values and field calculating each column to 0 is not a viable option as I need to do this for a few hundred ...
4
votes
1
answer
620
views
Using ArcGIS Field Calculator to populate number field from text field?
I'm trying to assign speed values to street types using TIGER street shapefiles. So I created the new field for the speed, and I was going to use the field calculator to take the MTFCC classifications ...
4
votes
3
answers
4k
views
Using fieldinfo.setVisible in ArcPy?
I went through the documentation, and searched around but wasn't able to figure this out. What I want to do is export shapefiles, but have certain fields turn off. I was successful in turning off ...
4
votes
2
answers
630
views
Python script in ArcMap Field Calculator giving Error 000539: SyntaxError: Invalid Syntax?
I've been trying to calculate this expression for a field in an attribute table in ArcMap 10.4.1, and keep getting the following error:
Error 000539: SyntaxError: invalid syntax (expression, line ...
4
votes
2
answers
188
views
Can ArcGIS geoprocessing tools be used in ArcGIS Field calculator?
Can you put ArcGIS geoprocessing tools such as arcpy.SelectLayerByLocation_management() or arcpy.MakeFeatureLayer_management() into the code block of the ArcGIS Field-calculator (ArcGIS Desktop 10.4)?
4
votes
1
answer
2k
views
Removing white space from field using field calculator
I am trying to remove extra spaces from values in a field programatically using a python script. This is the script I'm using:
field1 = "FULLST_NAME"
calc1 = "s.join(!" + field1 + "!.split())"
s = "\'...
4
votes
3
answers
460
views
Why is incorrect Travel Time: < 1 minute being reported by ArcGIS Network Analyst Find Route?
I have configured a network dataset using ArcGIS 10.4.1 for Desktop and am testing it using the Find Route tool. Results are as expected except that on the Directions tab the Travel Time is always ...
4
votes
1
answer
1k
views
Calculating distance from point to polyline
I am using ArcMap 10.4.1 - Basic use.
I have to determine for each point (leak), how many lines (pipes) there are within a certain distance (Spatial join - within a distance of).
Then I have to ...
4
votes
1
answer
316
views
Export summary statistics to other format than Excel
Is there a tool from the modelbuilder that is able to export a summary statistics table to .csv instead of .xls?
As I need to standardize the solution in modelbuilder, so preferably via modelbuilder.
...
4
votes
1
answer
6k
views
Packaging Succeeded but Publishing Failed?
I am trying to publish a very large raster data set, ~330GB. I get the general error: "Packaging succeeded but publishing failed"
The geoprocessing results say to check the server logs.
The server ...
4
votes
1
answer
986
views
Automatically moving overlapping features using ArcGIS Desktop?
I am using ArcGIS 10.4.1. I make a map. I am have two shapefiles: one polyline and one polygon. The polyline is a road and polygon is a building.
The shapefiles overlap. I want to automatically ...
4
votes
1
answer
2k
views
Building a Definition Query using Sub-queries with multiple conditions
Background
Since layer selections can't be be published as a map service, I need to duplicate N layers and write definition queries for each to satisfy my needs. I can't create new standalone layers ...
4
votes
1
answer
4k
views
Legend from Multiple Data Frames
I have a map containing multiple data frames, the continental US, Alaska, Hawaii, PR, and Guam.
These data frames contain different symbology which I would like displayed in a legend.
Currently, ...
4
votes
1
answer
965
views
Adding fields by user input in ArcPy?
I'm new to Python and I'm trying to create a script which adds fields to a feature class. The provided script is running well, but I want to create an additional parameter, which asks for the required ...
4
votes
1
answer
263
views
Displaying Images in an Image Coordinate System
I'm trying to programmatically do what's explained here. ('Focus on Image' to display an image in the Image Coordinate System.
I'm using a mosaic Layer to load an oblique dataset.
Currently I'm able ...
4
votes
1
answer
760
views
Extract Multi Values to point error table was not found
Newbie to arcpy. Tried using this tool after successfully using Extract Value to Point tool with same data. I received the correct data appended to the attributes table. I would like to use the ...
4
votes
1
answer
4k
views
How to combine multiple line features into a single feature?
I'm trying to combine line features (trail sections) into a single features. How can this be done in ArcMap?
4
votes
1
answer
1k
views
no popup menu with "right-click" on layer
I am trying to work with ArcGIS 10.4 on a MacBook Pro (OS X El Capitan 10.11.5) using Microsoft Windows via Parallels Desktop 11.
"Right-click" in this context normally = "control-click." No matter ...
4
votes
1
answer
833
views
How to change default annotation properties in ArcMap 10.4?
I am trying to figure out how to change the default properties of an annotation feature class in ArcMap 10.4. I see the "Text Symbol" box when I double-click on the "Default" category under my ...
4
votes
2
answers
664
views
Is ArcGIS for server 10.4 incompatible with the Silverlight API with regards to dynamic map layers?
We are currently using the Silverlight API version 3.0 and whenever we try to initialize an ArcGISDynamicMapServiceLayer from a 10.4 server we are getting InvalidCastException Unable to cast object of ...
4
votes
2
answers
2k
views
Why do I get Error 00728: Field "" Does not exist (occurs running AddField_management & CalculateField_management in succession)
I have a Python Toolbox and want to use the zonal statistics as table function on user-provided polygon shapefiles/feature classes that may or may not have multiple parts.
In the code, I add a new ...