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 ArticleGeometry 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 ArticleApplySymbologyFromLayer_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 Articlelat/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 ArticleHow 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 ArticleFunction 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 ArticleHey 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 ArticleHow 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 ArticleScaling: 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 ArticleReg : 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 ArticleLat/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 ArticleCan'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 ArticleString 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 Articlearcpy.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 ArticleRun 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 Articleinsertion 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 ArticleAdd 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 Articleif 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 ArticleInserting 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 Articlereturning 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