Questions tagged [geojson]

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

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

Highlight all GeoJSON multipoints of the same feature with a click in Leaflet

I have the following code that highlights a clicked marker by changing its icon. However, I would like to select all the markers of the same multipoint (for example, if I click on a marker with fid: 0,...
0
votes
0answers
18 views

How to GeoJSON-encode a feature with many points where some properties of the member points are different

I have a db table with features like so fid lng lat color 1 14.5041 46.0434 blue 1 14.5367 45.8631 red 2 15.5041 44.0434 mauve 2 15.5367 43.8631 pink I want to convert the above into GeoJSON. My ...
1
vote
0answers
32 views

Leaflet - update content of a property in popup on a polygon click event

I work with Leaflet.js v 1.7.1 and have stuck with a problem of updating popup content data of data The data set is on a local disk Currently I have a local set of data: var data =[ { type: &...
1
vote
1answer
34 views

Using L.Control.Opacity plugin with GeoJSON layer in Leaflet

I have a fully working map with a few base layers and some buttons, each of which loads and displays different resources. One loads some historical map overlays and uses the L.Control.Opacity plugin ...
1
vote
0answers
25 views

Using SVG map as basemap and interactive GeoJSON on top with Leaflet/OpenLayers?

I have SVG map and GeoJSON file with cells. I need to combine them so the user can hover/click on cell and get some cell info like cellID in the console. Currently using the angular-leaflet-directive ...
0
votes
1answer
22 views

OGR2OGR Esri JSON to GeoJSON - Rings returning as null in geometry?

I'm trying to convert an Esri JSON file to a GeoJSON format using ogr2ogr. For some reason, in the objects returned, the geometry field is constantly null. Here's the script I'm running: ogr2ogr -f ...
0
votes
0answers
11 views

Overpass turbo delivers no data and no errors

I am trying to use overpass-turbo.eu to get all relations for public transport in a set bounding box. I used to work with this query: <osm-script output="xml" timeout="25"> ...
0
votes
0answers
30 views

Creating point feature class template with specific distance between them that generates points in every projection,keeping the same metrical distance

I am working on digitizing airport lights in ArcGIS Pro. I would like to create a point feature class representing airport lights that could serve as a standard template for different airports around ...
1
vote
1answer
25 views

Can GeoPandas accept lists as property values?

Properties in GeoJSON features can be lists (or "arrays" in Javascript). For example, the following GeoJSON feature is formatted correctly, and includes a values property that is a list: { ...
0
votes
1answer
68 views

Dataframe object is not callable

I have a dataset contains latitude, longitude and temp. I tried to draw a contour map of temp based on latitude and longitude on the world map. I need to mark the contour line intervals also in the ...
0
votes
0answers
28 views

Is a multiply nested GeoJSON still valid GeoJSON and can it be displayed by LeafLet.js?

Is this a valid GeoJSON? Can it be displayed using LeafLet GeoJSON Layer? "geometry": { "coordinates": [{ "coordinates": [{ "type": &...
4
votes
1answer
46 views

How to reformat SQL statement to export GeoJSON from PostGIS table?

So, I realize this question gets asked a lot, but the root of my question is related to the syntax of the SQL statement used to format the result table as GeoJSON. I am currently able to execute a ...
0
votes
0answers
19 views

Converting long/lat coordinates for a selected feature in Mapbox tile GeoJSON such as a road to Unreal Engine x,y coordinates

The goal is to be able to download a real-world height map, import it into Unreal as a landscape, then draw roads on that landscape based off the GeoJSON file coordinates for that road. I use this ...
0
votes
0answers
23 views

Invalid GeoJSON polygons, lots of bow ties

I've been trying to figure out what is exactly going on with this GeoJSON polygon. What might be the underlying cause? The output is in GeoJSON, however, it's obviously invalid GeoJSON. I think it ...
0
votes
2answers
71 views

GeoJSON format to CSV [closed]

How to extract the GeoJSON from the following URL to CSV ? https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=60.10&lon=9.58 Also what option to use to get/import this data to layer?
1
vote
1answer
24 views

Getting attributes of polygons that line overlaps using Leaflet and Turf

I have a Leaflet Polyline: var polyline = L.Polyline(polylineData).addTo(map); and a Leaflet GeoJSON of Polygons: var countries = L.geoJson(countries, {style:{color:'darkgrey', opacity:1,fillColor:'...
2
votes
1answer
67 views

GeoJSON API in QGIS

Can someone explain which kind of "arrangements" can be used to get data with QGIS API. I am very new to QGIS API,so any advice is welcome. As I see it API's can be added by using Add ...
1
vote
1answer
22 views

How to delete duplicate objectID in ogrmerge?

I am using ogrmerge to merge two GeoJSON files together. These two files can sometimes have duplicate objectIDs. Is there a way I can specify from the ogrmerge command options to only select distinct ...
0
votes
1answer
45 views

Determine the coordinate system used in GeoJSON file?

I'm fairly new to geodata. I got some data (coming from mapbox api from scraping a website) with all geometry points. I'm trying to convert these points to long/lat so I can use it in my project (and ...
2
votes
1answer
38 views

How to create an empty GeoJSON template with several empty fields (QGIS)

I would like to know if it is possible to create a template in the GeoJSON file format. With a template I mean simply an empty GeoJSON with the field names already present such as in the example in ...
2
votes
1answer
27 views

How can I use GeoPandas to read a string containing GeoJSON content into a GeoDataFrame?

Suppose I have a string that contains raw unparsed GeoJSON data. For example: geojson_str = '''{ "type": "FeatureCollection", "crs": { "type": "name", ...
0
votes
0answers
28 views

Using EPSG:27700 Projection with OpenLayers 6

I want to use OpenLayers to use it with GeoJson Vector layers from MSSQL Spatil Table which have projection of UK coordinates BNG based on Easting Northing. Also which basemap can i use if not ...
0
votes
0answers
28 views

Loading GeoJSON line geomtery layer in Mapbox not rendering properly in lower zoom levels

Tried to load a line geometry GeoJSON file from local to mapbox webmap but on lower zoom levels(5-13) line layers are not loading continuously, in higher zoom level it was working properly. Lower zoom ...
1
vote
0answers
35 views

How to change the geometery type multilinestring to polygon in a JSON file through og2ogr [closed]

I have have a JSON file of earthquake data. The data type within the JSON file is a MULTILINESTRING. For my further workflow I need the data type POLYGON. I am able to import the dataset as POLYGON ...
1
vote
1answer
33 views

Uncaught Error: Unsupported GeoJSON type: undefined - Openlayers

I get a valid geojson from the database using a query. Below one is the php script used to read the data. <?php include "../includes/init.php"; // including data base connection $sql = &...
2
votes
0answers
32 views

Reading a large number of GeoJSON files from a website using R

I am trying to get the position of every The Things Network gateway, and the information is scattered in an awful lot of GeoJSON files (around 100,000). I've managed to get an URL of every single file ...
0
votes
0answers
11 views

Import format in kepler.gl from QGIS

I try to export layer from QGIS to CSV, JSON or GeoJSON to add data in kepler.gl. I think I tried all options : geometrycollection or not, GeoJSON newline limited or not, comma, semicolon, CSV with ...
0
votes
2answers
33 views

GeoJSON from GIS Steiermark not convertible to Feature in ArcMap

I want to convert a GeoJSON (downloaded from GIS Steiermark) to a feature in ArcMap (the JSON I want to import is a polygon of the Riegersburg in Austria). This does not work. After checking the JSON ...
2
votes
1answer
78 views

Converting ArcGIS Spatially Enabled Dataframe to GeoJSON

I've got a spatially enabled dataframe (SEDF) I'm trying to convert to a GeoJSON. Normally I do this as a 2 step process by creating a featureclass then converting that into a GeoJSON with SEDF....
0
votes
0answers
19 views

Null geometry values on GeoJSON file in Tableau

I am using GeoPandas to combine several Shapefiles into one but I am running into an issue. If I export to a .shp file, my column names get ruined because of the 10 character limit. However, the ...
1
vote
1answer
40 views

Changing GeoJSON key name

I have a multi-level GeoJSON file and I need to create a new geometry field within it that is a copy of the old geometry field but with a different key name. The new geometry field would exist in the ...
2
votes
1answer
54 views

Does Geometry by expression in QGIS except layer without geometry?

There is distance matrix with 9.455 features without geometries in GeoJSON format. It was created outside of QGIS with a tool similar to QGIS's "Distance matrix". The matrix looks like this: ...
0
votes
1answer
23 views

OpenLayers: Export from / Import to KML - keeping the layer structure

I have following structure before export: LayerGroup LayerGroup Layer Feature Is there any posibility to keep this structure when export/import KML? I noticed in the KML file after I export ...
1
vote
0answers
34 views

Choosing vector source format for geospatial dashboard [closed]

I'm currently working on a Geospatial dashboard application where I have base maps and raster data in polar-centric projections, using open source tools (GDAL, PostGIS, OpenLayers). In past projects, ...
0
votes
0answers
30 views

Connecting GeoJSON and TIFF image for deep learning

I have GeoJSON coord: { "type":"FeatureCollection", "features":[{ "type":"Feature", "geometry":{"type":"...
0
votes
1answer
37 views

Displaying in-memory GeoJSON in ArcGIS API for JavaScript

Right now I have a GeoJSON hosted on Azure so I can download it by URL like so: const geojsonLayer = new GeoJSONLayer({ url: "www.url.from.azure.com, copyright: "USGS Earthquakes", ...
0
votes
1answer
29 views

Geometry simplification taking time

I'm doing using an SQL query to simplify the geometries and transform them into GeoJSON, and later use it in Leaflet. However, I am facing a small problem: queries that return the geometries of cities,...
0
votes
1answer
39 views

SQLite/SpatiaLite error: no such function: ImportGeoJSON

I'm inside a bash script trying to import a GeoJSON file into a SQLite DB. I tried both ... SPATIALITE_SECURITY=relaxed sqlite3 'db.sqlite' "SELECT load_extension('mod_spatialite')" "...
3
votes
1answer
37 views

QGIS attributes table shows wrong data when printing Timestamp with Milliseconds

I'm using QGIS to Debug Geometries and corresponding times. For that, I created GeoJSON in C# and added 3 timestamps as attributes: feature.Properties.Add("CreatedUTC", CreatedUTC.ToString(&...
1
vote
0answers
34 views

Converting GeoJSON point into polygon in React

I have a JSON file of areas making polygon. I have saved those files in SQL Server database so i convert GeoJSON into CSV and import in my database and now i want to connect database with React.js. ...
0
votes
0answers
24 views

Can OpenLayers be used to show/edit electrical Single Line Diagram (SLD)

I have some spatial data source(SQL server tables with geometry fields) that contain spatial data for single line diagram or SLD(here does not stand for styled layer descriptor) of electrical networks....
2
votes
1answer
50 views

Getting Eval Error while trying get values from JSON

I've got a point layer GeoJSON from OpenStreetMap for tram routes. In @relations field there is JSON. I want to get numbers of tram routes as a list (3, 10, 21, 6...so on) for points labeling. Using ...
1
vote
1answer
58 views

Extracting skatepark data as JSON file

I am new to QGIS but I need to create a JSON file with skatepark name and lat long. I have tried to use quickOSM plugin for QGIS with the tag leisure=pitch and sport=skateboard but it ends up giving ...
-1
votes
2answers
32 views

GeoJSON is a directory error on Linux [closed]

I need to inspect the source code of a GeoJSON file written with geopandas because QGIS has trouble correctly interpreting the CRS and I'd like to get to the root cause of it. I tried with nano and ...
1
vote
0answers
35 views

Transforming GeoJSON to sf distorts coordinates

I am working with GeoJSON data from this source. I am using the sfpackage of R to plot it. This is my code: dmas<-st_read("https://raw.githubusercontent.com/geoiq/gc_data/master/datasets/998....
-1
votes
1answer
108 views

Conversion of GeoJSON to GPX? [closed]

How do you convert a GeoJSON file to GPX?
0
votes
0answers
66 views

Import GeoJSON object into PostGIS in JavaScript

I'm looking for a way to persist my GeoJSON object to a table in PostGIS, I've installed the ogr2ogr JavaScript library to achieve this; on this case this what I got so far: async function ...
1
vote
1answer
81 views

Get coordinate index from array on GeoJSON data in Leaflet

I have GeoJSON data with linestring feature type. I will display this data using L.geoJson() function. The data has properties of rotation for each coordinate. I want to create a marker with that ...
1
vote
0answers
25 views

How to run topojson from Powershell?

I have already installed node.js and used it to install topojson via npm install topojson. But when I run command like topojson input.geojson -o output.topojson, I get the familiar error of topojson :...
0
votes
0answers
25 views

Converting GeoJSON to COCO using QGIS

I am working on deep learning project on which I need to convert GeoJSON to COCO format to run the evaluation pipeline. From my research I couldn't find any tooling for such a conversion. I know CVAT ...

1
2 3 4 5
47