Quantcast
Channel: Forums - Python
Browsing all 2485 articles
Browse latest View live
↧

Sublayers Network Analysis not found when unchecking 'display geoprocessing...

Hello, I'm writing a script that calculates routes for +600.000 records by using the 'for'-function. When the route is calculated, it is saved in a general layer, thus summarizing all routes that are...

View Article


Add Feature to Feature Class Using Python Scripting

I am a GIS Analyst and I am extremely new to Python scripting. I need to take input from a mouse click in ArcMap and then create a buffer around that point. Creating the buffer is simple, but using the...

View Article


Image may be NSFW.
Clik here to view.

weird issue using geometry objects in python

Hi, I am writing a script in python to generate polygons from lists of coordinates that I have saved in csv files. I have followed the proper method of assigning the coordinates as point objects,...

View Article

Accessing Data in Remote SDE

I have separate App and DB servers on Azure. I need to run a python script on the App server that accesses an SDE featureclass on the DB server. The python script was written on the DB server so it had...

View Article

Progira Plan on ArcGIS and Python Scripting

Hi there, I work as a research assistant on a project where I must calculate the range of an antenna. The software used is called Progira Plan which is a plug-in on ArcGIS...

View Article


Exported PDF failing to reflect showClassLabels = False

Hi, I'm having trouble getting my exported .pdf and saved .mxd to show that my labels have been turned off using the LabelClass object. The code works fine when run from the python window in ArcMap and...

View Article

Image may be NSFW.
Clik here to view.

Alter sequence Add Location arcpy

Hi, I want to know, if is possible create a add location in arcpy associated field "SEQUENCE" in "Stops" a one field in my feature class. Because when I used the Add Location, this not optional field...

View Article

Try/Except statement inside of For Loop

This script is meant to loop through several records. I a problem arise with processing a record I want the tool to skip that record and loop to the next record. I was working for an error code I was...

View Article


Labeling with Dates

Hello everyone, I'm trying to label a feature class that has a date field in it. My problem is that I only want to get the mm/dd/yyyy, but when I try to label it through python it will bring up the...

View Article


Select by Near - Delete by Date

Hello All, I have some survey data for points that has had the "same" point picked up on different dates. The differences in the locations for the same point vary and there may be more than two points...

View Article

Image may be NSFW.
Clik here to view.

Edit Extract Data script to work with mosaic layer

Hi I've edited the attached script so that the Server tool Extract Data accepts mosaic layer as an input raster.The script works at version 10.2.1 but will not work at version 10.1 SP1. I need it to...

View Article

Image may be NSFW.
Clik here to view.

merge or append features classes based on a part of their names

Hi everybody! I've got ONE file geodatabase with about 400 feature classes (FC). Here attached is a part of that .gdb. I need to merge that features (or better append one feature - 00 - to the other)...

View Article

Programatically list all feature classes used by a published map service?

Hi all, I'm trying to figure out how to list all features used by a published map service. So "xyz" is published on a map server, I'm wanting to programatically list all the feature classes (in a gdb)...

View Article


python addin: best practise for persisting custom setting?

Dear, For the development of a Python addin (extension) for ArcMap I would like to manage a user setting which persists over multiple arcMap sessions. I have been exploring several options with an xml...

View Article

Delete Annotation Class

Is there a way to delete/manipulate annotation classes using arcpy? As far as I can tell there is no geoprocessing tool that will do this. For example, when using the Append Annotation tool, I would...

View Article


Problem committing edits with arcpy.da.updatecursor

I'm having a whale of a time trying to use the arcpy.da.updatecursor while using an edit session to update the feature data. Here's the problem: I've got a script that is trying to update an...

View Article

Layer's Display Expression still not supported?

I'm working on a script that creates KMLs. It would be nice if it could set the display expression. After a little digging I came across a post that stated setting a layer's display expression is not...

View Article


Extract the same Polyline attribute from multiple DWG Files

Hi Listers, From a collection of over 1,000 CAD DWG files I need to extract PolyLine features where each Layer field attribute is the same, in this case it's called AR_WALL_EXT. How would I go about...

View Article

Date and time calculations

Just wondering if anyone can tell me why my expression is not working to calculate some values in a table? Below the !DateTime! and !Time! are fields in a File geodatabase. Basically I need to combine...

View Article

How do you reload a module imported into a Python Toolbox?

Python Gurus, I have downloaded the Spatial Analyst Supplemental Tools which is a Python Toolbox and there appears to be a bug in the Peak tool. I know a little bit of Python and thought I would have a...

View Article
Browsing all 2485 articles
Browse latest View live