Questions tagged [geospatial]

pertaining 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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Creating Sites & Sector Pie for Mapinfo using Python

I'm trying to create sites using lat/long or easting/northing; however, when creating using Python it doesn't make the Pie correctly and sometimes the code fails totally. Can someone please guide me ...
Burhan's user avatar
  • 1
0 votes
0 answers
5 views

I want to show a specific AR marker on a specified location(latitude,longitude)

I am using arcore_flutter_plugin: ^0.1.0 , flutter to develop the application. I am able to display basic 3d shapes on my screen but I am not able to display the marker fixed to a geolocation(lat,long)...
Tamal TNC's user avatar
1 vote
1 answer
16 views

How to find centroids or geolocate ISO 3166 codes?

Is there a way to geolocate ISO 3166-1 alpha-3 codes (see https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) and get the centroid of the item ? I would like to place a marker (a disk ...
PBrockmann's user avatar
0 votes
0 answers
10 views

Cut or Split Orthomosaic tif image with their polygon annotations geojson file

I have an ortomosaic tif image with their annotations (polygons) in a geojson file, I would like to split this image into several images each image with their corresponding annotations in a separate ...
AmineBoukha's user avatar
0 votes
1 answer
19 views

Modifying an existing shapefile by adding polygons and points using GeoTools in Java

I am working on a Java project where I need to modify an existing shapefile by adding new polygons and points to it using the GeoTools library. I have managed to create the polygons and points ...
Siva's user avatar
  • 700
0 votes
1 answer
23 views

Calculating population-weighted number of hot days using large geospatial data sources

I am calculating the population-weighted number of hot days for a set of countries over multiple years. I have to weight each hot day value in a grid cell by the population located in that grid cell ...
Mikaël's user avatar
0 votes
0 answers
7 views

Counting GIS Data Points by Area, Class, and Time Intervals

How can I calculate the number of GIS data points per area, per class, and per day/month/year, given that I have a polygon layer containing date and class ID information? The desired result should ...
Thudner's user avatar
  • 1,067
0 votes
0 answers
13 views

Creating a loop that goes through multiple rasters in a file and carries out QC

I have created code which downloads individual hdf files from a folder, converts them into a raster and then using a QC raster, removes pixels in the NDVI and EVI layers. However, I have around 4 ...
jwell123's user avatar
0 votes
1 answer
39 views

Faster and memory efficient distance calculation for large spatial datasets

I am trying to match two datasets (lets call them dfa and dfb) using two criteria: distance and time. Both have the exact time and coordinates for when/where an event took place. I want to assign to ...
Pedro Esteban Rodriguez's user avatar
0 votes
0 answers
12 views

How to change a shape file with grids to a 2D grid world for RL?

I have a shape file with multiple grids as polygons. I want to convert this into a 2d gridworld so that I can train an RL agent. I tried different libraries but I am stuck in the part of brain ...
sneha_jerin's user avatar
0 votes
0 answers
10 views

Calculating WGS84 coordinates on a circle given center coordinates, radius, speed and elapsed time

I want to calculate the position of an airplane going a constant speed after a specific time when going around a circle at a certain radius. The circle should not be affected by the latitude. The ...
Haggi's user avatar
  • 1
0 votes
0 answers
37 views

How to Fix Polygon Stretching Error in React Leaflet Map

I am working on a project where I am using the react-leaflet package to display a series of polygons on a map, based on data fetched from an external API. I am experiencing an issue where some ...
bhamam's user avatar
  • 13
0 votes
2 answers
36 views

How to downscale a landcover dataset with a 300m x 300x resolution in pandas

I have a netcdf file of landcover for a year with 300m resolution. This is too detailed and I want to downscale this to about 3k. At the moment I am opening the .nc file with xarray This gives me a ...
DiMi's user avatar
  • 1
0 votes
0 answers
12 views

How to rotate folium CustomIcon?

I have dataframe, it have name,latitudedes,longitudes and heading. heading value will between 0 and 360. according to the angle we need to rotate. I printed my dataframe items inside folium map in ...
heshjse's user avatar
  • 880
0 votes
0 answers
18 views

Error in rep.int(sep, ncolumns - 1) : invalid 'times' value in bayesx function [R2BayesX package] in R

I am trying to run a STAR model within the R2BayesX package using the bayesx function. My model works with the cases of leptospirosis in Colombia ('observed' and 'expected') by department in a ...
Armando_Pezo's user avatar
0 votes
1 answer
37 views

MS Fabric and geospatial data

Can Microsoft Fabric's Data Lakehouse handle geospatial data such as shp, geojson, and other formats? I've tried getting the geopandas geodataframe into pyspark/parquet spark_df.write.parquet(...
Spatial Digger's user avatar
0 votes
1 answer
20 views

geom_sf and ggplot: polygons disappear in some projections

Some polygons/countries disappear when I use orthographic projections with ggplot. I can make either Russia or the US vanish! library(tmap) library(tidyverse) library(sf) data("World") World ...
Mark R's user avatar
  • 785
0 votes
0 answers
26 views

Is there a way to correct false values (-9999) to NA in a tiff-layers in RStudio?

I am trying to create a climate model in ArcGIS Pro, which will supposedly tell me which environmental variables have the biggest effect on fungal communities. However, I tried the exploratory ...
Irina Kalmanova's user avatar
1 vote
1 answer
32 views

Find the closest record in a Spark RDD for Each Record in Another RDD

I have two massive RDDs, and for each record in one, I need to find the physically closest (lat/lon) point in the other that has the same key. But... in each RDD, there are 100's of millions of ...
kmh's user avatar
  • 1,526
0 votes
0 answers
30 views

Extracting distances of coordinates to different land use types from a raster

I am trying to extract the distance from a range of coordinates to land use types. So the end goal would be a range of columns with the distance to water, crops, building etc for each coordinate The ...
jwell123's user avatar
0 votes
1 answer
43 views

How to convert object column to geometry in pandas python?

I have a dataframe that includes these three columns: lat long Mapped Location 36.0455 -86.7122 POINT (-86.7122 36.0455) 36.1343 -86.7806 POINT (-86.7806 36....
al_pal's user avatar
  • 1
2 votes
0 answers
23 views

Override google maps api default projection?

I have a list of lat/lon data that forms a path. The data was obtained using a GPS device from a vehicle on a race track. When I plot this using Google maps JavaScript API (satellite map), it doesn't ...
driven1983's user avatar
0 votes
1 answer
36 views

Spatial SQL (in SSMS - using T-SQL) - STIntersect and STContains doesn't return the correct result

Trying to find: All the routes that pass through a buffer of 5km around a random point. Background: I have multiple routes stored as linestring of type geography using the following query. The ...
Sunraj Sharma's user avatar
0 votes
0 answers
27 views

Rasterize irregular grid geocube python: Loosing points at higher resolution

I'm trying to convert a dataframe with an irregular grid to a regular rectilinear grid. I'm currently using the VIIRS hotspot data and the code below should allow people to read in the csv in a colab ...
scriptgirl_3000's user avatar
1 vote
2 answers
181 views

Register Geolatte Jackson module in Spring Boot 3.2

Would like to be able to deserialize a Geolatte Geometry Point in Spring Boot 3.2 by registering the Geolatte JSON module successfuly and use its deserializers I can manually register the ...
Al Grant's user avatar
  • 1,932
-1 votes
0 answers
21 views

Examples and support for TorchGeo

we are evaluating TorchGeo for ML and Remote-Sensing. It looks very promising and the tutorials do a good job in getting started. there are all kind of questions that arise while experimenting on a ...
Roy's user avatar
  • 139
-1 votes
0 answers
10 views

TorchGeo support for Shapefiles

I am looking for an example on how to use TorchGeo with Shapefiles. For example, we have a shapefile foo.shp which will be used as a mask for another dataset. I assume there should be a concrete class ...
Roy's user avatar
  • 139
0 votes
0 answers
13 views

spatial data raster image created by rasterio and opens right, but when opend in qgis it s found cropped and rotataed

i have a spatial data gridded then transformed its crs from epsg=4326 to epsg=32636. when i plot the image by: # Open a new GeoTIFF file for writing with rasterio.open(output_filename, 'w', driver='...
Jelly Cola's user avatar
1 vote
0 answers
43 views

MySQL check if Point in Polygon (GeoJSON)

I have a table named fields with a column named geoJSON. The geoJSON column is of type JSON which stores an actual GeoJSON object. I am trying to take a list of coordinates which are POINTS (single ...
recoilnetworks's user avatar
0 votes
1 answer
18 views

Parallel Process Raster by Tiling?

I have a raster file (TIFF) characterizing ocean depths. I want to split this raster into multiple tiles that can each be processed in parallel to reclassify depths deeper than 7m as NA. Then later I ...
Stephan's user avatar
  • 43
0 votes
0 answers
30 views

I am getting incorrect north and east values after carthographic projection using PROJ library in c++

I am getting incorrect north and east values after carthographic projection from global wgs84 crs(i.e., EPSG:4326) to crs Korean 1985/west belt using proj c++ library. I got an error of approx. 1.5 cm ...
Rohith dreamtns's user avatar
1 vote
0 answers
28 views

Snowflake GIS - outline of merged polygons

I realised that many functions in Snowflake do not work on GeometryCollection, hence I'm trying to merge polygons into one. I have a table with Spanish municipalities and I want to join some of them. ...
Moseleyi's user avatar
  • 2,603
0 votes
1 answer
46 views

Recalculate grid: compare a center cell with its 8 surrounding cells and write out the value

I have a spatial dataframe with three columns, lat, lon and X. X has a set of values from 1-25 which I would like to compare with its immediate surrounding grids. The lat, lon columns are filled with ...
Bikem Ekberzade's user avatar
0 votes
1 answer
46 views

Find all the users within coordinates area

I'm trying to find all users located within a 1 km radius of the provided coordinates, regardless of the direction. However, I'm encountering an issue with the query execution. I have also tried index:...
Mujtaba Shafiq's user avatar
0 votes
1 answer
15 views

Hibernate & Geolatte Point Can not deserialize

I have a class with a Geolatte Point object that is throwing a can not deserialize error when it is retrieved from the database. The environment is Java 18, Spring Boot 3.2 and Hibernate 6.2 and ...
Al Grant's user avatar
  • 1,932
0 votes
1 answer
39 views

JTS::Ray Casting Algorithm Giving Unexpected Results for Point-in-Polygon Check

I am using the ray casting algorithm to determine whether a given point is inside a polygon. The polygon's edges are defined in counterclockwise order. However, I am consistently getting unexpected ...
Sunil Chormale's user avatar
0 votes
0 answers
49 views

Coordinates from Cell Number

I need to obtain the coordinates from a terra SpatRaster cell number in C++. I am aware of terra::xyFromCell. However, I need to keep this function in C++. Consider the following simplified example: #...
user's user avatar
  • 1,037
1 vote
2 answers
27 views

How can I rescale the the size of the image for the clusters to plot properly?

I'm having this issue where I'm trying to properly fit this Miami map to correctly display my clusters of miami house prices. Can someone please help? I tried multiple rescaling methods, but I couldn'...
Zahid Laguna's user avatar
0 votes
0 answers
24 views

How to create a weighted mean SpatRaster out of multiple SpatRasters in R terra

I would like to create a raster, which represents the weighted mean of a number of SpatRasters per cell, i.e., I want a new raster where for every cell at position [x,y], this cell will have the ...
Yuri's user avatar
  • 5
0 votes
0 answers
19 views

Fin n nearest points to lines in two geodataframes

I have two geodataframes, one where the geometries are points and another where they are lines. I want to find for each line the n (in my case n=3) nearest lines to each point. Is there a way to do ...
Juan Saiz Lomas's user avatar
0 votes
0 answers
51 views

How to use st_distance in R

I want to find the distance between points and then filter them to only include points that are >1 km apart. I tried to use st_distance to find the initial distance between points, but I receive ...
Alyssa Cabrera's user avatar
1 vote
1 answer
33 views

Storing raster data in a Data Lake

In our organisation much of our data is stored in Delta Lake tables in the Azure infrastructure, with Databricks integrated. I want to be able to work with raster data (for example satellite images) ...
TheRealJimShady's user avatar
0 votes
1 answer
58 views

How may one iterate over a SpatRaster's cell values?

I am coming from a Python background, but have been working with R's terra package lately in order to better deal with geospatial raster data. I have been wanting to create a for loop that allows one ...
Yuri's user avatar
  • 5
0 votes
1 answer
27 views

in R, how to measure minimum distance to a geometry object of type sfc_Linestring (Linestring Z)?

I downloaded a shapefile that has a linestring object that represent the coastline of country (Brazil) and after importing this SHP-file into R i have a geometry vector of 630 rows of the type "...
fabian_alex's user avatar
1 vote
0 answers
117 views

How to specify a custom column type in Prisma?

Prisma does not support geospatial columns yet. I need to add a mySQL GEOMETRY type column to my database. I can write a custom migration, but the whole point of Prisma is to manage my migrations. How ...
Petrus Theron's user avatar
0 votes
0 answers
20 views

Performing Chi-Square test (or similar) across a spatial grid in R

I have a dataframe in R where each row is an sf-formatted geospatial polygon in the United States. I know the number of venomous snakes and the number of non-venomous snakes seen in each polygon. I ...
Bradley Allf's user avatar
0 votes
0 answers
17 views

Failure on evaluating the nodes in PODPAC library

I have been following the example notebook for PODPAC library. However, the simplest node.eval(coord) fails. The other thing I have tried is downloading the tif file from s3 into local machine and ...
flowery's user avatar
2 votes
1 answer
38 views

How should I be drawing latitude lines using plotly

I've been trying, unsuccessfully, to draw latitude lines on a map using Plotly. I've managed to boil things down to a simple example, that I thought would draw two line segments along a single ...
user1245262's user avatar
  • 7,008
0 votes
0 answers
23 views

Display lat/lon coordinates of drawn rectangle in Folium

I am trying to create a widget with ipywidgets and folium that allows me to print to the screen the lat/lon coordinates of a rectangle drawn by a user. In the widget, the user will be presented with a ...
Alex Thompson's user avatar
0 votes
1 answer
46 views

How to reproduce the same cell pattern around different indexes?

I am using H3 spatial index implementaion h3o. I want to encode a local cell pattern to draw it around a given index. The first problem is that I am inevitably going to fight pentagons, but I don't ...
FrogOfJuly's user avatar

1
2 3 4 5
97