Questions tagged [spatial-data]
46 questions
39
votes
3 answers
Can I use Entity Framework 6 (not core) in .net core?
Entity Framework Core does not support spatial data, which I need to use in my app.
Can I use Entity Framework 6 in .net core? If so, how can I register DatabaseContext in Startup.cs?

kostik
- 639
- 2
- 10
- 25
6
votes
1 answer
Intersection of polygons in R using sf
I want to assess the degree of spatial proximity of each point to other equivalent points by looking at the number of others within 400m (5 minute walk).
I have some points on a map.
I can draw a simple 400 m buffer around them.
I want to…

damo
- 463
- 4
- 14
4
votes
2 answers
What is the difference between STAsText() and ToString() in sql while converting geography to wkt
DECLARE @geographyData geography;
//Convert wkt to geography
SET @geographyData = geography::Parse('LINESTRING(-132.360 50.657, -120.340 47.659)');
//Convert back to wkt from geography
(1) @geographyData.ToString();
(2)…

Milan
- 179
- 1
- 8
3
votes
1 answer
Euclidean Distance for Arrays of 3D points in Python
I have two .csv files of 3D points (numeric coordinate data) and associated attribute data (strings + numeric). I need to calculate the Euclidean distance between each point and every other point, and maintain the attribute data for each point…

COIh0rp
- 63
- 4
3
votes
1 answer
Calculating number of pixel(count) raster files in R
I have a huge number of raster files and a polygon that is within the extent of the raster files. I want get the pixel number(count) for each raster files within the polygon.
Additionally I want to create a table with the name of raster file and…

equastrian91
- 53
- 1
- 1
- 4
2
votes
0 answers
How to overcome infinite value to perform multicollinearity test in environmental variables?
Here's the dataset which consists of X = 45 columns collected the data from bioclimate database.
The multicollinearity test model -
from statsmodels.stats.outliers_influence import variance_inflation_factor
vif_data =…

perth
- 21
- 3
2
votes
1 answer
How to label only one point in tmap in r?
In the example below I would like to have only the label for Ghana in the tm_text("name") layer showing.
Any idea how to do this?
Thank you for your help.
library(tmap)
data("World")
tmap_mode("view")
tm_shape(World) +
tm_polygons("HPI",…

Ama Owusu-Darko
- 43
- 5
2
votes
3 answers
What is initial bearing and final bearing
I am trying to calculate bearing between two lat/lon points as given in this link. I see that the bearing we get initially using the below equation is initial bearing.
public static double GetBearing(double latitude1, double longitude1, double…

Sree
- 973
- 2
- 14
- 32
2
votes
2 answers
I can not publish a workbook contains spatial data on TABLEAU SERVER
I created a map using Tableau Desktop 2018.2.4, that works works well in the Desktop version of Tableau. However, when I try to publish the workbook to Tableau Server 10.2.3, I receive an error saying that the spatial data does not exist in my…

lyly
- 31
- 1
- 5
2
votes
1 answer
smooth (Lon, Lat, Value) data over shapefile
I am trying to plot a data with (Lat, Lon) and a value in each location. What I need to do is to plot the data over a shapefile, represent each value with a different color, and smooth the values, so no gaps occur in the map.
The data has the…

Moe_D
- 73
- 6
2
votes
2 answers
unable to plot two spatial objects with identical CRS in R
I have two spatial objects, one is a spatial polygon object and the other one is a .csv file that I turned into a spatial points object. The first one is an official shape file from the chilean government for one of its communes, the other one was…

csmontt
- 614
- 8
- 15
2
votes
1 answer
Need to move SQL Server 2005 Table storing Lat;Lng as varchar to Spatial?
I have read some articles about using spatial optimized tables. Actually I use stored latitude and longitude as varchar comma-separated (lat;lng).
Could you suggest the best way to perform this change and enumerate the advantages. It's really…

user325558
- 1,413
- 5
- 22
- 35
2
votes
1 answer
locality sensitive hashing for spatial data
I would like to find out a Locality Sensitive Hashing algorithm in order to split my spatial data into a number of buckets(reducer tasks). The spatial data are actually trajectories so from my understating of LSH a trajectory will be represented a…

Adam
- 1,018
- 1
- 9
- 20
2
votes
3 answers
Managing large spatial data set with attributes in C++
I have a data set with about 700 000 entries, and each entry is a set of 3D coordinates with attributes such as name, timestamp, ID, and so on.
Right now I'm just reading the coordinates and render them as points in OpenGL. However I want to…

ael
- 61
- 2
2
votes
0 answers
calculate mean for each cell in grid in R
Possible Duplicate:
Sliding window function in R
This might be a silly question, but I couldn't find an answer so far.
I have a data frame like this:
df <- data.frame(lat = (-10: 10),
lon = (-10: 10),
A =…

matteo
- 645
- 3
- 10
- 18