Skip to main content

Questions tagged [algorithm]

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

Filter by
Sorted by
Tagged with
179 votes
9 answers
304k views

I'm looking for an algorithm which when given a latitude and longitude pair and a vector translation in meters in Cartesian coordinates (x,y) would give me a new coordinate. Sort of like a reverse ...
Thomas O's user avatar
  • 2,093
98 votes
8 answers
130k views

As you see in the figure, the question is: How to find the minimum-area-rectangle (MAR) fitted on the given points? and a supporting question is: Is there any analytical solution for the ...
Developer's user avatar
  • 3,427
59 votes
7 answers
165k views

I am wanting to find a latitude and longitude point given a bearing, a distance, and a starting latitude and longitude. This appears to be the opposite of this question (Distance between lat/long ...
Jason Whitehorn's user avatar
49 votes
3 answers
48k views

In fact, when Sinnott published the haversine formula, computational precision was limited. Nowadays, JavaScript (and most modern computers & languages) use IEEE 754 64-bit floating-...
Afriza N. Arief's user avatar
46 votes
6 answers
65k views

I want to find out an unknown target location (latitude and longitude co-ordinates). There are 3 known points (latitude and longitude co-ordinate pairs) and for each point a distance in kilometers to ...
nohat's user avatar
  • 565
43 votes
1 answer
47k views

Given a set of 2D or 3D points: How to find the center of geometry of an object? According to the following figure, the center of geometry differs from the center of mass if it is calculated in the ...
Developer's user avatar
  • 3,427
30 votes
2 answers
11k views

One of my colleagues is working with data that is spread across two UTM zone. The majority of the data is in one zone, with a few outliers in another zone. He would like to know what the area ...
kenbuja's user avatar
  • 5,925
29 votes
3 answers
12k views

I have several thousand irregularly shaped polygons in a shapefile. I want to be able to split each polygon into three areas, and to specify what the size of those areas (they sum to the previous ...
djq's user avatar
  • 16.4k
25 votes
2 answers
1k views

I've got lots of flight data from glider pilots in the form of gps fixes in a fixed interval. I would like to analyze the flight path and detect the start and the end of the 'circling' the glider ...
pgross's user avatar
  • 493
22 votes
5 answers
21k views

I am trying to find ways to quantitatively describe the shapes of various polygons. For my project, these polygons represent lakes, rivers, lagoons, and parks. So they can be almost any shape. One ...
user25201's user avatar
  • 381
22 votes
3 answers
8k views

I am trying to find out the points of inflection , i.e. points where the curves in a line start and end. If you look at the image, the green line may be a road or a stream, and the black points are ...
Devdatta Tengshe's user avatar
21 votes
2 answers
8k views

I have a set of 3D points. They follow a curved pattern with a rather constant diameter as shown below. What would be the algorithm to trace the approximate center line of these points?
vinayan's user avatar
  • 7,350
20 votes
3 answers
25k views

I have a list of a few hundred cities with their latitude/longitude. Given another location (also in lat/long) I need to find the nearest city. As I don't use any GIS, by now the obvious algorithm is ...
lujop's user avatar
  • 365
20 votes
5 answers
3k views

Related question here. I notice that ensuring topological correctness is essential for GIS applications, this is because the input from user or polygon boolean operation can have severe topological ...
Graviton's user avatar
  • 958
19 votes
1 answer
5k views

Can anyone suggest an algorithm to generate a heatmap for visualising point diversity? An example application would be for mapping areas of high species diversity. For some species, every single plant ...
rudivonstaden's user avatar
18 votes
3 answers
2k views

I'm looking for an efficient way to cluster lines independent of their direction. That means that a line between New York and Los Angeles should be in the same cluster as a line in the other direction ...
underdark's user avatar
  • 85k
17 votes
5 answers
6k views

I have a polygon layer that describes a constraint; I wish to add points within this area. I want to add as many points as possible, but they must have a minimum spacing between them. Is it possible ...
Matthew Snape's user avatar
17 votes
1 answer
255 views

It is common to use a bounding box spatial index to improve performance when working with a large number of features. Where operations are performed against individual geometries with a large number ...
Matthew Snape's user avatar
16 votes
2 answers
9k views

Say I have a ray vector originating from somewhere out in space. An example might be a ray of light from the sun. How can I calculate the point of intersection (if it exists) between the ray and the ...
Pris's user avatar
  • 1,269
15 votes
3 answers
10k views

I'd like a general way to calculate centroids for polygons on a sphere. So far, the best online reference appears to be: Tools for Graphics and Shapes by Jeff Jenness. The method described there ...
Jason Davies's user avatar
14 votes
7 answers
11k views

I am interested in the maximum width of a polygon e.g. a lake, in east-west direction. Bounding boxes will help only in simple polygons but not in complex concave polygons.
cardiopteris's user avatar
14 votes
2 answers
1k views

I have a vector layer with millions of polygons making continuous coverage. I need to classify them according to their shape. I am already using several shape indexes from landscape ecology like ...
nadya's user avatar
  • 2,521
13 votes
10 answers
17k views

I need to find a centroid (or label point) for irregularly shaped polygons in Google Maps. I'm showing InfoWindows for parcels and need a place to anchor the the InfoWindow that is guaranteed to be on ...
Jason's user avatar
  • 718
13 votes
4 answers
23k views

I have a raster that I'd like to do some point interpolations with. Here is where I'm at: from osgeo import gdal from numpy import array # Read raster source = gdal.Open('my_raster.tif') nx, ny = ...
Mike T's user avatar
  • 42.7k
13 votes
8 answers
949 views

Most of the applications providing pedestrian routing I see are sufficient for many needs but not optimal: you cannot cross open spaces like town squares, routing is in the middle of the street etc. ...
FredB's user avatar
  • 741

1
2 3 4 5
12