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

learn more… | top users | synonyms

6
votes
2answers
2k views

Find tangent point on circle furthest east or west

There are few ways of articulating my question. It starts with a known circle on a sphere, i.e. a point-radius, and one that does not cover a pole. I would like to calculate the point furthest west ...
4
votes
2answers
2k views

How to calculate midpoint given north/south latitude and east/west longitude?

First, sorry if this questions sound very simple. I am very new to GIS. Given four values of north/south latitude, east/west longitude how to calculate the center point that is correct for all cases ...
4
votes
0answers
26 views

Calculating distances (differences?) between two regions?

I am building a machine learning system which predicts the location of tweets as a bounding box (using the google maps API among other things). Since the twitter API also supplies a bounding box, I am ...
12
votes
5answers
1k views

Calculating visible sky percentage?

Can anyone explain, as simply as possible, how to calculate the visible sky percentage? I have done a satellite survey and have worked out the height of buildings and the distance between them. ...
0
votes
0answers
45 views

Triangulation of Cell Towers using MSQL Server Spatial

I need to triangulate a GSM Device by using known cell towers locations and GSM readings. All Data is in a MS SQL Server as Geometry Types. herewith an example of the data : here is also a SQL ...
0
votes
0answers
40 views

How to find angle between 3 points on sphere? (in javascript)

How to calculate angle between 3 points on sphere? Currently i've got function correct for cartesian space: function find_angle(A,B,C) { var AB = Math.sqrt(Math.pow(B.lon-A.lon,2)+ ...
24
votes
4answers
5k views

How to calculate the intersection of 2 Circles?

I'm trying to figure out how to mathematically derive the common points of two intersecting circles on earth's surface given a center Lat/Lon and a radius for each point. Ex. Given: Lat/Lon ...
2
votes
0answers
30 views

How to properly deal with rectangles being curved on geographies?

I'm using Microsoft SQL Server to store simple data for administrative boundaries of the world (lots of polygons). I store this in a geography data type column. Afterwards I query these polygons by a ...
2
votes
1answer
169 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 ...
7
votes
2answers
2k views

Find Perpendicular Distance and Minimum Perpendicular Vector between a Point and a Line using GeoTools and JTS

I have a line formed by 2 lat/lon pairs, and the lat/lon of a point. I would like to find out the perpendicular distance between the line and the point on the Earth surface (can assume Earth as great ...
17
votes
3answers
4k views

What is the approximate error of the Pythagorean Theorem vs. Haversine Formula in measuring distances on a sphere at various scales?

Many people when first trying to calculate distances between two longitude / latitude pairs ask if Pythagorean theorem works as an appropriate distance function. Most often people answer "no, the ...
11
votes
1answer
131 views

How big does a circular geofence need to be for the curvature of the earth to matter? [duplicate]

I'm working on adding geofences to a mobile application. I know the proper way of calculating distance between two points on a sphere is using the great-circle or Haversine formula. I don't know if ...
3
votes
0answers
145 views

Converting 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 ...
1
vote
1answer
50 views

PostGIS - st_intersects using polygons that cross antimeridan/equator

New to using PostGIS and have two situations that I'm working with. In the one case, I have a polygon that crossed the antemeridian and was detecting whether a two separate points located within that ...
45
votes
6answers
15k views

Why is the 'straight line' path across continent so curved?

This is the result of mapping the straight line path from a point in US to Poland using Distance Measurement Tool. Also, planes from Asia to US would travel almost over North Pole. Why is the path ...
0
votes
1answer
797 views

Converting Lat/Lon to Pixel-XY on cropped map?

I have a GPX-Track containing LatLon coordinates based on WGS84. The track should be drawn on a cropped map, and for this, I need the pixel coordinates. The map tiles are from OSM I'm not quite sure ...
1
vote
1answer
63 views

JTS polygon intersection calc on a geoid

I am using JTS to compute intersections between polygons with WGS84 lat/lon coordinates. I am not converting coordinates to anything 2D based, just reading in POLYGON(lat lon, lat lon) and doing ...
1
vote
0answers
147 views

Transforming zonal and meridional velocity from regular lat lon to rotated lat lon?

Like in Transforming regular lat/lon to rotated lat/lon? that was asked before, I am working with climate data and I need to transform zonal and meridional velocities (u and v) from regular lat lon ...
16
votes
3answers
7k views

Lon/lat transformation

First I should clarify I don't have previous experience with the field, so I don't know the technical terminology. My question is as follows: I have two weather datasets: The first one has the ...
9
votes
1answer
228 views

Point sampling along a pole-wrapping coastline with PostGIS

I am working on a task that requires me to get sample points every 1000 km 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 ...
2
votes
1answer
2k views

Transforming regular lat/lon to rotated lat/lon?

I am currently working with climate data projected in a rotated lat/lon grid and came across this excellent 'cookbook' by mkadunc on how to manually transform rotated lat/lon to regular lat/lon: ...
1
vote
2answers
466 views

Polygon area calculation in Ruby (on Rails, rgeo, PostGIS and GEOS) in sqare meters

In a Ruby-on-Rails application, I need the area in square meters (or any other surface measure, be it ares, hectares, square kilometers, but not in pseudo surface measure like square degrees) of a ...
21
votes
7answers
35k views

Calculating Lat/Lng X miles from point

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 ...
1
vote
1answer
261 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 ...
11
votes
3answers
2k views

Finding most remote spot in Eastern United States?

I have this hunch that I could travel no more than 50 miles from the most remote spot in the Eastern United States (east of the Mississippi River), in the direction of the nearest road, and find a ...
0
votes
1answer
524 views

How to make a point from real latitude and longitude values

My program has a center point and one moving object . At this moment this point is somewhere in Europe.But Now i have to change that point from the latitude and longitude values(of Australia) . Please ...
0
votes
0answers
28 views

Determining North-South Line Via Watch Method?

I read about Determining North-South Line Via Watch Method recently (page 9). What is the underlying geometric/celestial reason this works? What is the error to true north given this method? Is ...
2
votes
1answer
128 views

Getting coordinates at location n meters from known point to NW and SE using ArcPy?

I have a point shapefile or feature class and I want to create bounding boxes around each point. The size of the bounding box will depend on user input, for example the user might want a bounding box ...
3
votes
1answer
117 views

After how much distance does the x,y coordinate system become noticeably distorted?

I'm working with maritime sensors that give information of moving objects it detects, in azimuth, range and elevation, and we convert it to x,y coordinates for our application to be able to process ...
54
votes
3answers
73k views

Algorithm for offsetting a latitude/longitude by some amount of meters

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 ...
38
votes
2answers
4k views

How accurate is approximating the Earth as a sphere?

What level of error do I encounter when approximating the earth as a sphere? Specifically, when dealing with the location of points and, for example, the great circle distances between them. Are ...
1
vote
0answers
83 views

XYZ bounding box of a spherical polygon

I'm looking for an algorithm to calculate the 3d bounding box of a spherical polygon - i.e. the min/max X, Y and Z over that part of the surface of a unit sphere. The purpose is to aid fast ...
4
votes
1answer
119 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 ...
3
votes
1answer
141 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 ...
7
votes
1answer
314 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 ...
3
votes
1answer
197 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. ...
2
votes
1answer
6k 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 ...
0
votes
0answers
52 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
34 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
130 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 ...
4
votes
1answer
507 views

Dividing a geographic region

I have a certain geographic region defined by the bottom left and top right coordinates. How can I divide this region into areas of 20x20km. I mean in practial the shape of the earth is not flat it's ...
3
votes
1answer
113 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
1answer
568 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 ...
1
vote
1answer
65 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 ...
1
vote
0answers
87 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 ...
8
votes
2answers
9k views

How to convert Distance, Azimuth, Dip to XYZ?

I have an excel spreadsheet with header and survey drill data. Header data contains hole ID, and location coordinates, and the survey data contains related downhole survey with Distance, Azimuth and ...
0
votes
1answer
939 views

Specifying a rectangle as two latitude/longitude pairs, one for center and one for size

I am trying to make sense of the Google S2 library for spherical math (it works like this). I need to get a rectangle for searching for nearby entities in a database, based on a point and a distance ...
1
vote
2answers
5k 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
102 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 ... ...
9
votes
1answer
244 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 ...