arcpy Questions

3

I have a script that gets a table from MSSQL database and then registers it with ArcGIS. It uses several other arcpy methods as well. I tried to combine it with Flask and developed an HTML interfac...
Nomenclature asked 11/7, 2018 at 19:26

4

Solved

First timer on StackExchange. I am working with ArcGIS Server and Python. While trying to execute a query using the REST endpoint to a map service, I am getting the values for a field that is esri...
Pro asked 21/6, 2013 at 7:34

5

Solved

I would like to write a simple script to iterate through all the files in a folder and unzip those that are zipped (.zip) to that same folder. For this project, I have a folder with nearly 100 zipp...
Parlous asked 10/7, 2015 at 17:23

4

Solved

I'm currently writing validation code for a tool parameter in ArcMap 10 (updateMessages) and need to prevent users from using non-alphanumeric characters within a string as it will be used to name ...
Eileneeilis asked 7/6, 2013 at 10:55

8

Solved

I'm trying to solve my issue in my own but I couldn't, I'm trying to run this code in every format you can imagine and in ArcGIS pro software it's the same I can't find this error message in any ot...
Ulrikeulster asked 28/3, 2019 at 5:2

4

Solved

I am currently trying to generate sphinx documentation for scripts which use the ArcGIS arcpy library. I am running into an issue when sphinx tries to run the scripts while generating the documen...
Concessive asked 30/12, 2013 at 16:43

3

Solved

Can ogr2ogr or arcpy do a direct csv to shapefile conversion? I'm trying to automate some processes with a small script and was hoping I can do it easily with ogr2ogr or arcpy which I'm new to. A...
Military asked 19/3, 2014 at 6:0

2

Solved

I'm writing a python code to read the points in a polygon shape-file and save them in a point shape file. So first I made a text file and stored the points' (x,y) in that .txt file. then I tried t...
Vallejo asked 3/10, 2013 at 4:28

5

Solved

I have a dictionary that I need to convert to a NumPy structured array. I'm using the arcpy function NumPyArraytoTable, so a NumPy structured array is the only data format that will work. Based o...
Mohsen asked 22/3, 2013 at 20:51

1

Solved

I've already solved my problem by moving the import to the top declarations, but it left me wondering: Why cant I use a module that was imported in '__main__' in functions that are the targets of m...
Serve asked 21/4, 2017 at 14:24

3

Solved

I would like to use arcpy into Anaconda's Spyder. I have a full ArcGIS license, so this is not an issue. I am able to semi-import the module by way of copying the the arcpy folder out of C:\Program...
Nickolasnickolaus asked 5/11, 2013 at 17:50

2

Solved

I am trying to get the database path of a feature class that may or may not be in a feature dataset. I am using the os.path.dirname of the feature class. This will give me either the database path ...
Claire asked 22/3, 2015 at 6:24

1

Solved

I have checked http://www.lfd.uci.edu/~gohlke/pythonlibs/, http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//003m00000002000000.htm, and https://pypi.python.org/pypi/pygeoif/0.4.1 Non...
Series asked 9/7, 2015 at 21:15

2

Solved

I am trying to limit raster processing in MATLAB to include only areas within a shapefile boundary, similar to how ArcGIS Spatial Analyst functions use a mask. Here is some (reproducible) sample da...
Decoration asked 24/2, 2014 at 22:15

2

Solved

I would like to extract a string of characters between two underscores. The number of characters between and on each side of the '_' will vary, but there will only ever be two underscores. The long...
Swift asked 25/2, 2014 at 0:22

1

Solved

I'm trying to find the maximum value of "CrudeRate" and its associated "State_name" using the following code: import arcpy arcpy.env.workspace = "C:\\" shp = r"C...
Thermobarograph asked 10/4, 2013 at 11:7
1

© 2022 - 2024 — McMap. All rights reserved.