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

learn more… | top users | synonyms

0
votes
0answers
7 views

Requesting Mongodb collection with 2dsphere index from Leaflet LatLng

I am using projection and 2dsphere index. Similar posts have been done on mongodb support site but it may be a pure GIS problem,so here I am ^^. My scenario is the following : I create a Point/...
1
vote
0answers
45 views

Getting H2GIS functions to work in Spherical Space?

I've been playing around with H2GIS (http://www.h2gis.org/) for a project at work and am struggling to get the H2 functions to operate in spherical space (lat/ lon), rather than cartesian space. The ...
4
votes
0answers
29 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 ...
0
votes
0answers
42 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)+ Math.pow(B....
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 ...
1
vote
1answer
58 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 ...
11
votes
1answer
137 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 ...
1
vote
1answer
72 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
149 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 ...
0
votes
0answers
50 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
1answer
649 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
131 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
118 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 it....
1
vote
2answers
511 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 ...
1
vote
0answers
86 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 area-...
3
votes
1answer
148 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
132 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 ...
7
votes
1answer
344 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
8k 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
209 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
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
131 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
115 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
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 ...
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
237 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 ...
1
vote
0answers
116 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
66 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
222 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
252 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
2answers
61 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
36 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 ...
2
votes
1answer
175 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
27 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
553 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
67 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
659 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 ...
9
votes
0answers
154 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
47 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
990 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
163 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
265 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
645 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
415 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 = 28....
1
vote
1answer
150 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 ...