Need help with modelbuilder -> python tool for SDE version backup
Hello, We are trying to create a tool that iterates through a list of commonly edited feature classes in our SDE and based on the field LAST_EDITOR and LAST_UPDATE, it should export the records that...
View ArticleChange Nulls to Blanks
I need to change Nulls(<Null>) to Blanks("") for a field in an attribute table. The field is a string named RMS. Code: fieldList = arcpy.ListFields(fc, "", "String") for field in...
View Articleworkspace as network drive
Is it possible to set the the workspace to a network drive and if so how would you write it? When using arcpy.da.walk and workspace = "U:/" , it froze up my computer...or it was just really slow.
View ArticleChanging Data Source on MXD
I am needing to change my multiple layers Data Source in about 24 MXD's from one sde geodabase to a different. We have changed servers. My SDE instance is different now. Note: there is no passwords and...
View ArticleCreate a shapefile of circles without using arcpy
I have a process that will run on a remote server that does not have arcgis on it but it does have python2.7. I need to create shapefiles with that hold circles with varying radii (specified in miles)....
View ArticleUsing Arcpy, how to add selected features to FC AND attributes?
This should be pretty simple, but I'm not finding a good answer in Help or Google. I have a section of features from a feature class. I want to essentially create one feature from them and add them to...
View ArticleNewbie question!!
Hi there, I'm pretty new to GIS in general, but am starting to look into Python scripts and downloadable toolboxes to see how they work. I've downloaded this python script and toolbox, but can't seem...
View Articlebath Addjoin problem from new pythoner ?
Hello, I wrote a python code to AddJoin a personal geodatabases (zlm-07.31.mdb) containing 23 featureclasses to a table view (fcode) for every featureclass .They have a field in common (DB).when I run...
View ArticleFGDB -- Copy contents into earlier version FGDB
As the title says, I need to perform what is a very simple operation when completed manually in the ArcCatalog tree --- move data from a 10.1 FGDB to a 10.0 FGDB. This is now done by simply selecting...
View ArticleArcPy: Polyline Geomtry
I'm busy writing a script to generate long-sections from a polyline. I've written the following based on an example from an ESRI video. The problem that I have is that the first and last position is...
View ArticleHow Select SubtypeField using sql in sde geodatabase
hello all, in a feature class i would select the rows where the esri subtypeField = 4 (integer) i do this query but there is no result : sql ="select * from TOP10_SIG.DBO.ABCBNIVL where TYPECBNV = 2"...
View ArticleCalculate summary statistics in Python - return result NOT a table
I want to use python to calculate the area of a number of different fields (using where clauses to filter results) and then output results to my own text file. The summary statistics tool lets you...
View ArticleAssigning Address Ranges from nearby Address Points
Hello, I am a GIS Tech at a city gov. with our own 911 dispatch. I am working to update our street centerline ranges for use in our dispatch software. The geography is accurate; however, the address...
View ArticleOpen DBase file, make XY-event, save shapefile... how?
Hi all, Today I've started using Python for the very first time and therefor I am not very adept. I've bought a book and I am using ArcGIS Help and the forum extensively, so I've solved many of the...
View ArticlePython String Symbols
In ArcGIS 10.1 - python 2.7 this use to work: arcpy.CalculateField_management(CenterPoint,LongDMS,"!DMSLon![1:3] + \"º\" + !DMSLon![4:6] + \"'\" + !DMSLon![7:9] + \"'' \" + !DMSLon![15]","PYTHON")...
View ArticleGeoprocessing Service Output File scratch directory path to url
Hello I'm making a geoprocessing service that returns a .pdf file As I saw in some examples I used the scratchFolder : Code: outputFile = os.path.join(arcpy.env.scratchFolder, myPDFFile)...
View ArticleList data layer source and SIZE
I would like to list all of the data layers used in an MXD as well as the size of each layer. Currently I am able to list the layers data source but am unsure how to (or if it's possible) to then list...
View ArticleJSONToFeatures_converson - ArcGIS Server GPService fails
I love the new JSONToFeature_conversion tool that was just released at 10.2 Works great when running it from ArcGIS Desktop, but not from ArcGIS Server... Here is a simple script and output. I would...
View ArticleIf statement based on if a file is present.
Hi, I'm having trouble writing an if statement, where the condition is if a file is input by the tool's user. For example, I thought the syntax was: Code: if file == True: The do stuff But it's not...
View Articleadd-in button onClick(self) with double click
Hi, i am not seeing anything in the button class for a python ad-in where you can click a button for off and on. for example i have a button that turn ON labels for all my layers. I would like to allow...
View Article