Selecting specifc layers to output to PDF
Not sure where I'm going wrong... The script completes successfully, but outputs all layers, not just the ones I'm selecting. I'm trying to produce a PDF with specific bookmarks (working), using...
View ArticleIssue for Geoprocessing Services without a result
We have built in ArcGIS Server 10.0sp5 a series of workflows that take raw data and and create a component of later steps by using some highly normalized python classes. Here is a example workflow: 1....
View ArticleForce labels to show
For the map I'm creating, it's quite zoomed out with all icons/labels appearing quite small (which is what I need). As small as they are, there are still a few labels that won't show up unless I...
View ArticleGenerate Legend for layers on the fly
The final piece of my puzzle... I have a script that outputs a PDF. The layers shown within the PDF show the layer hierarchy, but not the symbology (definition of colors/icons). This legend does not...
View ArticleFixed-Length Text File to Table using Python
Hello, I'm having trouble with schema issues when converting a fixed length text file to a gdb table. My workflow is: 1. convert fixed-length to comma-separated using python's csv module 2. create...
View ArticlePython script executes in Desktop but not as published GP service
I have a python script that uses a module called ibm_db for accessing a DB2 database. The script executes fine from ArcCatalog 10.1 and I can successfully publish it as a geoprocessing service. However...
View Articlepyt - can't get path of Toolbox in new release
Hello, please help me. The Problem has shown with release of 10.2.1 and arcgis upgrade to Python 2.7.5. Function: class Toolbox(object): def __init__(self): sysPaths = sys.path The result of sysPath is...
View ArticlePossible Unicode Error? Field Calculator Help!!
I am getting funny symbols when I do a simple field calculate on a unicode field in a file geodatabase. I do this: arcpy.CalculateField_management(outFileThree, "HOTLINK", "!HOTLINK!.lower()",...
View ArticleUsing ConvertCoordinateNotation_management on geometry objects without...
Howdy Ho All: Has anyone been able to use the ConvertCoordinateNotation_management tool with input and output geometry objects? I've been able to use the geometry objects in other tools be this one...
View ArticleAdding Rasters from table
I've created a raster table and successfully loaded it into a mosaic by following this http://blogs.esri.com/esri/arcgis/20...ed-in-a-table/ , but I need to rotate the raster. What field names can I...
View ArticlePython. Simple script not working. Synthax error!!
I am looking to redefine the average height attribute as either 1 or 2 story depending on their height. Any height less than 4 = 1 storey house and height above 4 = 2 storey house. Please see...
View ArticlePython script for text files to get GPS
Hello, I am trying to automate a process. I get an email that has a request number, GPS points, and an email to respond to. I currently convert that email to a text file and put it on a shared drive....
View Articlearcpy, Spatial Analyst, and Exp
Hello, I am trying to convert some 9.3 python scripts that use the geoprocessor object gp to use arcpy instead. I am struggling with the conversion of Single Output Map Algebra (SOMA) that uses exp....
View ArticleHyperlink Access Form from Layer Property using Python
Hello There, In ArcGIS, I wanted to have a system: when I click on a point, it will follow a hyperlink and will open up a specific Access Form based on the attribute I clicked. I had a VBA code for...
View ArticlePython script exported from ModelBuilder won't run
hi to all i exported mode builder to python but it is not work , plz any ideas , it work will in arcgis thank you # -*- coding: utf-8 -*- #...
View ArticlePython: select by Location and assign value from the source to the target
Hi All I have a polygon layer with a 'lot' field and a points layer. I would like to use python to select the points by location (to find what points are contained in what polygons) and assign the...
View ArticleI know this isn't the place for functions but i am desperate ...Please Help!!
def hapax_legomena_ratio(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...
View ArticleDealing with memory leaks in Python scripts in 10.0
I'm looking for strategies to deal with buggy memory leaks in v10.0 My script does some geoprocessing (mostly intersections and selections) on about 3000 polygons, using searchcursors as well. The...
View ArticleHelp with Create TIN variables
I am writing a script that includes creating TINs and it won't allow me to use a variable for the input feature class. I get a warning that says "Not a member of none". It works if I hard code the...
View ArticleAdd tif, jpeg2000, or Sid to current project with standalone Python script
Any insight on how to do this? I've been looking all over for a stand alone script and I've found nothing unfortunately. I'm Running ArcGIS 10.1
View Article