Questions tagged [geospatial]

pertaining to the geographic location and characteristics of natural or constructed features and boundaries on, above, or below the earth's surface; esp. referring to data that is geographic and spatial in nature.

Geospatial (adj) Definition: pertaining to the geographic location and characteristics of natural or constructed features and boundaries on, above, or below the earth's surface; esp. referring to data that is geographic and spatial in nature.

[Source]

4809 questions
42
votes
6 answers

Calculating bounding box a certain distance away from a lat/long coordinate in Java

Given a coordinate (lat, long), I am trying to calculate a square bounding box that is a given distance (e.g. 50km) away from the coordinate. So as input I have lat, long and distance and as output I would like two coordinates; one being the…
Bryce Thomas
  • 10,479
  • 26
  • 77
  • 126
41
votes
4 answers

Decoding the Google Maps embedded parameters

The context I would like to be able to extract the location of Google Maps embedded in a website (random example found at the bottom of this website).
Manu CJ
  • 2,629
  • 1
  • 18
  • 29
38
votes
4 answers

Storing Lat Lng values in MySQL using Spatial Point Type

Tech used: MySQL 5.1 and PHP 5.3 I am just designing a new database for a site I am writing. I am looking at the best way of now storing Lat and Lng values. In the past I have been using DECIMAL and using a PHP/MySQL select in the…
bateman_ap
  • 1,911
  • 7
  • 28
  • 41
38
votes
10 answers

Unable to load DLL 'SqlServerSpatial140.dll': The specified module could not be found

This all new to me, so bear with me... I'm working on a Visual Studio project; it's a web service that returns some data. I've just tried to make a particular call to the web server on my local machine (IIS) and I'm getting this error: Unable to…
reviloRetals
  • 485
  • 1
  • 7
  • 14
37
votes
4 answers

Solr - How do I construct a query that requires a NOT NULL Location field

I have a Solr index with a set of coordinates stored as a Location type; I would like to query for documents where this field has a non-null value. What is the query syntax to perform the NOT NULL check on a Location field?
STW
  • 44,917
  • 17
  • 105
  • 161
36
votes
3 answers

Units to use for maxdistance and MongoDB?

I am trying to get my head around MongoDB and geospatial searches. Basically what I want is for users to be able to query documents (images) that are shot within a set distance from the users current location. So I the user is searching for all…
Jonathan Clark
  • 19,726
  • 29
  • 111
  • 175
36
votes
6 answers

Open alternatives to Google-maps?

I'm looking for an alternative to Google-maps with all the richness of their API but more open. Does such a thing exist?
Skizit
  • 43,506
  • 91
  • 209
  • 269
36
votes
7 answers

Merging multiple rasters in R

I've been trying to find a time-efficient way to merge multiple raster images in R. These are adjacent ASTER scenes from the southern Kilimanjaro region, and my target is to put them together to obtain one large image. This is what I got so far…
fdetsch
  • 5,239
  • 3
  • 30
  • 58
34
votes
8 answers

Detecting whether a GPS coordinate falls within a polygon on a map

As stated in the title, the goal is to have a way for detecting whether a given GPS coordinate falls inside a polygon or not. The polygon itself can be either convex or concave. It's defined as a set of edge vectors and a known point within that…
Saul
  • 17,973
  • 8
  • 64
  • 88
34
votes
2 answers

Is the Haversine Formula or the Vincenty's Formula better for calculating distance?

Which is better for calculating the distance between two latitude/longitude points, The Haversine Formula or The Vincenty's Formula? Why? The distance is obviously being calculated on Earth. Does WGS84 vs GCJ02 coordinates impact the calculation or…
jjNford
  • 5,170
  • 7
  • 40
  • 64
33
votes
11 answers

Unable to load SqlServerSpatial.dll

I am trying to use the SqlServer Spatial CLR types in a C# .Net project. I want to use SqlGeometry to query spatial records out of my db. I have this working on my local machine in a unit test running in Visual Studio 2010 hitting a remote SqlServer…
VBAHole
  • 1,508
  • 2
  • 24
  • 38
32
votes
5 answers

How to store geospatial information in mongoDB

Acording to the mongoDB documentation (link) if you want to store geospatial information in a document field, you have two options, an array or an embedded document, and the order should be always longitude, latitude. If I want to use an embedded…
José Luis
  • 3,713
  • 4
  • 33
  • 37
31
votes
7 answers

How to calculate distance from a point to a line segment, on a sphere?

I have a line segment (great circle part) on earth. The line segment is defined by the coordinates of its ends. Obviously, two points define two line segments, so assume I am interested in the shorter one. I am given a third point, and I am looking…
daphshez
  • 9,272
  • 11
  • 47
  • 65
30
votes
1 answer

How can I remove border lines when using geom_sf?

I tried doing the following: ggplot(geography) + geom_sf(aes(fill=rate, color = NULL)) but that didn't get rid of the border lines.
Sam
  • 445
  • 1
  • 5
  • 8
30
votes
5 answers

SQL Server 2008 Spatial: find a point in polygon

I am using SQL Server 2008 spatial data types. I have a table with all States (as polygons) as data type GEOMETRY. Now I want to check if a point's coordinates (latitudes, longitudes) as data type GEOGRAPHY, is inside that State or not. I could not…
Farhan
  • 2,535
  • 4
  • 32
  • 54