SQL Statement in Python
I am getting one of 2 errors and I don't know why. They are ORA-00911: invalid character and ORA-00933: (something about the statement not ended correctly). I am hoping a fresh set of eyes can help...
View ArticleConvert vbscript to python for Field Calculation
I have been struggling to convert this vbscript code to python. If anyone can set me on the right track, I would appreciate it. Attachment 31157 Thanks, Nick Attached Thumbnails Â
View ArticleRaster to Polygon conversion - fail to execute python file
Hi all, I am failing to execute attached python script (solar5_supervise_vector.py) for attached image (Image.JPG) in Python IDLE. Following error is showing, snapshot (Error.JPG) is also...
View Articleda.UpdateCurso: Where clause for geometry
Hi Forum I have a versioned database, where I want to make short lines longer. So in Python I try to select the short lines like this Code: Â Â Â Â >>> uCursor =...
View Articlecalculate central point feature within each grid cell.?
Hello, I have points scattered over grid cell (fishnet), would like to calculate a central point for each cell. How do I do it simpler way in python? Thanks.
View ArticleSelect Related Records
Is there any way to select related records using python? similar to the related records button within ArcMap. I like to include this operation as a script in a GP Model. Thanks in advanced. EC
View ArticleBeginner Multiprocessing Question
I'm trying to run a really simple multiprocessing script but I get an error that says "AttributeError: 'module' object has no attribute 'f'. *See script below. Every time I try to run any sample script...
View ArticleConditional Labelling - Python
HI All, Last year about this time I posted a thread about conditional labeling using python. I received awesome assistance and was successful in working out a successful script, which I use regularly....
View ArticleCopy/Paste Attribute Values, Same Table
I am trying to figure out how to copy an attribute value of a point and paste it into a field for another row in the same table. I wanted to create an add-in, or something that would help speed up...
View ArticleExport to PDF Data Driven Pages
Hi, I'm new to Python and trying to write a script that will do the following: 1. Loop through all mxd's in a folder and edit a Text Element named "SubTitle" 2. Save the mxd 3. Export each mxd to pdf...
View ArticleNo Connection String from Arcpy Describe ArcSDE workspace
I'm using ArcGIS for Desktop 10.2.1 and I'm trying to use arcpy.Describe to get a connection string from an ArcSDE connection. My ArcSDE database is 10.2. However, the connectionString parameter from...
View ArticleCreating Python Add-ins to Select by Attribute
Hi, I have created a python tool to select parcel (and zoom to selected) from user input Lot and DP number. I want to create a Python Add-ins to do the same task, so that the user can click a...
View ArticleConvert Time Field
This tool seems very strait forward but is causing issues when put into python. Works fine in ArcMap and I get the expected results. My Input Time Field(Text Field) looks like: 2014-02-01 02:11 AM...
View Articlearcpy.RasterToPolygon works, but tool errors...
I am having problems with: Code: arcpy.RasterToPolygon_conversion(inRaster, outPolygons, "NO_SIMPLIFY") It returns the following error message even though it is successfully creating the polygon...
View ArticleUsing Mosaic footprints and Boundaries as GP inputs using python
Hi All, I'm a python newbie with a fairly basic question. I'm having a hard time getting arcpy.Integrate_management to accept a mosaic's boundary as input. I get a "does not exist or is not supported"...
View ArticleSDE copy feature to FGDB, subsequent Near tool execution fails with schema...
I am attempting to run the following code (more or less, as I have simplified it for display here): Code: arcpy.env.workspace = ws arcpy.env.overwriteOutput = True...
View ArticleObjects in this class cannot be updated outside an edit session
I keeping getting the "Objects in this class cannot be updated outside an edit session" error message. I can't figure out why because it seems to be I'm opening an edit session. Is there a step I'm...
View ArticleCalculate Field
I am using ArcPy 10.2 CalculateField management to format a field from an existing field. e.g. from 123456789 to {12-3456-789} It works good using attribute table, but it shows "syntax error" when...
View ArticleUse the results of arcpy.Statistics_analysis
Is there a tool like summary statistics or arcpy.Statistics_analysis that returns some type of usable object so you can use the results for further processing instead of getting a dbase table stored to...
View ArticleRecalculating the feature extent in python?
Hi, Is there a way to simulate recalculating the extent of a feature class in arcpy? This is needed, for example, after adding or deleting features as the extent isn't automatically reboxed. I've...
View Article