Questions tagged [spatial-data]

46 questions
0
votes
0 answers

tmap + labels colors don't match the data

I created the following map. However, the labels in the legend don't match the data. I don't understand what goes wrong. I expected the pal colors to be ordered with the labels. So would do the data. Example= no drought color would normally…
Myr TH
  • 175
  • 1
  • 9
0
votes
2 answers

How to Calculate Euclidean distance from sf data frame points in R

How do I calculate Euclidean distance in km from a spatial point that has been converted from a geometry column into a data frame. (The points are points which were derived from a spatial join of spatial data and polygon centroids) I tried…
0
votes
0 answers

Can I create a SpatialPoints object from a variable with NAs?//How to make lat and long variables with NAs compatible with SpatialPoints?

I'm trying to fill coordinate gaps in a data frame based on points randomly created within a reference area. In the original dataset, I have a column for lat and a column for long values, and the points created come from a polygon and are of class…
Elisa
  • 1
  • 1
0
votes
1 answer

How to create a polygon/combine polygons that cross the 180 meridian dateline

I'm trying to create a polygon that has longitudinal limits as 150, -170, i.e. crosses the 180 meridian dateline. I've tried: x = c(-170, -170, 150, 150) #long limits y = c(-25,-57,-57,-25) #lat limits polygon = cbind(x, y) %>% st_linestring()…
Elisa
  • 1
  • 1
0
votes
1 answer

How to fill data gaps with random coordinates from a polygon?

I have a data set of whale sightings with some coordinate gaps but associated with areas of reference, of which I have coordinate limits. I've used these limits to create a polygon restricted to the marine environment (using library ‘sf’) for each…
Elisa
  • 1
  • 1
0
votes
1 answer

The points of occurrence (gbif) and the maps don't coincide when i use worldclim data

i'm new in the R world and i'm trying to do a species distribution model, but when i plot my result, the points stay out from my map, i tried to change CRS but i didn't solve my problem, now i'll go to show you my…
Ludovico
  • 5
  • 2
0
votes
0 answers

Send spatial data using Python and Mysql Connector

Using Mysql Connector and Python I am trying to pass the simplest form of spatial data (Point datatype) to my MySQL database. Using the mysql connector the 'execute' function in Option1 works whereas the same command in Option2 does not work giving…
alexberd
  • 11
  • 3
0
votes
1 answer

Determination of bearing change between two points (spatial-data)

I am reviewing a paper on transportation mode to understand their methodology (this paper). At some stage, the authors computed the rate of bearing change between the points (GPS points), which happens to be a stumbling block to me, for days, I…
arilwan
  • 3,374
  • 5
  • 26
  • 62
0
votes
3 answers

Connecting a set of points to get a non-self-intersecting non-convex polygon

I have an unordered set of 2D points which represents the corners of a building. I need to connect them to get the outline of the building. The points were obtained by combining different polygons collected by different individuals. My idea is to…
0
votes
1 answer

Property type of 'System.Data.Entity.Spatial.DbGeography' which cannot be mapped to a primitive type

Updated from EF 5.0 to 6.2 (designer from database) and getting the error: Schema specified is not valid. Errors: The relationship 'CWPP.FK_Coordinates' was not loaded because the type 'CWPP.Coordinate' is not available. The following information…
0
votes
1 answer

Deserialization of DbGeography Entity Framework

I have a class Event with a property of the type DbGeography. public class Event { public long Id { get; set; } public DateTime Date { get; set; } public DbGeography Location { get; set; } } In the class DatabaseHelper I try to load…
kostik
  • 639
  • 2
  • 10
  • 25
0
votes
3 answers

R: One value per hour in data frame

I've got a GPS dataset with about 5600 rows of coordinates from 5 GPS devices ('nodes') over several days and I want to reduce the number of GPS points to just one point per hour. Because the number of points per hour fluctuates, a simple for-loop…
sequoia
  • 480
  • 2
  • 13
0
votes
0 answers

SSRS won't read my SQL query parameters

I'm trying to plot data to a shapefile in SSRS. I linked my SQL Server successfully and selected my Stored Procedure, but when I go to set my Spatial and Analytical Dataset Fields SSRS tells my Procedure or function 'uspStoredProcedure' expects…
0
votes
0 answers

Databases for storing coordinate based nodes and relationships

I've been reading about Neo4j, and am currently experimenting with it in NodeJs. Are there any other note worthy graph or spatial databases that are better equip for coordinate based entities and relationships. I currently prototyping coordinate…
0
votes
0 answers

Mean Square Error (MSE) function argument "poly"

I'm trying to estimate an initial bandwidth value for kernel smoothing my data, calculating the Mean Square Errors (function "mse2d"), but got stuck with an error in a polygon implementation code in function's argument. I'm following an example in…
Leila
  • 1