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

Oracle Materialized View - arcpy.MakeTableView_management error

Hello! I'm having performance problems with multiversion views. So, I´ve created Materialized Views (Oracle 11g) over that views and the performance really improved a lot. But when trying to use that...

View Article


Weighted Overlay - passing parameter as text error?

For some reason when hardcoding the save path for the wieghted raster just before runtime it works perfectly. Like such... Code: arcpy.env.cellSize = "90" arcpy.env.workspace = r'G:\Xcel\Route...

View Article


Take identical fields and concatenate additional field

I have been having an issue that I cannot seem to solve simply. Any help would be much appreciated. I have a table (over 3000 rows) with a field "Map_ Code" (about 800 unique codes) which has multiple...

View Article

NDVI Time Series- Automation?

Hi! I am very new to coding and am currently only able to write scripts that I can access tool syntax for in the help section of each tool! I am attempting to create a time series (average NDVI values...

View Article

ArcPy: Find Maximum Value for each group.

I'm new to python and and arcpy and would like to get some advice in generating a python script. I have a table with the following fields: Field 01: Quinary (txt) Field 02: Water Management Area (txt)...

View Article


Add Data function into map document to load in .tif files

is there a way to use arcpy to 'Add Data' into a Table of Contents?

View Article

script tool - control the layer names of layers added using a custom script tool

Hi I am creating a script tool based on a python script. I have come so far that layers are added to the map using the arcpySetParameterAsText. The challenge is to control the layer names appearing in...

View Article

Need python for converting data format

HTML Code: <pre> Hi All The below is the exisitng data in a file running over 24768 lines there are dublicate names linke (abc) , width and FLof which stands for offset         file A...

View Article


arcpy.ExtractData_production does not work in Python GUI?

Code: >>>...

View Article


insert Python Code into "Calculate Field"

Hi all, I try to reclass a field based on different fields of the same feature class. Therefore i want to use a python code. Field Name: Bewertung_BioZ Expression: classification(!Bewertung_BioZ!,...

View Article

Update Cursor in SDE and RuntimeError: start edit session

Code:                         option = pythonaddins.MessageBox("Is this information correct? {}".format(viewlist[0]),"Question",4)                         if option == "Yes":...

View Article

Expression for hatches

Hi! I am working on a project with dynamic segmentation, I have a feature class with many routes with their respective labels hatches (pks). I need to export autocad hatches and this process i know how...

View Article

Looping Select by Attribute, ADDING one by one feature each time, and run a tool

Hi! I am new w/ ArcPy! I am having some dificulties to create a simple workflow to create an "Accumulative Curve": 1) A point feature class as input; 2) Select the first 3 points based on a table field...

View Article


whereClause syntax for Cost Distance parameter

I am looking for create a sql expression regarding point feature class and selection based on 'Name' field to pass to arcpy.sa.CostDistance() param[0]. similar to: Code: savepath = env.workspace =...

View Article

Nested Table views issue

I've got a process set up like this: 1) Geodatabase Table -> make "Table View A" with expression "X" (so I'm working working with a subset of the geodatabase table) 2) From "Table View A", make...

View Article


Using Python to copy more than one raster at a time

Hi everyone, sorry if I am cross posting but I am relatively new to the ArcGIS world. I think my problem will be easily solvable by somebody with a little knowledge of ArcGIS/Programming. Basically, I...

View Article

Alternative to Using 'getValue' with Data Access Module

With the arcpy.da module, we cannot use the getValue method on the row object as we can in arcpy.SearchCursor: Code: for row in arcpy.SearchCursor(fc):             row.getValue("SITE_ID") We can,...

View Article


Python for large scale network analysis?

Hello, I am working on a project trying to figure out travel times between about a couple million starting points and a few hundred end points. Is there a way for ArcGIS to handle such volume? Thanks!

View Article

Automated process for creating service areas?

Hello all, Suppose you would like a final map that shows the service areas of a hundred hospitals, based on some sort of network cost (travel time, travel distance). Network Analysis has the service...

View Article

How to access just one specific value in a row

I am looking for a way to compare values in my fieldA. Specifically I would like to compare my last value to the one in the row above. I used GetCount to know how many rows I have. So for example if...

View Article
Browsing all 2485 articles
Browse latest View live