Questions tagged [spatial]

Spatial data types store geometric data, that is data related to an object's position in space.

Spatial data types store an object's position in space, colloquially these types are "geometric" or "geographic", and operating on them will make use of geodesic or Cartesian calculations. The applied field devoted to spatial data is Geographic Information Systems (GIS); the GIS Stack Exchange should be considered for questions with this tag.

Many popular databases engines now include support of spatial data types, including:

3312 questions
1
vote
1 answer

how to expand the polygon to reach nearby line in r?

Let say i have a SpatialPolygons object with 3 polygons data name groupexc: library(raster) p1 <- matrix(c(2, 3, 4, 5, 6, 5, 4, 3, 2, 4, 5, 6, 5, 4, 3, 2, 3, 4), ncol=2) p2 <- matrix(c(8, 9, 10, 11, 12, 11, 10, 9, 8, 4, 5, 6, 5, 4, 3, 2, 3, 4),…
ahmad fikri
  • 61
  • 1
  • 8
1
vote
2 answers

GvrAudioListener and GvrAudioSource not behaving as expected or at all

I must be missing somewhere. In the DemoScene.unity with an GvrAudioSource attached to a GameObject, I expect to notice it sounding different as I rotate the camera (with a GvrAudioListener attached) towards or away from the source, but it doesn't…
Ben Outram
  • 11
  • 2
1
vote
1 answer

orient-db: does the 2.2 Spatial Module provide a new way to achieve NEAR functionality?

i'm looking to do queries similar to those described in the pre-2.2 spatial-index documentation: SELECT *, $distance FROM Class WHERE [,,$spatial] NEAR [lat,lon,{"maxDistance": distance}] (i would also like to sort by…
tony_k
  • 1,983
  • 2
  • 20
  • 27
1
vote
0 answers

how to choose the spatio-temporal variogram parameters for krige interpolation

Recently I'm doing the spatial-temporal interpolation with R. I choose the function krigeST in package gstat,which used kriging method in spatial-temporal data. Here is my steps: Firstly I create a STFDF object called…
LollipopKnight
  • 431
  • 4
  • 6
1
vote
4 answers

How can I do this 'for each' code in SQL Server 2008 without using cursors?

I wish to do the following pseudo-code in SQL without the use of a CURSOR, if possible. for each zipcode { -- What city is this zipcode in? A zipcode can be in multiple cities, -- but one city area is always way greater that the others. …
Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
1
vote
1 answer

Finding fairway and ports from ship track point using R

I have some data points from different ship include lon/lat, time and ID values recorded by AIS machine on ships, I want to use this points values to create line values which indicate the ship track, and then use track lines to find out fairway and…
HL.Chang
  • 11
  • 2
1
vote
0 answers

Zonal stats for rasters of differing resolutions & CRS [R]

I'm trying to count how many cells on a fine resolution raster fit inside each cell of a coarser raster. The resolutions and the extents differ. Assume for now the coordinate systems have been reprojected and they match. require(raster) # make a…
Sam
  • 1,400
  • 13
  • 29
1
vote
0 answers

OrientDB Spatial Module Distance Calculation

I need to calculate distance of two positions on OrientDB with new Spatial Module which is available for version 2.2. I have checked documentation (http://orientdb.com/docs/2.2/Spatial-Module.html) but couldn't find anything. I can calculate…
stanzat
  • 31
  • 5
1
vote
2 answers

Trying to create a function to join two datasets by closest gps coordinate

I am trying to merge two datasets which contain GPS coordinates such that I am left with one dataset with variables from both datasets. I am trying to use a function to achieve this. The problem is that the GPS coordinates from both datasets do…
Alex
  • 172
  • 8
1
vote
1 answer

SpatiaLite: RTreeDistWithin for multidimensional data

RTreeDistWithin( x Double precision , y Double precision , radius Double precision ) This function retrieves from an R*Tree Spatial Index any entity whose MBR intersect the square circumscribed on the given circle. Is there any analog for 3 and…
MyName
  • 357
  • 2
  • 4
  • 15
1
vote
1 answer

Conditionally extract data from a raster stack data based on values in a spatial points dataframe

I have a raster stack containing 84 layers each of which corresponds to 1 month of rainfall from November 1999 to October 2006. I have named the layers in my raster stack 199911 to 200610 i.e. year followed by month. I also have a spatial points…
James
  • 1,164
  • 2
  • 15
  • 36
1
vote
2 answers

How to use cshapes and ggplot2 to make a choropleth map in R?

I'm having trouble doing something very basic. I've done this hundreds of times with no problem with other maps but I can't get a cshapes shapefile to map properly using ggplot2 (as an example I'm trying to map "AREA" as the fill, which is a…
Cyrus Mohammadian
  • 4,982
  • 6
  • 33
  • 62
1
vote
0 answers

Spatial Query in Sitecore Lucene to find Items who's range a user's coordinates fall into

I have items in Sitecore, these items represent service centers. They have a lat/lon and they have an effective range, meaning a range in which they are able to provide a service. These ranges could be different. One service center has a 10 mile…
Alex
  • 855
  • 7
  • 11
1
vote
1 answer

Distance matrix between 500,000 sets of coordinates

I'm working on a project with 500,000 participants. We have in our database the precise coordinates of their home, and we want to release this data to someone who needs it to evaluate how close our participants live to one another. We are very…
radiumhead
  • 502
  • 2
  • 9
1
vote
1 answer

How to match the data from a shp file with those contained in a dataframe?

I am drawing spatial samples from a shp file. In this way: pr <- readShapePoly("PuertoRico.shp") n <- 90 samp.reg <- spsample(pr, n, type="regular") This is what I get: samp.reg SpatialPoints: x1 x2 #[1,] -66.15482 17.93279 …
27titanik
  • 21
  • 5
1 2 3
99
100