Tagged Questions

A mathematical procedure used to solve problems with a series of steps. Algorithms are usually encoded as a sequence of computer commands.

learn more… | top users | synonyms (1)

3
votes
1answer
49 views

Fast raster combine using rasterio

I'm trying to duplicate the functionality of ArcGIS's Combine function within rasterio. Given a list of (presumably categorical) rasters read with rasterio, I want to output a combined raster and a ...
0
votes
0answers
19 views

Tools to generate all the possible geometries meeting specific constraints

I have an area = 2d polygon (generally a 4-side shape). I would like to generate all the possible rectangles matching the following constraints: that fall within the surface of the area with a ...
5
votes
2answers
423 views

How do the equations/algorithms behind buffering tools actually work?

I've been wondering how the equations/algorithms behind buffering tools actually work?
2
votes
3answers
81 views

Buffer Zone Algorithm

I use google maps, php, mysql, and I want to create a buffer zone in line among some points. Could someone tell me where can i find the algorithm (php library or the math in order to implement it) to ...
2
votes
0answers
36 views

How to calculate grid convergence (True North to Grid North)?

I would like to know how to calculate the grid convergence angle between True North and Grid North for UTM maps. I am using ArcGIS 10.0 (ArcView licence) and have used the Calculate Grid ...
1
vote
0answers
20 views

Buffering/extrusion of a dem surface

I have a surface representing a DEM and i would like to add it some thickness. If i simply duplicate the surface and translate it down by my thickness, i get non uniform thickness, ie thinner where ...
2
votes
1answer
39 views

Find a path between an origin and destination given scattered points

We have a postgis database containing a lot of ordered (by date/time) nautical point (lat/long). Each of these points are affected to a leg between an origin and a destination (both origin and ...
0
votes
0answers
12 views

PRN (p-code) to Geocode Conversion

I think I have a unique situation. Client has a file containing the old p-code / PRN but can't relate this to a specific address and desires to move to a geocode orientation. Does anyone know if a ...
1
vote
1answer
32 views

Locating Moon in Sky from Earth

I am working on project which need to find moon location from a specified lat, long on earth. So basically info I am having is Lat,Long and Timezone. Format of the moon location Info? So first in ...
6
votes
3answers
136 views

Interpolate data from multiple gpx tracks

I have a number of GPX tracks of the same road. But due to GPS error they are not accurate enough (20-30m off). I'm wondering if I could interpolate those multiple gpx tracks into single one. If an ...
1
vote
1answer
104 views

How to get Intersection point from two lines (coordinates)

I have tried for ages to find the algorithm for getting the coordinate of two intersecting lines from a given coordinate (latlong). As the picture below suggest. I have two coordinates (A and B). ...
2
votes
1answer
54 views

Calculating the fastest routes and some points on the same time

I have two drivers and each driver has a set of about 15 locations where they need to drive to on a single day. Calculating the shortest route for both drivers is not the problem (using a matrix ...
3
votes
0answers
28 views

How do I map points on a 2D map to a 3D illustration of the same area? [duplicate]

I'm looking for advice on how to build an algorithm that maps any point on a map to a point on another map, interpolating where needed. Let me better clarify with an example of what I concretely ...
0
votes
1answer
56 views

D8 algorithm to get the flow direction in ArcGIS

I am using ArcGIS 10 for the get the flow direction from DEM. I wonder about the algorithm they have used while calculating flow direction. It is mentioned there that it is using D8 model. D8 model ...
4
votes
1answer
135 views

What is an efficient Algorithm to draw a straight line from points?

I have some cross section survey data, which is like this: X Y Z pt_dt 2970969.635 359725.0088 83.4242 1-x 2970968.278 359722.2182 83.2591 1-x 2970941.771 359670.127 83.0655 1-x 2970961.369 ...
3
votes
3answers
120 views

Is it possible to create a standalone model in ArcMap Modelbuilder?

Is it possible to create an algorithm in ArcMap Modelbuilder that could then become a fully standalone applet? I would like to be able to provide this processing algorithm even to users who do not own ...
3
votes
2answers
54 views

Step by step contour creation algorithm

I do seismic processing, and recently have been moving into doing contours. I have a question on the exact way this is done. I have watered down my problem so that I can understand from 'first ...
7
votes
1answer
234 views

Advantages of R-trees in comparison to geohashes

Geohashes are being widely used in products like: Lucene, mongodb, etc and have become one of the most important technology of present day. Have Geohashes replaced the good old R-trees or do R-trees ...
1
vote
1answer
50 views

Algorithm to find geohashes which satisfy query condition

I have an application where I need to query geohashes by specifying the bounding rectangle. Since geohashes map 2D to 1D is there a method by which I may find the prefixes of all geohashes which ...
1
vote
0answers
27 views

Calculate distance in point collection algorithm

I've got collection of points which are sorted by x,y and distance between n and n+1 (array of objects [{x:0,y:0},{x:1,y:1}....] I would like to calculate distance between all points (point 1 distance ...
1
vote
1answer
43 views

Counting number of points in 1 km grid covering surface of Earth?

I want to cover surface of earth with equal sized shapes and count number of points within each cell. shape of cell doesn't matters (triangle, hexagon ...), neither area, but equality of them is ...
-2
votes
1answer
45 views

How can I find a Douglas-Peucker algorithm for simplification? [duplicate]

I want to understand simplification methods in GIS. I searched the Internet and found that the best simplification method is the Douglas-Peucker algorithm. I could not find any information about the ...
3
votes
1answer
113 views

Topographic Index - Why is upslope contributing area divided by downslope contour width and not upslope contour width?

In the Topographic Index calculation, a is the upslope contributing area per unit contour length. Is the "unit contour length" calculated from examining the contour widths of the downslope cells that ...
0
votes
1answer
95 views

Determining if a Geodetic location is inside a polygon made up of Geodetic vertices

Suppose we have a polygon with Geotic vertices (Points A through E). Is there an algorithm that I can use that could determine If F is inside of it? In addition, what is the most efficient way to ...
1
vote
1answer
40 views

Test for polygon orientation

I'm want to merge multiple geometries with Geotools (starting off with one geometry) but the result is a polygon that has a clockwise orientation. This gives a invalid geometry. My code for the merge: ...
3
votes
2answers
148 views

How to select all files in a directory for merging in Processing?

I'm writing a generic script which involves writing shapefiles to a directory which are then merged together. After writing the files out to the Output folder, I'm trying to get the ...
6
votes
1answer
105 views

Competing approaches to line & polygon simplification

There seems to be a few theoretical options around at the moment for geometric simplification. Douglas–Peucker seems the most established, followed by Visvalingam's approach (used by d3.js). Now ...
1
vote
1answer
66 views

Error: Algorithm not found

I wrote the following code to start using QGIS APIs. in a very short script seen below, the "Error: Algorithm not found" is thrown and "print processing.alglist()" is showing none. Any idea why this ...
2
votes
0answers
64 views

How to detect turns of a route?

I'm doing a Python simulation of a vehicle, driving along a specified path. I generate dummy GPS readings, that fetch the current position of the vehicle, with some randomized error added. After a ...
2
votes
0answers
50 views

How to add nodes into graph

I'm new to qgis and in here I want to find a path between two selected points on the map(Roads-vector layer). The points are selected by the user, using mouse clicks. So here I used the astar ...
0
votes
0answers
21 views

'QgsGraph' object does not support indexing

Traceback (most recent call last): File "/home/kasun/.qgis2/python/plugins/floogin/floogin.py", line 246, in findRoutes path=self.astar.astarSearch(graph, start, end) File ...
4
votes
2answers
398 views

Multilateration Code

I am currently writing some code to do multilateration using TDOA and currently struggling and wondering if anyone has any reference code that can be used as a test case with some sample data that I ...
0
votes
0answers
13 views

Convert ECF to Suface ECF

I'm using the 3D Earth WorldWind Model and I have a path that I want my object to travel. I set the the destination and interpolate to the end point from my current location. The problem is using ECF ...
0
votes
1answer
25 views

Trouble Using Selection Expression in QGIS

I am trying to use the selection expression box to highlight counties by state FIPS. When I use the OR conditional all counties across the US get highlighted. So for example, STATEFIPS = 1 will ...
1
vote
0answers
111 views

What steps does SAGA GIS take when calculating Topographic Wetness, specifically when handling depression filled (by ArcMap) DEM

I am a grad student involved with hydrological modeling. In the model I work on, we are calculating the Topographic Index (TI; without transmissivity - or set to 1) using Quinn's MFD algorithm. We do ...
0
votes
1answer
165 views

Looking for a simple hatching algorithm

If I have an arbitrary polygon, and wish to hatch it with lines at a given angle and spacing, is there a simple low-level algorithm which will return the set of hatch lines inside the polygon?
3
votes
2answers
338 views

What's wrong with my IDW interpolation function (Python)?

Original Question Can anyone see what's wrong with my custom IDW interpolation below? I know there are existing libraries that can do this for me, but for various reasons including educational and ...
1
vote
0answers
100 views

How to Calculate Geolocation Intersection of Two Vectors?

I'm unfamiliar with much GIS terminology but am tasked with solving a specific geolocation problem. For what it is worth, this is for an iOS project, so the data I can collect for analysis is that ...
5
votes
1answer
1k views

Calculating Topographic Wetness Index (choosing from different algorithms)

Topographic Wetness Index can be expressed as Ln(a/tanB) based on the idea of Beven and Kirkby (1979) where a is the spesific catchment area (a=A/L, catchment area (A)divided by contour ...
3
votes
3answers
2k views

How to find if two polygons Intersect in python?

I'm looking for an algorithm, high level solution, or even a library which can help me determine if two polygons intersect, in Python. I have the vertices of the two polygons (These are single part ...
0
votes
1answer
67 views

Set point NOT IN CENTER of polygon

I have a free shaped polygon. Now I draw a smaller polygon inside with a same form i.e buffer zone with negative width. Then put a point with in my buffer zone center. Its looks like this: OK. But ...
0
votes
0answers
89 views

Algorithm to find coordinates at selected intervals along a polyline?

I am developing an algorithm to search down a river at selected intervals and return the coordinates. See below: def Downstream(start, interval, data, offset=0, out=None): if out is None: ...
0
votes
0answers
49 views

return to newline arcgis/arcSDE/postgres labeling

i have two tables : parcel and owners with many to many relation ship so i want to print owners name in my parcels (type polygon), so i coded using .net a function that create field in parcel ...
1
vote
1answer
162 views

Algorithm to move polygon nodes when simplifying

I want to simplify polygons that come from a raster analysis. In order to avoid overlap and gaps, I first convert my polygons to lines. The problem is that all algorithm are then keeping the two end ...
4
votes
2answers
733 views

how to convert UTM northing and longitude to latitude

I am doing some work with the Military Grid Reference System (MGRS), which is based on Universal Transverse Mercator (UTM). I find that I need to convert from UTM northing and longitude (actually, ...
0
votes
2answers
74 views

How to maintain many-to-many relationship between feature class and table with multiple disconnected editors?

I have an application coded with VB.NET (ArcGIS Engine) and its functionality is: digitize a parcel and enter information for its owners, so i have a M-N relationship between them. every parcel has ...
1
vote
2answers
182 views

Looking for dissolve algorithm for Javascript

I have three adjacent polygons that together make up a larger shape. I need an algorithm that will dissolve the internal borders leaving only the outside border. An example would be a group of ...
0
votes
3answers
236 views

splitting a lines layer using points

I'm looking to accomplish a similar task to this thread: How to split a line at point positions? Using QGIS and the Processing and GRASS toolboxes available, I'm looking to split a vector layer ...
2
votes
1answer
655 views

What is the process to calculate Helmert parameters?

I have some double points (the same points in 2 different datums). I'd like to calculate the Helmert parameters but I don't understand how. NOTE: I don't need software. I need an algorithm in order ...
5
votes
1answer
228 views

ArcMap Natural Breaks Classification

I realize that ESRI is calling their implementation of Fisher-Jenks proprietary. Given the performance with mid-sized datasets, either a significant optimization or a sampling method are being ...