4,357 questions
0
votes
0
answers
60
views
Issue with merging polygons in R - Heavy Geojson file
I have a pretty heavy geojson file extracted from coral allen atlas. This file is composef of a multitude of polygons with an assign class. I am currently facing an issue while merging polygons of the ...
0
votes
1
answer
542
views
GeoJSON Objects Not Appearing on Mapbox Map in React App
I am working on a React.js application where I need to display GeoJSON objects on a Mapbox map. The map initializes correctly, but the GeoJSON objects do not appear. Here is the relevant part of my ...
0
votes
1
answer
68
views
Sequelize findAll with calculated column
I am trying to find out if a certain GEOMETRY is in bounding POLYGON. I found this answer (Find a point in a polygon using Sequelize and postgis) but it only describes how to do a single where check.
...
0
votes
0
answers
48
views
Write geojson string into a tuple for a requests.post method with file parameter
I have to submit geojsons from a Postgres (PostGIS) database with requests.post() method and the files argument:
x = requests.post(url, files = myfiles)
However, I need to avoid writing all my ...
0
votes
0
answers
401
views
Snowflake to_geometry with allowInvalid is not working
I have a bunch of valid geometry objects validated using st_isvalid and I try to combine them using an UDF and then calling to_geometry to get back the result as a geometry.
Code:
select to_geometry(...
0
votes
1
answer
124
views
Parse a geojson file then output data in a new format [duplicate]
I have a .geojson file that I am trying to decode with a PHP script based on the labelling in the properties of each array. For example there are six categories that are labelled:
HIGH
MDT
ENH
SLGT
...
0
votes
1
answer
167
views
How to download GeoJSON file in Kotlin?
So the GeoJSON file will be created with the following code:
val coordinates = listOf(
Coordinate(4.5165132153, 99.651681683),
Coordinate(4.5163152153, 99.878981683),
Coordinate(4.3584532153, 99....
0
votes
0
answers
43
views
What is a workaround for empty string throwing a SyntaxError: JSON.parse: unexpected character error in firefox console?
I have a JSON file which has 4164 lines of empty values for its key value pairs. When I try to output the values of all the key value pairs to the Firefox console, I get the following error message.
...
1
vote
0
answers
114
views
How to avoid MapServer error when remote layer returns empty response
My MapServer contains a layer that fetches GeoJSON features from a parameterized web service. Those features are polygons generated by aggregating points, and each feature has an attribute indicating ...
0
votes
1
answer
75
views
Choropleth plot gets inverted after simplifying geojson with rmapshaper
I want to make a geojson file small/less detailed to speeden up a R Plotly choropleth plot. This is a reproducible plot with the original geojson file:
library(rjson)
library(plotly)
geojson <- ...
0
votes
1
answer
109
views
Convert polygons given as coordinate pairs to sf object
I load a geoJSON object into R with jsonlite as object poly_shape. poly_shape has 4 columns, one, called geometry, contains the polygon data in coordinate pairs. For example, the first row of ...
0
votes
1
answer
295
views
Why am I getting "Point must only contain numeric elements" using MongoDB MultiPoint example?
I'm trying to figure out why I can't create this 2dsphere index in my MongoDB collection.
I took this object example directly from the MongoDB docs and placed it into a new collection.
{
type: "...
0
votes
2
answers
244
views
Geojson data is not properly visible on the archgis map
I am trying to show Pakistan flood data on the ArcGIS map. the map is loading fine. Geojsos' point is showing as well but when I click it, it doesn't show any data. Can you please look into this? I ...
1
vote
1
answer
192
views
Issue while exporting geojson data to PostgreSQL
I am trying to export geojson data into a table in PostgreSQL. I have multiple geojson files in a directory passed as input to PostgreSQL function. I loop over all the filenames in that directory and ...
0
votes
0
answers
122
views
HeatMap in Open Layers with function instead of url
Today I use open layers to load heat points on a map.
I use the following code:
It uses a physical file to load these hot spots, where every time I need to create the file and then delete it. I would ...
0
votes
0
answers
92
views
How can I union Polygon in c#?
I'm facing an issue
I have a List<Feature> with geojson Polygon in each feature. I want to union each Polygon, how can I do it ?
I use this function to read my filename
static void Main(string[] ...
1
vote
1
answer
440
views
Filter xarray ZARR dataset with GeoDataFrame
I am reading a ZARR file from a s3 bucket with xarray. I got to successfully filter by time and latitude/longitude:
def read_zarr(self, dataset: str, region: Region) -> Any:
# Read ZARR ...
0
votes
1
answer
339
views
Can we display more than one property from the geo.json file in the ToolTips in Echarts maps?
I am implementing Apache echarts maps in my angular application. The '.geo.json' file I use to import the map has two properties in the properties array of the geo.json file. One is the 'name' and the ...
1
vote
2
answers
295
views
GeoJSON conversion to GeoJSONL BigQuery load error
I am trying to upload to BigQuery the geospatial data of community areas of Chicago. However, I am getting the following errors messages when trying to create a table from newline delimited geoJSON ...
0
votes
0
answers
51
views
Verifying That The Coordinate I Click Is Within The GeoJsonLayer, Google Maps Android
I need to make sure that the point I click on the map is within the area of GeoJsonLayer I loaded into the map. GeoJsonLayer does't give LatLng of the point I clicked there, so it seems I have to get ...
1
vote
0
answers
223
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 ...
0
votes
1
answer
169
views
Leaflet: Error while trying to get a GeoJSON from multipolygon Layer
The issue is this one:
I successfully could implmement a MultiPolygon Layer in Leaflet, but I'm getting an error while trying to convert it to a GeoJSON object.
My code is this one:
let ...
2
votes
1
answer
689
views
postgresql st_asgeojson returns not readable value
I'm trying to make this data to geometry, but for some reason postgresql returns not readable values. I need latlng.... I can't use that value to draw marker at all.
what am i missing here?
please ...
2
votes
0
answers
521
views
I wants to load multiple geo json data in flutter_map, i have tried to load multiple geo json data then my phone completely lag and freezed
Here is a description of the issue I'm facing when trying to load multiple GeoJSON files into a flutter_map:
I have a Flutter application that displays an interactive map using the flutter_map package....
2
votes
2
answers
391
views
Convert .csv.gz to GeoJSON with R
I am trying to read the file from this link in R(Microsoft Office building footprint). It is supposed to be a geojson file.
https://minedbuildings.blob.core.windows.net/global-buildings/2023-06-27/...