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

Leaflet map without basemap

I have a geojson of US States and i only want to show them in map. I want to remove any basemap which is addded in map. I only want to show US States which i am loading from geojson and i want to add ...
0
votes
0answers
15 views

How use GeoPandas to generate shapefile from GeoJSON that could be open for ArcGIS

I got from an API a layer of parcels in format GeoJSON, just like the file in this .zip https://www.dropbox.com/s/5eqi8bbqt6ej6lc/json_data.rar?dl=0 I need to convert this to a shapefile that could ...
1
vote
0answers
29 views

Spatial operations with JSTS

I'm working with Leaflet and I'm also working with JSTS to do the spatial operations. In most of the cases I want to create Polygons inside another Polygon Geometry. In this case the yellow shape is ...
2
votes
1answer
47 views

GeoJSON to CSV with geometry using QGIS

I downloaded a GeoJSON file from vangdata.carto.com and I'm trying to convert it to CSV that has geometry data in tact. I'm trying to achieve the same result as a CSV file when exported from public....
0
votes
1answer
19 views

GeoJSON map color does not change

I am trying to code save/load function. I can say my save and load function works properly because it displays on console that for example when I load "Canada" file from database, it shows ...
0
votes
1answer
16 views

Gdal_polygonize and gdaltindex error

I'm trying to convert .tif file to .geojson using following cmd: gdal_polygonize.py flowdirection.tif -f "ESRI Shapefile" flowdirection_shp.shp After which I'm getting error: Program '...
1
vote
1answer
11 views

Output in GeoJSON data format using Ruby

I have some data with Ruby script (obtained by geolocating, loading from config files etc) that I want to output as a GeoJSON file. I have some ugly code that generates valid geojson files - but is ...
1
vote
0answers
41 views

Finding closest marker to user location Leaflet KNN

I am using Leaflet KNN and would like the closest station to a users location, from the web browser, to have a pop up saying it is their closest station. How can I find the nearest marker to the user ...
1
vote
1answer
26 views

How to visualize different segments of a MultiLineString?

I have a GeoJSON file that describes the outline of an ice shelf; I hand-digitized the geometry from satellite imagery and DEMs. The data consists of a MultiLineString, but some of the constituent ...
1
vote
1answer
13 views

MapBox GL - filtering GeoJSON by feature index

I'm using MapBOX GL JS with GeoJSON data source. The content of the GeoJSON is changing dynamically. It is a FeatureCollection which contains polygons. I would like to update my MapBox data source ...
1
vote
0answers
24 views

Query to Display Polygons not Working on Geodjango-Leaftlet Web App

I am currently working on a Geodjango-Leaflet-OpenStreetMap web app. I have around 540000 polygons of property boundaries that were drawn in ArcMap; the polygons will be imported to the web app later ...
1
vote
1answer
39 views

Display a track comment when clicking a track in Leaflet multi track layer

See this question Displaying different tracks from one GPX XML file in different colors in Leaflet If I hover a track the hand transforms into an index pointer but if I click nothing happens, see ...
0
votes
1answer
22 views

How to ensure the values set in the CSV are captured within the GeoJSON feature values when merging CSV attributes into a GeoJSON

I create a GeoJSON but the merged values are null. The length of the datasets do not match -- is this a potential issue? If so, how do I merge for all covid matches. (FYI this isnt Covid19 related COV ...
0
votes
0answers
19 views

Markers appearing slightly off their points when Leaflet map zoomed out [duplicate]

I have noticed that the markers on my Leaflet map are displaying slightly off where they should be. However when I zoom in they go to the correct position. Is this a common error? How would I go about ...
0
votes
1answer
34 views

SpatiaLite splitting large polygons from imported shape file into multiple rows

I have this shapefile: shapes.shp in which I have imported in SpatiaLite using this command: spatialite_tool --import --shapefile shapes --db-path db.sqlite --table shapes --charset UTF-8 --srid 27700 ...
0
votes
1answer
47 views

GeoJSON coordinates transformation to Web Mercator coordinates

I'm not sure how OpenLayers is converting the raw coordinates from a GeoJSON's geometry.coordinates property into a Feature's extent property. I can't really seem to find a lot of documentation on it ...
1
vote
1answer
19 views

Order and orientation of pgRouting result

I have a routing application based on pgRouting and OSM data. When I generate a route from coordinates A to B, it works well, but when I export the geojson to GPX format, I notice, that some ...
0
votes
2answers
32 views

GeoJSON Datastore and GeoServer

I found a way that should allow to use (Geo-)JSON flies with GeoServer: An unsupported GeoTools GeoJSON Datastore (thanks to this answer) Here is a link to the jar: https://mvnrepository.com/artifact/...
0
votes
1answer
33 views

Using large data JSON file in Leaflet markercluster [closed]

I want to show the JSON file consisting of many points on the map using the leaflet marker cluster plugin. My JSON file looks like: [ { "json_featuretype" : "Output", "...
-2
votes
0answers
28 views

Geometry editing plugin for maps [closed]

We have an ongoing project and are looking for a geometry editing plugin for maps to use in our application (tech stack: angular for front-end and .net core for back-end). Requirements draw geometry ...
0
votes
0answers
23 views

Divide polygon features to reduce feature size

I am attempting to load FCC Mobile Deployment Form 477 Data into Google BigQuery for analysis and combining with other data I am using. I converted the shapefiles into new-line delimited geojsons ...
1
vote
2answers
48 views

Changing leaflet circle marker colour and size when clicked upon

I am currently using GIS to plot train stations within Wales I have currently made a custom circle marker to point to that of the stations latlng successfully adding it to the map. I am wanting the ...
1
vote
1answer
94 views

Select several polygons with the same identifier in GeoJSON layer

I have a map application where: I load polygons as GeoJSON objects I draw all polygons in a single layer I highlight a polygon on mouse hover from a identifier list Some polygons have the same ...
0
votes
1answer
36 views

Manipulating data with a Handsontable spreadsheet in a Leaflet GeoJSON Layer and rerender the map

The goal is to add a spreadsheet view to a GeoJSON Layer to comfty edit the properties directly in the spreadsheet and the location (lat/long) within the map by dragging the marker with leaflet.draw. ...
0
votes
0answers
13 views

QGIS: JSON (GeoJSON) from Public API is empty if done by protocol

This Question is actually related to this one: QGIS: JSON Load error: Invallid Layer cannot be loaded in: Origin is GeoJSON Because the context is the same but I am going on this by a different angle. ...
0
votes
0answers
22 views

QGIS: JSON Load error: Invallid Layer cannot be loaded in: Origin is GeoJSON

So far I have tried to load in a GeoJSON inside QGIS, but I get a problem doing so. To give some context I am testing a system, where we can get a JSON more specifcally a GeoJson from a API. for now ...
0
votes
0answers
15 views

Is it necessary to sanitize GeoJSON/WKT inputs to Leaflet / Terraformer?

I am currently building a website which includes the following: a Leaflet map where users can draw polygons using Leaflet-draw (and enter other data using HTML forms) a paired text field where users ...
0
votes
0answers
32 views

Setting a number of decimal places a GeoJSON will have when pulled from PostgreSQL db

I have noticed that the markers on my Leaflet map are displaying slightly off and I believe this is being caused by the GeoJSON coordinates only pulling to 4 decimal places. I can see this by looking ...
0
votes
0answers
23 views

Dropdown list and map.fitBounds in Leaflet

In my Lealfet application I have a dropdown list which uses data from a GeoJSON to directly populate the list. HTML <div class="form-group"> <label for="inputCS"><...
-2
votes
1answer
49 views

GeoJSON coordinates are displaying incorrectly on map

I am setting up my first Leaflet map with react / node / PostgreSQL and have managed to get to the level where I have pulled the geojson form my PostgreSQL database. However from what I can see the ...
-1
votes
1answer
67 views

GeoJSON custom marker for different data sources

I need help how to show markers with two different colors for two different GeoJSON data sources. Here's first source geojson.php: { "type": "FeatureCollection", "...
0
votes
1answer
40 views

Publish JSON with GeoServer

I generated a JSON by a PHP script and now want to load this JSON to GeoServer. So far I just found ways to publish SHP files but not JSON...
0
votes
1answer
16 views

One-liner to print first feature from GeoJSON

To make the findings from this GDAL issue more discoverable, I'm posting here as well. ogr2ogr has a -limit option. I couldn't find this option for ogrinfo, while ogrinfo has e.g. -where. I would ...
2
votes
1answer
32 views

Exporting a group of raster layer bounds from QGIS to a GeoJSON

I have a QGIS project with a lot of raster layers; and I want to build a Mapbox map based on this project; that would display those images on a website's map. I need a way to export a group of raster ...
0
votes
2answers
91 views

Dynamically load data from a GeoJSON

I ask a new question about the problem I have, because I tried it but I don't know how to solve it. (I'm learning OpenLayers, and I see that it isn't that easy). Using a html select, I run a PHP query ...
1
vote
1answer
22 views

QgsJsonExporter preserve attributes order in QGIS

I've a memory layer i created that i would like to export in GeoJson. If i add it to main canvas, the attributes table preserve attributes order. # Attributes order preserved QgsProject.instance()....
0
votes
0answers
13 views

Merging two GeoJSON files for Leaflet Map in R

Does anyone know how to convert 2 GeoJSON files into 1 in R? I'm trying to build a Leaflet map for the two files together. library(geojsonio) library(leaflet) dataset1 <-geojson_read("https://...
0
votes
1answer
32 views

Extracting only roads through Overpass API query

I am using overpass API and querying the api for ways,as a result it gives points, whereas I need only lines, multiline strings and polygons. But while using the following code, I get a geojson file ...
1
vote
2answers
57 views

Popup for each feature when using Leaflet marker.cluster plugin

I have leaflet map to display locations of points. Firstly, I use leaflet.ajax plugin to load the points data in GeoJSON format, then I want to enable cluster view using the Leaflet.markercluster ...
1
vote
1answer
28 views

Converting ArcGIS / ESRI PBF to GeoJSON

Anyone able to convert ESRI PBF into anything "human readable"? For example GeoJSON? The ArcGIS dev doc is not very concrete here: The PBF format is binary and is thus smaller and faster ...
0
votes
2answers
57 views

Loading GeoJSON data to Leaflet overlay?

I am trying to get GeoJSON data from an API URL to an overlay. Code; // - GET GEOJSON DATA WITH AJAX TO OVERLAY REGION - // // Get the data var regions = $.ajax({ url:"https://public....
0
votes
1answer
35 views

Unsupported GeoJSON type

I run a query and I get a GeoJSON file, but when I try to load the file into the map, I get the error that it's an Unsuported GeoJSON type. this is the PHP file that generate GeoJSON : $element = $...
1
vote
1answer
66 views

Loading a dynamic GeoJSON created from a PostgreSQL query

I want to load a dynamic GeoJSON, I get the data for the search from a select, execute the query and write the GeoJSON file with a session_id like this $element = $_POST['element']; $query = "...
2
votes
1answer
55 views

Converting a single shapefile with multiple features into independent GeoJSON files using ogr2ogr

Let's say there's a single shapefile that contains multiple features. Most of which are polygons. How can one convert those features into separate independent GeoJSON files? Can this be done with ...
0
votes
0answers
36 views

Importing GeoJSON without duplicating values in properties

Here is the issue I am having, it should be fully reproducible. I am attempting to import a GeoJSON into ArcGIS Pro. The issue is that if one of the features has a property that the other doesn't, ...
1
vote
0answers
25 views

Getting JSON data from Google Maps [duplicate]

I have reviewed Getting polygon boundaries of City in JSON from Google Maps API? as well as the answers by german_martin and Kamil Latosinski. There are two critical weaknesses in Nominatim, using ...
1
vote
1answer
51 views

Dump multiple geometry columns of a GeoDataFrame to Features in a FeatureCollection (GeoJSON) instead of properties?

I have a GeoDataFrame with some of its attributes that are geometries (only the position is the one which was interpreted as the active geometry when loading the data from PostGIS): import psycopg2 ...
0
votes
0answers
135 views

Cannot access GeoJSON layer in react-leaflet

I am using React Leaflet to render Leaflet map and its GeoJSON component to render polygons. I am trying to implement dragging multiple polygons. I added Leaflet.Path.Drag library and tried to reuse ...
3
votes
1answer
67 views

Can't display GeoJson on map

I've generate the GeoJson below, but I'm not able to display it on map, neither on http://geojson.io/. I'm pretty sure it depends from my GeoJson but i don't understand why. What am i doing wrong? { ...
0
votes
1answer
35 views

How to contract geojson polygon

I'd like to convert the big red area to a smaller one (blue) by shifting their borders parallelly by a certain distance to inner direction. This is not equivalent to scale as the result shape will ...

1
2 3 4 5
44