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

Select by location based on selected features

I am trying to do a select by location, I am trying to do a selection by location on just the parcel that the newly create point is created on, then do a spatial join to then do a search cursor on that...

View Article


Geometry comparison problems

Hello, I am having some troubles comparing geometries between two line features and I am wondering if anyone might know a solution. Basically i would like step through each object in one table and then...

View Article


ApplySymbologyFromLayer_management error: .LYR file made in 10.2 working with...

I'm working on a python add-in which includes a .LYR file with specific symbology. I use ApplySymbologyFromLayer_management to load a shapefile with this .LYR symbology in the ArcMap TOC. This works...

View Article

lat/long verticies from polygons

Hello, I am currently working with a polygon shapefile in ArcMap 10.0. I would eventually like to generate a text file containing the X/Y latitude and longitude coordinates from each vertice in the...

View Article

How to solve this python question? I can't figure out at all...this one is...

def average_word_length(text): """ (list of str) -> float Precondition: text is non-empty. Each str in text ends with \n and at least one str in text contains more than just \n. Return the average...

View Article


Function of the legacy site package?

I'm using the arcgisscripting site package because we're still on ArcGIS 9.3 at work. Using Python, how does one... modify the display properties of a kernel density raster? overwrite geoprocessing...

View Article

Hey I was wondering about this function problem for a while

def compare_signatures(sig1, sig2, weight): """ (list, list, list of float) -> float Return a non-negative real number indicating the similarity of the two linguistic signatures, sig1 and sig2. The...

View Article

How to convert cursor.search results into variables

Hello I am quiet new on programing and I need some help. I want to read the values on a table a then turn them into a variable for future calculations. I have no problem with one result from the...

View Article


Scaling: Small, but large. :)

So, I have a map I'm outputting to PDF based on specific bookmarks (that part is working fine), but I can't find the right method to make it produce the way I need. This is a detailed map with many...

View Article


Reg : Disconnect User Error

Hello All, I have .sde file with database connection credentials . The credential has dbo_owner access . But When I try to run arcpy.DisconnectUser . It gives me an error saying that I am not using...

View Article

Lat/Long to Web Mercator

Can someone enlighten me with the following problem? I have an x,y lat/long values and want to convert them to the equivalent web mercator coordinates in meters, what's my best approach? I can't seem...

View Article

Can't figure out how to add a button for a python script

I'm trying to create a button that runs a python script. I've been following the help and have reached the point where I test an add-in: http://resources.arcgis.com/en/help/...0000026000000/ I run the...

View Article

String from index position

Trying to calculate field using all the leftmost characters of [TEXTSTRING] up to the first occurrence of "out" in [TEXTSTRING] whose position has been calculated and placed in [POSITION] field. The...

View Article


arcpy.Describe not working on network dataset

I am trying to use arcpy.Describe on the ESRI streets network dataset for US and Canada. If I type: Code: import arcpy file = <filename> desc = arcpy.Describe(file) It returns an error about the...

View Article

Run PL/SQL stored procedure (in Oracle) using arcpy

Using arcpy in a Python script, I can connect to an Oracle database (I use ArcSDESQLExecute) and then run an SQL statement (I use execute). My question is: is there a way to run a PL/SQL stored...

View Article


insertion of concatenated records

Hello :) I'm currently trying to load as simply as possible records of the form: record = 'value1, value2, ... ,value17' into a layer. so far i export my data as csv files and import them using arcpy...

View Article

Add RasterCatalog Layer from a DBF-File

Hello, I have got a DBF-File containing pathes to Rasters and XMIN,XMAX, YMIN and YMAX values. If I add the dbf File to ArcMap using the AddData Button, then I get a Raster Catalog Layer. I need to do...

View Article


if then statement in field calculator, string to integer

I am having a heck of a time trying to write an if elif script in the field calculator. I've read numerous threads but can't figure out how to do it right. I have a field called route_ty_1 that is a...

View Article

Inserting EMPTY geometry

I had this code running just fine, but now all of the rows that are inserted are Zero length and I'm stumped. This grabs From/To XY's and then builds a line from them. The other stuff in here tests for...

View Article

returning data for layers along a line

Hi everyone, What I have is elevation data downloaded from nationalmap.gov in an arcgrid format and interpolated surface temperature data from ncdc in a shapefile. I have these two layers displayed in...

View Article
Browsing all 2485 articles
Browse latest View live