spatial Questions

1

I have a three layer raster with red, green, and blue channel values in it. I can plot the image with raster::plotRGB, but I need to add axes with UTM coordinates. Coordinates can be added with axe...
Joletta asked 18/4, 2013 at 21:56

2

This code is taken from this page: library(leaflet) leaflet(data = quakes[1:20,]) %>% addTiles() %>% addMarkers(~long, ~lat, popup = ~as.character(mag)) Instead of markers, is there any w...
Natch asked 31/7, 2015 at 11:51

2

Solved

I have a RasterBrick consisting of monthly rainfall data over 7 years, so it has 7 layers with 12 slots each: rainfall <- brick("Rainfall.tif") > rainfall class : RasterBrick dimensions :...
Cruzeiro asked 15/12, 2015 at 16:26

1

Solved

I'm writing an application where I need to query for a records within a radius of some position. I started out with just a lat / long pair of properties on my PCO but realised that spatial searches...
Ta asked 10/12, 2015 at 21:8

1

Solved

I would like to extract spatial data in a buffer of 10 km around 30 000 objects of class SpatialLines and calculate proportion of each land cover type around buffered lines. In a first time, I used...
Obligor asked 7/12, 2015 at 21:12

0

I converted a raster with 4 classes to a SpatialPolygonsDataFrame, where the features representing a class are not always connected. I used disaggregate (package sp) to get single features. I now ...
Hine asked 25/11, 2015 at 13:54

1

Solved

I am doing some work where I need to generate both a) random spatial points b) non-random spatial points, over a polygon i.e. for b) the points probability depends on for example an East-West gradi...
Communard asked 23/11, 2015 at 15:38

2

Solved

I want to calculate the distance between two points in two different datasets. I don't want to calculate the distance between all points - just to the nearest point of datasetB. Some examples: Dat...
Dehumidify asked 1/3, 2014 at 23:21

2

I have 20 rasters with same resolution and extent. It's a time series and each raster is for one year. And I want to calculate the pixel-wise standard deviation of all rasters.So far, I am using t...
Franconia asked 13/11, 2015 at 19:52

3

Solved

I have this simple data.frame lat<-c(1,2,3,10,11,12,20,21,22,23) lon<-c(5,6,7,30,31,32,50,51,52,53) data=data.frame(lat,lon) The idea is to find the spatial clusters based on the distan...
Concertgoer asked 23/2, 2015 at 11:11

2

Solved

I have made a reference grid, cells 50x50m, based on GPS locations of a collared animal. I want to do the equivalent to a spatial join in ArcGIS, and count the number of points in each cell. I ha...
Stridulous asked 1/10, 2015 at 13:59

1

Solved

I'm just starting to learn R but would like project done sooner rather than later. It's rather simple: I have an X column and a Y column consisting of X coordinates and Y coordinates. (Working in t...
Nigrify asked 16/9, 2015 at 21:21

1

Solved

I have a polygon shapefile (downloadable here) from which I want to create a data.frame with 3 columns containing: Polygon id Centroid latitude Centroid Longitude From this answer here, I know...
Karlis asked 14/9, 2015 at 18:58

1

I'm new to SQL Server. I'm trying to figure out how I can get the below one done: I have thousands of lat/long positions pointing to the same OR very close by locations. It's all stored flat in a ...
Nerveracking asked 23/8, 2015 at 6:46

1

Solved

I'm trying to find the per cell median across a set of rasters in R, but when I use the median function I get the following error: Error in if (any(is.na(x))) return(x[FALSE][NA]) : argument is ...
Quite asked 24/8, 2015 at 13:59

1

Solved

I have a bunch of locations for each of about 1000 individuals. The total dataset used to be around 2.5 million and my processing script took about 20 hours to run. Now however, I have 24 million o...
Timtima asked 19/12, 2014 at 0:33

0

I want to cluster the codebook from a self-organizing map using k-means clustering. However, given the 'spatial' nature of the data, I want to constrain the clustering so that only contiguous nodes...
Mixie asked 20/7, 2015 at 17:51

3

Does anyone know of a method to get (raster) data out of an ESRI v10 File Geodatabase in R? ESRI offers a C++ API (for Linux and Windows), so I guess in principle it should be possible for an R pa...
Paragon asked 10/12, 2012 at 18:12

1

Solved

What is the difference between these two queries : select a.gid, sum(length(b.the_geom)) from polygons as a , roads as b where st_intersects(a.the_geom,b.the_geom) group by a.gid ; select...
Sinistral asked 7/5, 2012 at 10:14

1

Solved

I have a NetCDF file of a probability surface. It's a 30x30 grid of 0.25 degree lat/lon intervals with a probability surface described in the z dimension. I can easily import this into Panoply, a N...
Wieche asked 29/5, 2015 at 18:48

2

Solved

I want to find the shortest distance between two SqlGeography polygon. I know there is a method ShortestLineTo (https://msdn.microsoft.com/en-us/library/ff929252.aspx) but it gives empty string whi...
Elenoraelenore asked 20/5, 2015 at 18:1

2

Is it possible to place the spplot (spplot polygons) legend within the map, in lower left corner, like this? The closest I've been able to get is this (I am not posting my data, I just use the e...
Illusionary asked 30/3, 2015 at 11:11

1

I am working on Web Api with OData enabled. I started working by referring to (only the relevant dlls to the question are mentioned) Microsoft.AspNet.WebApi.OData Microsoft.Data.OData Microsoft.D...
Sternlight asked 19/1, 2015 at 7:20

1

Solved

I have been following the example shown here, but for the UK. For this reason I am using the CRS for the UK of EPSG:27700, which has the following projection string: "+proj=tmerc +lat_0=49 +lon_0=...
Forerun asked 9/12, 2014 at 16:54

3

Solved

I have two sets of points, called path and centers. For each point in path, I would like an efficient method for finding the ID of the closest point in centers. I would like to do this in R. Below ...
Spherical asked 5/12, 2014 at 17:52

© 2022 - 2024 — McMap. All rights reserved.