Questions tagged [geospatial]
Geospatial pertains 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.
120 questions
5votes
1answer
68views
Latitude and Longitude types
I wrote this code when reviewing Define a class for latitude and longitude in C++ using boost::units and spheroidal coordinates. As I've not used Boost::Units before, I thought it worth reviewing in ...
0votes
1answer
78views
What's the fastest way to get "postcodes" for thousands of coordinates (latitudes & longitudes) in Python? [closed]
I have a dataset that contains 750,000 rows. I want to query each row and get the postcodes using the latitudes and longitudes. Problem: The code is executing very fast when I query like 100 rows, and ...
5votes
2answers
86views
Geospatial application in python using OOP
I'm working on a tool that performs some computations using elevations from a DTM file retrieved from a WCS service. These computations will be done on predefined regions of Europe. I'm trying to ...
2votes
1answer
68views
Interpolate raster value using Python
I'm new in coding. I have a shapefile (points) and some raster files. My purpose is get the values from all raster to point (each point will get value from 2 or 3 nearest cell,the value on the value ...
1vote
1answer
100views
measure distance between two points in python
I'm working in a function that generates isochrones for a project of mine and I'm facing a bottleneck performing some distance calculations. Here is what I'm doing: ...
9votes
1answer
1kviews
Geohash library in C++17
GeoHash library in C++17 no allocations and no std::strings. It uses fixed buffer GeoHash::buffer_t. optimized nearby search, if possible, it search 2x2 or 2x3 ...
4votes
0answers
63views
Use XYZ data to create cross sectional profiles across beach terrain, using OS Grid
This might be a slightly long question, but I've recently been doing a bit of R&D on the data processing workflows within the company that I work at and it would be great to see if there are any ...
1vote
0answers
31views
Python library to convert spatial data or DEM (digital elevation model) to dictionary
I would like to expand a library which converts a DEM (Digital elevation model) to values stored in a dictionary. This dictionary can be used to create a 3D terrain in Three.js. I made a Django ...
1vote
0answers
140views
Performance optimization processing 95,000+ NetCDF files (using xarray + dask)
I was told over at gis.stackexchange.com that this question would be a better fit here. I already have a working code but it is very slow and my hunch is that it could be optimized. The goal here is ...
4votes
1answer
2kviews
find closest object via latitude and longitude and haversine distance
Given a pandas data frame containing objects with ids and latitudes and longitudes: ...
3votes
1answer
691views
Vincenty's distance Direct formulae numpy
I've refactored a function from the pygc library used to generate the great_circle. The Vincenty's equation below can be found ...
0votes
2answers
128views
Modify polyline vertices
I have an ArcGIS Arcade script that uses JavaScript syntax. The script loops through GIS polylines and updates a coordinate. The coordinate is called an "M" coordinate (aka a "Measure-...
1vote
1answer
209views
Loop through polyline vertices and update coordinate
I have a Python 2.7 script that loops through GIS polylines and updates a coordinate. The coordinate is called an "M" coordinate (aka a "Measure-value"). M coordinates are similar ...
4votes
1answer
169views
Checking which polygon a set of coordinates lie inside
I have a massive set of latitude, longitude pairs. I also have a list of GeoJson formatted locations. I want to find out which location each pair of coordinates lies in. I have some code to do this, ...
2votes
1answer
55views
Advice on taming a slow loop required for visualization of large GIS dataset
I'm working towards plotting a large GIS dataset of which I've shown a sample above of about 1/6 of the data. I'm happy with how quickly the data loads in, and bokeh...