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

Python 64-bit in Desktop 10.1

Hello! I'm having trouble in trying to execute the Python 2.7.2 64-bit inside the Arcmap. I've already installed the 64-bit background geoprocessing. When I open the Python command window inside Arcmap...

View Article


Problem writing all columns with xlwt

Hello, I am having an issue getting all of the values from my table written into the .xls I can get a single row, but need all of the columns. Code: # Use row object to get and set field values cur =...

View Article


Need help with changing a symbology label

Hi. I'm trying to symbolize unique values; multiple features from another layer using model builder. I have set up the layer file, and when i symbolize it, the new layer takes on the attributes of the...

View Article

Looping Through Layers in Mxd and Saving Mxd Changes Extent

To All Python Users: I have a script that loops through all the layers in an mxd and then saves the mxd. I have found that when I open up the saved mxd the extent of the map in the data view has...

View Article

Best practice for paths - arcpy.env.workspace vs os.path.join

Hi, I've recently had an odd error and found it was due to the way I set up the input. The really odd thing is that some tools worked, but another (arcpy.CalculateStatistics_management) failed with the...

View Article


Book- "Participatory Geospatial Development Using Python"

The book contains discussion on raster and vector data processing using Python binding of GDAL/OGR library. Also, different approaches of representing spatial reference system are enumerated. There is...

View Article

Image may be NSFW.
Clik here to view.

creating shapes from coordinates eneterd manually through GP dialog box

Dear All I am trying to build Geoprocessing tool either by Model builder or by Python that do the following "Create Polygon from Coordinate values that entered manually within the dialog box of the GP...

View Article

Phyton script from Modelbuilder (9.3.1 SP2). Command error

Dear colleagues, I'm having a problem with a py script generated from a Model (export to py). The model works fine, and input and output projection data is included, but the script gives an error while...

View Article


ArcGIS10.1 Desktop: Creating a 3D surface & 8 points of cluster under the...

Hi all, I just gained some skills of Vector Modeling for Points, Polylines and Polygons by using the XY-coordinates and the Z-value (elevation) stored in the geodatabases of ArcGIS 10.1 Desktop. I...

View Article


Problem with my program of finding missing Annotation!!!!

I have a program that searches two layers inside an mxd and compares one field on each layer. For Example, the two layers AADT and AADTAnnoLabel are to compare Flag field on AADT and TFLAG field on...

View Article

Multiprocessing with Spatial Analyst

Hi all, A few questions on using multiprocessing with SA tools... I am using ArcGIS 10.0, Windows 7, SP3...and am fine running the python script standalone outside of ArcGIS, no need to make a tool out...

View Article

remove feature classes from multiple GDBs with slight variance in name - Help!

I am trying to loop through multiple files using arcpy.da.Walk() but need to remove certain featureclasses from the overall process. I am able to do this with Code: if "feature dataset" in dirnames:...

View Article

ArcSDESQLExecute => FGDB

I'd like to take the results from a ArcSDESQLExecute query and bulk load that into a file geodatabase. Anyone know of a way to do that faster than using the InsertCursor? Is the...

View Article


Passing SearchCursor Value to SelectByAttribute tool

I'm creating an add-in where after selecting a parcel, a SearchCursor is executed and and gets the value from the selected parcel. I can't figure out how to pass that value into a SelectByAttribute...

View Article

ArcSDESQLExecute support calling Functions

Does the ArcSDESQLExecute class support calling Oracle functions? If yes, does it further support the return of a ref_cursor? I've tried sql = "call BlahFunction()" sdeReturn = conn.execute(sql) Regards

View Article


Problem with loop in ListFields Program!!

My program is to find missing records when comparing to layers inside an mxd and then highlight the ones that are missing. For example, if one layer has 105H1 then the other layer should have it if not...

View Article

Polygon Added to Feature Class has Zero Area and Length

I'm copying features (polygons) from one feature class to a new feature class, using arcpy.Polygon() and an insert cursor. (I'm basically doing a copy, the hard way. But Append() wasn't working for...

View Article


OD Cost matrix Arcpy

Hi I'm trying to create an OD cost matrix python script. I'm doing an OD cost matrix analysis. I'll find out the average time with patients to hospitals over 10 years. When I do this analysis, the...

View Article

Setting scratchWorkspace and scratchGDB in a Python Toolbox

I know that since Python Toolboxes are run in an application, they probably honor the executing application's environment settings. However, I also know if you explicitly establish an environment...

View Article

Is a buffer based on an AREA field possible?

I have a shapefile of points (wind farm locations, about 1,000 points) that have an area (square meters) connected to each point. This area is the amount of land needed to supply a certain level of...

View Article
Browsing all 2485 articles
Browse latest View live