Skip to main content

Questions tagged [geojson]

GeoJSON is a geospatial data interchange format based on JavaScript Object Notation (JSON)

Filter by
Sorted by
Tagged with
2 votes
0 answers
38 views

GeoJSON is null error in a Leaflet + D3.js

I am developing a web page with Leaflet and D3.js that draws the distribution density contours of a bird species (Ciconia ciconia) with data from the Global Biodiversity Information Facility (GBIF). I ...
Acperience's user avatar
  • 1,142
0 votes
0 answers
12 views

Creating Poly Service URL with location validation

I am new to mapping and trying to create a Geocoding Service URL and a Poly Service URL for address verification. The Poly Service URL has been an issue trying to input a polygon to verify locations ...
Matt M's user avatar
  • 1
0 votes
0 answers
39 views

QGIS Cannot reopen GeoJSON file after saving

I've recently encountered an unexpected issue with QGIS. When creating and editing a new GeoJSON file (collecting polygons), everything goes smoothly until I try to save. Occasionally, I receive the ...
ReutKeller's user avatar
  • 2,169
1 vote
0 answers
26 views

Using GeoJSON timestamped Folium plugin for data in milliseconds

I have data from different points that a car pass by, and a need to put them in a map, but one by one using their UTC time. The data goes from one millisecond to another, and I need to reflect that. ...
natalia's user avatar
  • 11
0 votes
0 answers
27 views

Visualizing 3D GeoJSON in threejs

I have a 3D GeoJSON of a 3D city model. I want to display it in Three.js, but it does not support this format. Is there a method or plugin that can load the 3D GeoJSON in Three.js? Below is the file I ...
benitThinot03's user avatar
1 vote
1 answer
46 views

Display GeoJSON file with added properties in Leaflet

I have a Geojson file and have successfully added new properties that comes from a CSV file. Unfortunately, I am not able to display the modified file in Leaflet. Any help is welcome! Here's my code: &...
RolfDD's user avatar
  • 13
0 votes
0 answers
19 views

deck.gl GeoJSON point layer not extruding

I have a GeoJSON layer in deck.gl which I'm trying to extrude based on the elevation property. E.g. { "type": "Feature", "geometry": { ...
guest_231213's user avatar
1 vote
1 answer
42 views

ee.Geometry.toGeoJSONString() generate invalid GeoJSON

I tried to convert Google Earth Engine (ee)'s geometry to GeoJSON with following code. import ee aoi = ee.Geometry.Rectangle([117, 12, 118, 14]) aoi.toGeoJSONString() The toGeoJSONString() returns ...
AMA's user avatar
  • 454
0 votes
1 answer
43 views

Replicating Measure Line Tool Output programatically for rotated/oriented rectangles

What I have I have some oriented rectangles/polygons that represent boats in a geoJSON file. The coordinates of the points are in EPSG:4326. Example here: { "type": "FeatureCollection&...
SFSDev's user avatar
  • 33
0 votes
1 answer
89 views

Filter GeoJSON layer dynamically in Leaflet?

I try filter layer on my Leaflet jsonp from input text html to my JS code but is not working. On my code I tried to make filter is working only when I insert number 4 directly: let pontoFiltrado = ...
Quetions's user avatar
0 votes
0 answers
30 views

Mapbox's Geojson.io API: Can a Geojson file be loaded as a URL parameter?

https://geojson.io/#map=2/0/20 For the above website is it possible to load a GeoJson file from a local drive via a URL parameter? Something like this, but works: https://geojson.io/#file=MyData....
DaveF's user avatar
  • 13
0 votes
0 answers
35 views

How to load GeoJSON data using ArcGIS maps SDK for Kotlin

I am using ArcGIS map SDK for Kotlin, but I have a problem while loading a GeoJSON string into the map. Here is my code: val featureCollection = FeatureCollection.fromJsonOrNull(geoJSON) val ...
Dodge_X's user avatar
4 votes
1 answer
203 views

How can I use ogr2ogr to left join a CSV to a GPKG file and produce a GeoJSON output in a scalable way?

I have a large GPKG and a CSV file, and I'd like to (left) join the CSV to the GPKG on one of the columns. A visualisation of what I'm trying to achieve: Reproducible example We can create an example ...
zabop's user avatar
  • 2,224
0 votes
0 answers
24 views

How to customize weight function based on edge attribute in Networkx shortest_path

I have created a graph representing NYC road network. I am trying to calculate a path between two nodes using Networkx shortest_path. Running it like this works fine and I'm able to visualize the ...
Alex's user avatar
  • 1
-1 votes
2 answers
51 views

Python Script to grab .geojson files from my N drive in many different folders and place in one folder? [closed]

Is there a Python Script to grab .geojson files from my N drive in many different folders and place in one folder? My ultimate goal is to then take this folder full of .geojson files and run a ArcGIS ...
spatialuser201235's user avatar
1 vote
2 answers
271 views

Converting shapefiles into GeoJSON

Does anyone know where I can convert multiple ArcGIS files (.cpg .dbf .prf .sbn .sbx .shp .shx) into GeoJSON/TopoJSON for free? MyGeodata Converter works perfectly but I don't want to subscribe for a ...
Aayush Rathore's user avatar
1 vote
1 answer
123 views

Transform GeoJSON from EPSG:31983 to EPSG:4326 in OpenLayers

I have code in OpenLayers, which allows you to draw geometries on a layer and then download the file in GeoJSON format. Here's the code: function downloadGeoJSON(content, fileName, contentType) { ...
Andreia Gusmao's user avatar
1 vote
1 answer
48 views

Feature disappears when setting a buffer to a drawn feature with turf.js in OpenLayers

As shown in the code posted below, I am using turf.js to buffer a geometry. The code below shows the steps I took to do the geometry buffering. In the following step: const asOLGeom = ...
Amr's user avatar
  • 43
0 votes
1 answer
76 views

Transforming R data.frame with column of GeoJSON strings into sf object

Suppose I have a data.frame object that has a column called geojson with GeoJSON strings in each row. How can I transform this data.frame into an sf object that would allow me to perform geospatial ...
Felipe D.'s user avatar
  • 2,689
0 votes
1 answer
40 views

How to discard midpoints or only get borders of polygon

I have a List of LatLng objects that I use to make a polygon to represent a road with a buffer, but sometimes exist returns as next image: shared typescript implementation: The points in this area ...
tracking Systems's user avatar
0 votes
1 answer
51 views

DXF to GeoJSON conversion gets coordinates completely wrong?

I am using GDAL and the ogr2ogr tool in order to convert a file from a DXF to GeoJSON but at the same time convert the coordinates to another CRS, from Sweref 99TM to WGS84. The issue I am facing is ...
Ms01's user avatar
  • 103
0 votes
0 answers
111 views

Could not convert the GeoJSON to ee.Geometry()

My GeoJSON file's structure: { "type": "FeatureCollection", "name": "10", "crs": { "type": "name", "properties&...
Muhammad Waqas's user avatar
0 votes
1 answer
114 views

Folium.geojson Multiline String doesn't wrap around the map, creates crossing lines across the map

I am having an issue using Python and folium regarding GeoJSON features. I made a simple map using folium and displayed tsunami information as well as specific colors for the different earthquake ...
Daltax's user avatar
  • 11
0 votes
0 answers
19 views

Embedded GML in XML to GeoJSON with ogr2ogr

I have an XML file that contains GML parts in it. I tried to use ogr2ogr without success to convert it to GeoJSON. I lose most of properties from the upper XML node. The associated schema for the ...
greentea's user avatar
4 votes
2 answers
282 views

Converting at once 5000 GeoJSON into ESRI Shapefiles with QGIS

I am aware that I can individually load my GeoJSON layer and save it as a ESRI Shapefile. I am wondering if anyone is aware of a tool that can bulk load and convert my 5,000 different GeoJSON layers ...
spatialuser201235's user avatar
3 votes
1 answer
118 views

Making trivial GeoJSON file with Feature collection of points

I'm trying to generate a GeoJSON file with a feature collection of points to render in QGIS, however, when I load my .geojson file I don't see anything. To figure out what's going on, I've tried to ...
quant's user avatar
  • 143
0 votes
2 answers
116 views

Import of GeoJSON Multi Polygon into PostgreSQL does not work with GDAL ogr2ogr anymore

Original Post I imported this Multi Polygon ./apps/ogrinfo -so -al ~/Downloads/osm-boundaries/germany/OSMB-5cf5ed195895ffb3c65abc341dc8138bb5c6cedf.geojson/OSMB-...
dancesWithCycles's user avatar
0 votes
2 answers
297 views

Convert a GeoJSON file to a Parquet format

I have a large GeoJSON file which I store and read as follows: geomap.to_file(path_to_output + 'geomap_cleaned.geojson', driver="GeoJSON") geomap = import_geojson(path_to_data, ...
bravopapa's user avatar
  • 485
0 votes
0 answers
76 views

Clip a GeoJSON layer based on polygon drawing

I want to know if is possible clip a GeoJSON layer based on a feature drawn with drawing tools in OpenLayers. I followed this steps (https://openlayers.org/en/latest/examples/layer-clipping-vector....
Juan Pablo Rosset's user avatar
1 vote
1 answer
51 views

Creating clusters directly from a GeoJSON APIRest response in OpenLayers?

I am using OpenLayers latest version. Using a APIRest, I fetch a PostGIS endpoint and get a response in GeoJSON format. Then this is used to create a source and a layer : .... const response = await ...
Leehan's user avatar
  • 1,234
1 vote
1 answer
70 views

How to use the 'sqlite' dialect in ogr2ogr queries when one of the GeoJSON property fields is "id"

I have an example GeoJSON, and I would like to use it as input to an ogr2ogr command. I aim to generate a new file with positive integer feature ids, as described here. The example GeoJSON, src....
zabop's user avatar
  • 2,224
1 vote
0 answers
72 views

Converting Leaflet polygon to GeoJSON?

I have the following piece of code of my Leaflet application (Typescript): getPolygonMarker(): GeoJSON { let itemShape: any = [ wktToGeoJSON(item['contour'],) ]; const p = new ...
smartmouse's user avatar
0 votes
0 answers
182 views

Importing GeoJSON file to feature collection into Google Earth Engine using Google Colab

I am new to code and using Earth Engine Python API. I converted a shapefile to a GeoJSON. I need to convert my geojson file to a feature collection and upload it into my Google Earth Engine repository....
Thandeka Skosana's user avatar
1 vote
1 answer
113 views

Are "type" and "features" mandatory fields in a GeoJSON file?

I have to create a GeoJSON file and I am not sure if the structure has to follow some rules or if it is relatively flexible. For example, is something like that right? { "building": [ ...
MLD's user avatar
  • 38
0 votes
0 answers
27 views

How to change polygons order of appearance in QGIS and keep it when exporting in GeoJSON [duplicate]

I am trying to change the overlapping order of certain polygons in my layer in QGIS. I applied the function found in Properties>Symbology>Layer rendering and set the order of appearance by two ...
Elena Politi's user avatar
1 vote
1 answer
56 views

Overpy processed results into GeoJSON

I am using Overpass to obtain data about street/sidewalk elements, such as buildings locations. I was not able to filter unwanted data by refining my Overpass query, so I am doing this filter in ...
José Pedro Silveira Martinez's user avatar
2 votes
1 answer
76 views

Why doesn't `gdalinfo` with `json` flag report searched but not found attributes?

Motivation I have satellite .tiff data files. I want to understand what information exists in these files. When I run gdalinfo on them, with the -json flag, I don't get any null values from the output,...
Louie_the_unsolver's user avatar
-1 votes
1 answer
46 views

Converting Here API WKTShapeType Multipolygon To GeoJSON?

I have access to a data source that looks like: "Shape": { "_type": "WKTShapeType", "Value": "MULTIPOLYGON (((-128.9102 50.82492, -128.90881 50.82422,...
Lloyd Banks's user avatar
0 votes
0 answers
24 views

QGIS 3.34 and nested GeoJSONs

Is there an issue with how QGIS 3.34 ingests GeoJSONs that were exported by Kili with nested attributes? { "type": "FeatureCollection", "features": [ { "type": &...
Karen Kowalewsky's user avatar
0 votes
0 answers
30 views

How to load GeoJSON geometric data and drawing grapics in background

I meet a problem when trying to load GeoJSON geometric data and drawing grapics in background. The main problem is drawing grapics in background, I use graphicLayer and hope each graphic in GeoJSON ...
abramhum's user avatar
  • 123
2 votes
1 answer
170 views

Create layers from GeoJSON data with QGIS

I am wanting to pull some data from an OData endpoint, and create layers based on the content, with a Python script. I have grabbed the data and formatted it, but can't find the correct function to ...
aussieBullfrog's user avatar
1 vote
1 answer
61 views

Convert Multi-layered GML file to GeoJSON

I have the GreenSpace GML file from https://osdatahub.os.uk/ When using ogr2ogr with this command: -f GeoJSON -lco RFC7946=YES OSOpenGreenspace.geojson OSOpenGreenspace.gml I am given this Error by ...
GentleCynic's user avatar
1 vote
1 answer
81 views

Popup event for specific GeoJSON layer in Leaflet

Consider the following Leaflet map construction, which utilizes tiles from OSM and plots two GeoJSON files. The first GeoJSON file is derived from a multipolygon shapefile and the second GeoJSON file ...
TornadoEric's user avatar
1 vote
1 answer
19 views

OpenLayers why are there no features when converting non-zero Selected features to JSON

Using OpenLayers with a Select interaction to select features, I'm attempting to convert the selected features to JSON for further processing within the select.on('select', ...) as per the code below. ...
Son of a Beach's user avatar
1 vote
1 answer
94 views

Multi-layer control filters with more than one feature.properties option selected

I´m using the groupedlayers with empty "dummy" layer groups that are only used to enable or disable filters for the GeoJSON layer when selected/unselected in the layers control. Layers ...
Cesar Fonseca's user avatar
0 votes
1 answer
50 views

Saving a STAC - Error in the Item (float32)

I keep getting this error no matter what I do or change when trying to save the catalog. To my knowledge, I don't have a random float somewhere in my code. I do not even know where to begin to debug ...
mendesd's user avatar
  • 35
0 votes
1 answer
51 views

Converting GML to GeoJSON - offset is out of bounds

I need to convert a GML file to GeoJSON from this website (https://use-land-property-data.service.gov.uk/datasets/inspire/download) and store it in my MongoDB database. I have read a few posts on here ...
GentleCynic's user avatar
1 vote
2 answers
163 views

Fetch GeoJSON once and display on different styles on Leaflet map?

I want to add a province layer to Leaflet map, which fetched from 4 php for different UTM zones. The corresponding sql table has promotion and population and density columns. I want to fetch the ...
Solmaz's user avatar
  • 149
2 votes
1 answer
66 views

GeoServer - Specify coordinate precision in GetFeature call

I am requesting some features as GeoJSON from GeoServer. Can I specify the coordinate precision in my request? I am getting 8 decimals and really only need 3. I'd like to reduce the amount of data in ...
jotamon's user avatar
  • 1,776
2 votes
1 answer
65 views

QGIS 3.22.4 - Atlas grid generated wrong images with invalid labels

I have two vector layers, one is a GeoJSON (can be downloaded from https://pastes.io/vtlw5surdx) which contains countries with points and their coordinates in WGS84 CRS and one layer is shapefile ...
Bằng Rikimaru's user avatar

1
2 3 4 5
54