Questions tagged [geoprocessing]

Geoprocessing is a GIS operation used to manipulate GIS data. If you are performing geoprocessing using ArcGIS then the tag Geoprocessing-framework is specific to that software and should be used instead.

Filter by
Sorted by
Tagged with
5
votes
1answer
2k views

need to find max value among fields AND PRINT FIELD NAME

I have a Census dataset that contains eight fields with percentages. I would like a python script that finds the highest value between the eight fields, but also tells me which field the highest ...
3
votes
4answers
1k views

Redistribute linestring vertices to specified distance

I use a groundwater model program called GMS, and it has a very useful function "Redistribute vertices" (more info). I use this function all the time to both simplify and provide regular spacings ...
3
votes
2answers
2k views

Set a split policy/rule on a field without domain in ArcMap

Can you define a split policy or split rule on a field without a domain? When a domain is involved, you can set the default value of the field and chose a rule for when a feature is split or merged. ...
3
votes
2answers
3k views

What are units for calculated area in QGIS?

I have a shapefile of counties in the US, and I would like to calculate the area of each polygon so that I can run a population density calculation. However, I am having trouble calculating the areas. ...
3
votes
3answers
3k views

How to batch clip to single-part shapefile using ArcGIS 9.3 and Python 2.5?

How do I clip a shapefile to a single-part shapefile using ArcGIS 9.3.1 and Python 2.5? Example: I have a set of lines (lines.shp) I am trying to clip to each record in a shapefile called Grids.shp ...
2
votes
3answers
1k views

Polyline selection of features with angle turns up to a specified angle

I'm looking for an automated way to select line features that have specified angle between vertexes. That in order to check water mains layer -steel pipes can have only 45 or 90 degrees turns and I ...
5
votes
2answers
8k views

Fixing Script Error Invalid Pointer from ArcGIS Geoprocessing Tools?

I am just learning ArcGIS 10.2 and it was working well until I tried to use the Export to a Geodatabase (single) option for a dbs table I made. Since then, it seems I now get the same Script Error for ...
5
votes
2answers
619 views

Tracking progress of running geoprocessing tools in ArcPy?

I am looking for a way to access a GP tool running in a Python script to be able to see how much of the job has already been done. I have found SetProgressor function, but this one is available only ...
5
votes
1answer
4k views

Performing Geoprocessing SQL Queries in QGIS from a PostGIS Database

This may be a dumb question, but is there way to run a PostGIS geoprocessing SQL query in QGIS? Specifically, I am thinking of running SQLs such as ST_Union, ST_Split etc etc. I have tried the ...
4
votes
2answers
4k views

Calculate area in square meters from degrees?

I have a polygon shapefile in geographic coordinate system, I would like to calculate area in square meters in QGIS using Python. Is there any formula or equation to do this?
4
votes
2answers
1k views

Getting “Failed to open tool” message when trying to run geoprocessing tool from C# code

I've been experimenting with the Military Aspects of Terrain Template, which has a toolbox associated with it. I've been using the following WPF Runtime code, which should open a tool in the ...
4
votes
2answers
207 views

Issue with QGIS 2.10.1 Clip and Intersect Tools

Having an issue in QGIS 2.10 -- clip and intersect don't seem to be working correctly. I am trying to show zipcode by a legislative district in Florida. When I clip the zipcode shapefile by the ...
4
votes
2answers
5k views

Create a single connected polygon from multiple polygons

I am trying to create a single continuous (neighborhood) polygon from many tax block parcels. The Multipart to Singlepart GP tool does not accomplish the task since I need the polygon to be complete; ...
4
votes
2answers
522 views

Slow performing ArcGIS Near tool returns -1?

We are running an ArcGIS 10.0 geoprocessing script written in Python that (as part of many steps above & below) runs the Near tool. Both the input and output datasets (shapefiles & personal ...
3
votes
2answers
1k views

Problems Integrating Sub-Model into Master Model

I am attempting to integrate a iterative model into a master model to merge all of the outputs of the iterative model into one feature class. However, when I attempt to set the output of the sub-model ...
3
votes
2answers
6k views

Event layer to feature class - fastest method?

There are three methods to convert the output of a Make XY Event Layer to a Feature Class: Copy Features Feature to Point Feature Class to Feature Class Which one is the fastest method? I need to ...
3
votes
2answers
259 views

Polygon Neighbors not found in Proximity Toolset of ArcGIS Desktop 10.0?

I cannot find the Polygon Neighbors tool. I have searched for it as I usually do and I have also browsed the proximity toolset but it is not there. The other Tools, e.g. Buffer and Near are there and ...
2
votes
1answer
292 views

ArcGIS Geoprocessing “None Type” Second time

I am trying to publish an ArcGIS geoprocessing service in 10.2 I have a script setup that will run multiple times through Pycharm, but when I run it in ArcGIS it will run once and return this error: ...
2
votes
1answer
1k views

Large Dataset Buffer Help

Using ArcGIS 10.1. I have a large polygon feature class (130,000 records). I need to do an inside/outside buffer (+5 then -5 to fill in some gaps)... the process takes so long, I'm looking for a way ...
2
votes
1answer
1k views

How to control which Fields are exported in ArcObjects? (via Field Mapping)

In ArcMap 10.x, if you use the Export Data command on a layer that has hidden/disabled fields, those fields will not be present in the created feature class/table. My question is simple: how do you ...
1
vote
1answer
1k views

Testing point in polygon overlay performance of Intersect, Spatial Join and Near in ArcGIS for Desktop?

In answers and comments to Select points within a polygon and update attributes I think it is being suggested that Spatial Join (Analysis) and/or Near (Analysis) may be faster than Intersect (Analysis)...
1
vote
1answer
2k views

Can variable be set to reference in_memory workspace object in ArcPy?

This is an offshoot question related to a question I posted earlier. I have the following arcpy code that inputs a Python list of polygon geometry objects to the Union_analysis tool, which then ...
1
vote
1answer
693 views

CSV list as input parameter in QGIS 3.0 Processing Modeler

I have CSV list with XY coordinates (company and its competitors) which I want to input into simple QGIS Processing model. From this list the model creates and styles two spatial layers. Everything ...
1
vote
1answer
307 views

Controlling XY Resolution on file geodatabase feature class output from Append?

This question arises from research into Appending polygon feature classes with already repaired geometry => WARNING 000442: self intersections from Check Geometry? Before running the code snippet ...
1
vote
1answer
364 views

ArcGIS Toolbox functions missing all parameters?

I recently installed ArcGIS 10.3.1 and now all the toolbox functions (that I have tried) open, but they have no parameter fields. For example, the "Add Field" tool comes up with the standard toolox ...
16
votes
4answers
842 views

How to handle TIME in GIS?

Is there any way or any idea on how to handle Time attribute in GIS? For example, which are the ways to specify that an object is at a place at a given time interval and them it is in another place ...
12
votes
4answers
633 views

Mirror of Michigan State University's Python geoprocessing course materials

Been learning geoprocessing with Python using MSU's GEOG 825 ( python geoprocessing ) course. Unfortunately the link is dead now. I know this is a long shot but does anybody have a copy of the ...
15
votes
2answers
4k views

How to import esri Personal Geodatabase (.mdb) to PostGIS on Linux

We have esri Personal Geodatabases that we need to import into PostGIS. Ultimately, we'd like to allow people to upload an MDB on a web server, and have it import the layers into PostGIS. On ...
8
votes
3answers
5k views

Sort a feature table by geographic location

Here's in interesting challenge: I need to embed a table in a map layout so that the records in the table are sorted according to their geographic position on the ground. For example, in a north-to-...
6
votes
2answers
8k views

Looking for Python module to do lat lon calculations

I'm looking for a Python module that can provide some / all of the following services using latitude/longitude to define points: Distance between two points Point in polygon Distance along a multi-...
8
votes
3answers
10k views

Calculating elevation profile of a trail?

What would be the best way to calculate an elevation profile of a trail remotely (without using altimeter/gps tracking your steps)? For example, to do it in the most rudimentary way you might take a ...
24
votes
8answers
2k views

Is there an architecture for distributed geoprocessing?

Suppose I have 50 computers on my LAN. Each computer has a geodatabase for all parcel polygons in a particular state in the US. I'd like to write a geoprocessing task that finds all parcels valued ...
15
votes
6answers
1k views

PostGIS: Assign ID of point in layer A to closest point in Layer B

This should have been an obvious precursor (that I didn't ask) to my other question: How to create spider diagrams (hub lines) in PostGIS? If I do not know the relationship between a point in layer A ...
13
votes
3answers
610 views

File organization for sharing ArcGIS python code

What is the best organizational structure for sharing ArcGIS python code and geoprocessing tools? Or even, are sharing code and sharing tools separate questions? Esri has a Methods for distributing ...
6
votes
1answer
3k views

How to clip a single layer of overlapping polygons in QGIS

I have a single layer of polygons. Some of the polygons overlap. I wish to make a new layer of just the parts of the polygons that overlap. What is the best way to do this in QGIS seeing it's all in ...
12
votes
1answer
14k views

Is Clip (Data management) or Extract By Mask (Spatial Analyst) more efficient?

I'm trying to clip down an Orthophoto to a county boundary. I've been using the Extract By Mask Tool, but this process has been running for about 12 hours! It's gone through 2 cycles already, so I'm ...
9
votes
8answers
7k views

Maximizing the use of CPU

My script is intersecting lines with polygons. It's a long process since there are more than 3000 lines and more than 500000 polygons. I executed from PyScripter: # Import import arcpy import time # ...
9
votes
3answers
3k views

How to determine on which side of a line a polygon feature falls?

I have parcel data intersecting line data. In the parcel data there are some parcels that don't intersect the line. How could I programmatically figure out if the non-intersecting parcel is on the ...
7
votes
1answer
3k views

Split polylines at polygon boundaries in QGIS

I have a set of contour lines and a polygon set containing glaciers. Because I want the glaciers to have blue contours, I need to split the contour lines at the glacier boundaries. I can achieve this ...
5
votes
2answers
861 views

Extracting Overlapping Parts of Single Polygon Layer using QGIS?

I have a single polygon layer with over 200 buffers with a lot of overlapping areas. I want to use QGIS to create a new layer representing the overlap. I've seen several questions that are similar, ...
3
votes
3answers
3k views

Importing ArcPy taking many seconds and code is really slow for GeoProcessing Tools 64-bit (ArcGIS 10.1 SP1)

I've installed ArcGIS10.1 SP1 and whenever I import arcpy (on Pywin console or Eclipse PyDev) it takes aprox. 15-20seconds. Is this normal? I don't think so... I had Python 2.7.3 64-bit previously ...
1
vote
2answers
817 views

How to use SEXTANTE in a script outside QGIS?

I´m trying to do some geoprocessing using the QGIS Sextante plugin outside of the QGIS application (and integrate it with different other libraries like arcpy, etc.). import sys, os from PyQt4.QtGui ...
10
votes
2answers
9k views

What is “Simplify tolerance” in QGIS's Simplify geometries tool?

I am trying to use QGIS 2.8 to simplify vector geometries. But I do not understand the significance of the Simplify tolerance value in the Simplify geometries tool. The documentation does not ...
8
votes
1answer
790 views

Reduce processing time in Erase function using Arcpy in IDLE

I am processing 18,000 feature classes (saved in a file GDB), each with ~500 records (polygon features) in ocean areas, and I am running a script to remove area overlapping with the coast, using the ...
6
votes
1answer
336 views

How can I get more verbose messages from a GP service?

When I run a tool I've published as a gp service, the only messages I get are these: esriJobMessageTypeInformative: Submitted. esriJobMessageTypeInformative: Executing... ...
6
votes
9answers
13k views

ArcGIS: Create a line layer from a point layer and csv data file

UPDATED DECEMBER 20 I have a Regular point layer and a csv file that has the same ids as the point layer. The csv file is organized as ID From To Weight -- ---- -- ------ 01 ...
5
votes
3answers
435 views

Interactive “For each … Do” loop?

What is the most direct and straightforward, hopefully interactive, method to conduct a For each item Do... loop, where the input list is a selection of polygons? A word about "interactive". I'm not ...
5
votes
4answers
5k views

Extending batch of lines to another object using ArcGIS Desktop?

Is there any simple tool which allows to extend all lines in .shp to another .shp? To clarify, I do have river.shp and sections.shp on the river. I'd like to produce buffer from river, extend lines ...
4
votes
1answer
4k views

Clipping MrSID files in ArcGIS Desktop?

Does anyone have experience subsetting/clipping a large NAIP imagery file in MrSID format? Some of the NAIP files we have are by county and they have really large file sizes. The files are from the ...
4
votes
2answers
6k views

Extracting elevation from a TIN file with a point shapefile overlay

I have a TIN file that was built off of contour polyline shapefile (I think). I have a point shapefile with a few points. How can I extract elevation of the TIN file where the points occur? I am ...