Spherical geometry is the geometry of the two-dimensional surface of a sphere.

learn more… | top users | synonyms

3
votes
1answer
29 views

Algorithm to draw a perpendicular line on Google earth (KML)

I have two points say A (lat,lon ) and B(lat,lon) and I want to draw a perpendicular bisector line to AB such that any point (C) on the perpendicular line satisfies AC=BC. All I want is a function ...
4
votes
1answer
42 views

Is there any online viewer which displays the polygons assuming great circle lines for the edges?

My question is similar to this one: Are there any online WKT editors? The links given in answers have been very useful to me. However, it seems that when the tools in question display maps, they ...
0
votes
0answers
63 views

matlab code for dividing cells

I want to divide a city map to hexagonal cells such as i enter it the diameter for a hexagon and it divide the city to cells then i enter to it parameters and it calculate the cluster number for the ...
6
votes
1answer
108 views

Project location on a (great circle) path

I've been searching this SE site for quite a few hours now, and I'm still struggling to find a solution to my question. My goal is that given a way in OSM and my location (lat/lon coordinates), I want ...
2
votes
1answer
86 views

Calculate longitude length in miles

Suppose I have geographic coordinates of "Saratoga, California, USA" as Latitude: 37°15.8298′ N Longitude: 122° 1.3806′ W I know from here that in case of latitude 1° ≈ 69 miles and that ...
3
votes
1answer
81 views

Proof of part of haversine formula?

I'm trying to study how to find the distance between two points if their latitudes and longitudes are given. I have a question about the proof of part of the haversine formula given at Math Forum. ...
0
votes
0answers
50 views

Given distance (in meters) what is the angle in geographic reference systems? [duplicate]

In QGIS and other systems sometimes I have a layer in geographic reference system (typically WGS84, EPSG:4326) and I'd like to calculate a buffer of say 5000m around a point. So, given a point ...
1
vote
0answers
32 views

Calculate an intersection point of multiple spheres on the surface of earth [duplicate]

The question i am going to ask is very much similar to this question-How to calculate the intersection of 2 Circles? But the problem here is, the radius of the spheres are too small (within 8 meter). ...
2
votes
1answer
42 views

Calculating a point Lat/Lon from another Lat/Lon point angle

I need help for a solution of this problem to make an algorithm: : I have a point O center of a circle of radius r, on this circle there is two point P1 and P2. I know latitude and longitude of ...
3
votes
1answer
47 views

Direct Geodesic with Point 2 Azimuth

I am trying to find a way to calculate the direct problem on the WGS-84 ellipsoid but instead of using the initial Azimuth (e.g. lat1, lon1, distance, fwd azi), I want to compute it with the reverse ...
1
vote
0answers
38 views

How to Increase the length of column type geometry in postgres(pgAdminIII)

I am just wondering is there any way to increase the default length of column type geometry in postgres. Since we are trying to save large number of vertices polygon in to the geometry column geom in ...
1
vote
2answers
783 views

Equations to convert from global cartesian coordinates to geographic coordinates

First, I needed to convert geographic coordinates (like those received from GPS) to global cartesian coordinates. I found an earlier question (How do I calculate a xyz-position of a gps-position ...
2
votes
1answer
82 views

Is a point within a polygon

I need help in this question. To explain briefly -- the question is: Whether a point with coordinates lng:-80.087535 lat: 42.054246 lies over or under line with coordinates: lng: -80.267831 ... ...
0
votes
0answers
9 views

Calculating z coordinate for longitude, latitude Google Map [duplicate]

I have a point (lon, lat) values. Is there any service to calculate Z coordinate of this point. Google service, OpenLayers service or others.
5
votes
0answers
90 views

Point sampling along a pole-wrapping coastline with PostGIS

I am working on a task that requires me to get sample points every 1000KM along coastlines, and have run into a problem with Antarctica. From what I can tell, it seems to be an issue with the use of ...
1
vote
0answers
57 views

Mapping from one plane on the other plane despite of masking regions

have a set of data given here, where in the first and second columns there are the sky coordinates (ra,dec) e.g. right ascension and declination, respectively and in the third and forth, the ...
1
vote
1answer
42 views

What is the radius of earth [duplicate]

What is the real radius of earth? Google says 6378.1 km Wiki says 6371 km And there are references for 6378.7 km I'm using maximum radius 6378.7 km in distance calculation in spherical law of ...
2
votes
0answers
95 views

Determine PostGIS geography polygon orientation

How can you determine the orientation of a PostGIS geography polygon? I'm looking/hoping for a function that would tell me which side is the interior (left or right) as you traverse the vertices of ...
1
vote
1answer
101 views

Moving object of fixed dimension without distortion

I am trying to move a polygon object in a shapefile to a new location. I will perform an offset so that the process can be automated by shifting the object to a new geographic coordinate or moved by ...
1
vote
0answers
90 views

How do I convert Lon and Lat to pixels in map using world file? [closed]

I have a tiff map file, with a tfw world file that has these parameters (lon/lat in radians): 0.00000107180145766 \\ A 0.0000000000 \\ D -0.0000000000 \\ B -0.0000009331315579 \\ E ...
1
vote
2answers
49 views

Spherical law of cosine what does the 'a' represent?

I want to use the spherical law of cosine formula, θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ ), to calculate distances between coordinates, but, I cannot for the life ...
1
vote
0answers
34 views

Pont to Point and Point to Line Calculations [duplicate]

We have been beeating our head against a wall trying to get point to point and point to line segment (perpindicular) to work in PHP. I posted the other day as well but did not include the code in ...
0
votes
0answers
97 views

Point to Line Calculations

We are looking to take a point and compare it against the nearest point to an adjacent line. All values are in lat/long. We tried using some of the concept found on the board but found it did not ...
1
vote
0answers
23 views

Find coordinate of point on the boundary of a circle given a latitude/longitude and radius [duplicate]

I understand how to use the haversine formula to compute the distance between two points on the earth. However, I would like to answer a similar, albeit different question. How can I compute the ...
0
votes
0answers
25 views

Find square with latitude and longitude for given lat and lng and distance [duplicate]

I have the coordinates of some point, lets say lat and lng, I want to find the latitude and longitude of top left and bottom right corners of the square, whose sides are located k kilometers from the ...
2
votes
2answers
264 views

How to find the destination point given a start point, distance and bearing?

If I have a starting point as well as distance and a bearing to the destination point, how can I find the coordinates of the destination point using PostGIS? I'm looking for a PostGIS equivalent to ...
3
votes
0answers
65 views

Given distances from two locations how to accurately find geographic coordinates [duplicate]

I am working on a research problem which requires me to calculate a geographic location accurately (with error distance of few meters), given distances from two geographic locations. For instance: ...
1
vote
1answer
362 views

Converting Lambert Conformal (x, y) of spheroid to (lon, lat) of NAD83 with proj/cs2cs?

Revised Trial: Correct? According to Andre Joost advice, I tried with "+towgs84=0,0,0", and the both two ways seem to get the same answer that mkennedy posted below. So, just to make sure, anybody ...
5
votes
0answers
77 views

Compute visibility graph on sphere

I have a PostGIS table with some polygons (stored using the geography data type). They represent regions on a spherical earth. For each pair of vertices chosen from among all the polygons, I want to ...
0
votes
0answers
28 views

Quickest method for determining which postcode is 2 miles north of original postcode? [duplicate]

What is the Quickest method for determining which postcode is 2 miles north of original postcode? For instant L17. I know how to determine the distance between 2 points as below, but the above ...
0
votes
1answer
45 views

Hard to get my head around, generating average price for houses in each quadrant

I'm able to determine the average price of houses sold in a particular area (like the squares on image below) dependent upon postcode. Although I can generate the average sale price for a particular ...
1
vote
2answers
363 views

Is there an average size for British postcodes?

Is there an average size for British postcodes? Or a method of determining the size for a particular British postcode? Thanks. Considering creating a related program and this would be valuable ...
1
vote
1answer
95 views

How do I convert OS coordinates (X and Y) to longitude and latitude coordinates?

How do I convert OS coordinates (X and Y) - Eastings and Northings to longitude and latitude coordinates? For example X and Y below X (Eastings): 347904 Y (Northings): 287484
1
vote
1answer
132 views

How do I figure out the grid references (Eastings and Northings) necessary to create a circular 1 mile radius around one location?

How do I figure out the grid references necessary to create a circular 1 mile radius around one location? For instance: Grid Reference: SO 47904 87484 X (Eastings): 347904 Y (Northings): 287484 ...
1
vote
2answers
367 views

Given a flight path given in latitudes and longitudes, how do I find another flight path that is parallel to the path given?

Given a flight route that is given in latitudes and longitudes, how do I find another route that is "parallel" to the route given (find a perpendicular line to each waypoint given)? I think the best ...
3
votes
1answer
206 views

How do I figure out the longitude and latitude coordinates necessary to create a circular 1 mile radius around one location?

How do I figure out the longitude and latitude coordinates necessary to create a circular 1 mile radius around one location? I don't mind how many coordinates that takes. For instance: Latitude = ...
1
vote
1answer
120 views

Defining a line from geographic coordinate points.

On a flat surface we can define any point on line which passes from point1 (x1,y1) to point2 (x2,y2) via simple trigonometry. How can we do that with latitude and longitude of 2 points? Imagine we ...
1
vote
0answers
190 views

Intersection between a ray from lat, lon, alt, with pan, tilt and earth's surface

I have a problem that consists of finding the intersection point between a ray from a given lat, lon, alt, that is looking to a given pan and tilt angles and the earth's surface. I need the lat, lon ...
0
votes
0answers
86 views

recalculate latitude and longitude from a pixel in a cropped map

i want to recalculate a geographic coordinate from a pixel in a map. For this i have the size and the coordinates from the map to convert a coordinate to a pixel is use the algorithm, you find at ...
1
vote
0answers
426 views

How to approximate point to segment distance on sphere?

I would like to approximate the distance of a line segment from a reference point on the map (coordinates are gives as lat/lon). In the Cartesian coordinate system I would simply find the closest ...
9
votes
1answer
206 views

Mercator bias plot in Leaflet

I was inspired by this wikipedia image from the mercator projections page to hack around with leaflet. The idea was to interactively have your cursor move a continent and that it would be corrected ...
2
votes
3answers
921 views

How to compute distance between 4500 points fast?

I am working on a location problem with 150 customers (points) and 30 facilities (points). I have determined the location of any customer and facility by google earth and then saved them in a KMZ ...
3
votes
3answers
688 views

Formula for coordinates (lat, lon), azimuth and distance.

I would like to know how to find a set of coordinates on a small circle some distance from another point. For example, lets say A = (39.73, -104.98) #Denver B = (39.83, -106.06) #point ...
3
votes
2answers
484 views

Variation of algorithms to find point from another point with bearing and distance

There are several algorithms to calculate distance between two latitude/longitude points. Haversine Hubeny Lambert-Andoyer Vincenty's formulae for inverse problem But there are not so many ...
1
vote
1answer
274 views

How to get screen coordinate from geographic one?

I need to know, how can I convert some geographic coordinates to the screen one. I want to remind you about desktop coordinates system, how it look like: I've developed soft, which is loading map ...
3
votes
0answers
104 views

How can I convert LIDAR based measurement to UTM coordinate?

I have lidar based measurement with azimuth elevation and range, I would like to convert this data to UTM coordinate. I know the position of the lidar in UTM coordinate system, so I developed the ...
2
votes
1answer
196 views

Does spherical equilateral triangle T contain point P?

I am working on a Python script to: compute the vertex coordinates of a geodesic sphere/icosahedron, project the triangles onto a sphere, then find which spherical triangle contains an arbitrary ...
1
vote
0answers
295 views

Locating the centroid (center of mass) of spherical polygons

I'm trying to work out how best to locate the centroid of an arbitrary shape draped over a unit sphere, with the input being ordered (clockwise or anti-cw) vertices for the shape boundary. The density ...
2
votes
1answer
422 views

Map projection lat, lon to pixel?

I'm trying to find the concave hull of a lat, lon pointset but when I project my points on my map it doesn't look like expected. I've tried a lineare projection and a spherical projection. My data is ...
3
votes
2answers
413 views

Is there a world projection that looks like a 3D globe?

I would like to try and show data such that it appears as if it was on google earth. For example, in this case, the view of the earth is circular-like and the data shown curves around. Are there any ...