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
16
votes
1 answer

Creating D3 map of ellipse envelope data

I have this dataset which has ellipses, more specifically ellipse "envelopes." I was wondering if someone had advice on how I could draw these on a D3 map. I already have a map setup with mercator projection. This stackoverflow answer has a…
jrue
  • 2,522
  • 4
  • 19
  • 25
16
votes
1 answer

GeoPandas: How to obtain bounding boxes for every geometry in a geodataframe

I am using GeoPandas in python and have a valid GeoDataframe of polygons. 0 POLYGON Z ((68.70999999999999 623.1 0, 35.71 6... 1 POLYGON Z ((221.33 645.02 0, 185.7 640.33 0, 1... 2 POLYGON Z ((150.3 650 0, 160.9 650 0, 150.58…
krishnab
  • 9,270
  • 12
  • 66
  • 123
16
votes
2 answers

How can I get the installed GDAL/OGR version from python?

How can I get the installed GDAL/OGR version from python? I aware of the gdal-config program and are currently using the following: In [3]: import commands In [4]: commands.getoutput('gdal-config --version') Out[4]: '1.7.2' However, I suspect…
fmark
  • 57,259
  • 27
  • 100
  • 107
16
votes
2 answers

Buffer (geo)spatial points in R with gbuffer

I'm trying to buffer the points in my dataset with a radius of 100km. I'm using the function gBuffer from the package rgeos. Here's what I have so far: head( sampledf ) # postalcode lat lon city province #1 A0A0A0 47.05564…
vathymut
  • 1,017
  • 2
  • 13
  • 25
16
votes
1 answer

GeoDjango, difference between dwithin and distance_lt?

Using geoDjango, what is the difference between myObj.objects.filter(point__dwithin(...etc.)) and myObj.objects.filter(point__distance_lt(...etc.)) ? Are they the same thing, or are they doing subtly different things?
hendrixski
  • 1,124
  • 1
  • 12
  • 20
16
votes
1 answer

How to plot a heat map on a spatial map

I am new to spatial data analysis in R and would like to do something easy, I am still having difficulties... I have a big table with latitudes and longitudes sample = structure(list(Longitude = c(-0.19117, -0.211708, -0.206458, -0.173862,…
statquant
  • 13,672
  • 21
  • 91
  • 162
16
votes
2 answers

Select all geospatial points inside a bounding box

I have a table called 'flags' in a MySQL database with 400,000 rows. This table is made up of geospatial points that represent different positions around the UK. The application I'm creating uses Google Maps. On the map is a button that should…
jskidd3
  • 4,609
  • 15
  • 63
  • 127
15
votes
2 answers

Set the right crs on sf object to plot coordinate points

I'm trying to define the right CRS for my sf object. I want to plot points atop the following layer (country: the Netherlands): Simple feature collection with 380 features and 3 fields geometry type: MULTIPOLYGON dimension: XY bbox: …
Tdebeus
  • 1,519
  • 5
  • 21
  • 43
15
votes
9 answers

Is there a GIS "Hello World" Equivalent?

Is there the equivalent of the "Hello World" program for GIS applications? I am looking to become more familiar with the development of GIS applications. What are the popular (and free/low cost) tutorials and/or sample applications that would help…
user53474
15
votes
1 answer

How to create a grid of spatial points

library(reshape2) library(data.table) library(dplyr) library(magrittr) library(ggplot2) library(scales) library(gstat) library(DescTools) library(sp) #I want a colorado grid# data("colorado.grid") #making cordinates into spatial points…
Clinton Woods
  • 249
  • 1
  • 2
  • 11
15
votes
1 answer

How to calculate the distance in meters between a geographic point and a given polygon?

First of all, I'm new to GIS, so pardon any mistakes. I need to discover the distance between a latitude and longitude point and a latitude/longitude polygon (regular or not). Precisely, I need to discover the minimal distance from a given point to…
Marcos Roriz Junior
  • 4,076
  • 11
  • 51
  • 76
15
votes
3 answers

How do I use a geospatial query in the 2.1 MongoDB C# driver?

I've been banging my head on this one for days. I have a very simple query I'm trying to run in C#, it looks like this in the shell. db.runCommand({geoNear: "items", near: {type: "Point", coordinates : [-111.283344899999, 47.4941836]}, spherical :…
15
votes
1 answer

Using full text search with geospatial index on Mongodb

Let's say I want to develop an android app that allows a user to search a hotel that is closest to where you are located. This is very common on apps nowadays, like AirBnb for example. This is the dataset I'm using: { "name" : "The Most Amazing…
Simon
  • 19,658
  • 27
  • 149
  • 217
15
votes
2 answers

Smoothing out ggplot2 map

Previous Posts Cleaning up a map using geom_tile Get boundaries to come through on states Problem/Question I'm trying to smooth out some data to map with ggplot2. Thanks to @MrFlick and @hrbrmstr, I've made a lot of progress, but am having problems…
Vedda
  • 7,066
  • 6
  • 42
  • 77
15
votes
1 answer

reading and plotting an esri shape file in R

I'm having difficulties reading in a .shp (esri shape file) into R. I have tried several options in R, and tried to convert the shape file in ArcMap to something that correctly reads in the shape file but nothing worked yet. (In ArcMap I corrected…
Janvb
  • 1,290
  • 2
  • 16
  • 17