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
57 views

How to export underlying vector layers from web map to QGIS?

The following map is using Leaflet https://www.openreach.com/fibre-broadband/fibre-first People need to use these layers in their QGIS. Is there a way to maybe load the layers from the same source ...
1
vote
1answer
77 views

Gdal.warp outputs black image when cutting from json

I have the following task: to cut a polygon out of an .tif file. my task is to: create a new image from the polygons I have I perform the following steps: get image and polygon data reproject polygon ...
3
votes
2answers
61 views

Limit number of data points rendered

I am trying to render cities on the map, using Geonames’ dataset (source). I have downloaded the top 10000 cities as a GeoJSON file, and loaded it into QGIS. However, when I zoom out, this shows too ...
1
vote
1answer
76 views

GeoJSON file content not display properly in Leaflet

I am new to Leaflet. Am facing one issue when try to display GeoJSON file in Leaflet. Issue: Actually some GeoJSON file only am facing this problem. In my knowledge coordinates are in different ...
1
vote
1answer
203 views

OpenLayers 4.6.5 GeoJSON WGS84 not mapped with a different projection

I have a map projected on EPSG:3857. I must add ocean areas around the globe. Areas come from different GeoJSON files that are added via a select. Most of geojson files have a projection WGS84 (EPSG:...
1
vote
0answers
25 views

Elasticsearch polygonize TIFF map

I am having an heavy TIFF map around 2Go and I want to index it in ES in order to geolocate data of this file. With GDAL, I could polygonize only a part of it in GeoJSON, but seems that big polygons ...
0
votes
1answer
695 views

Converting a text file to GeoJSON

I am using python, and I have a text file that contains the metadata of the area that I intend to use. Here is a sample: { "type": "Feature", "id": 10, "properties": { "circo_id": 220.0, "circo_na_1":...
0
votes
1answer
143 views

Making QGIS layer update from changed .geojson data source

I have the same problem as Making QGIS layer update from changed data source. However, I cannot get the solution proposed by Matthias Kuhn in a comment on an answer to that question to work. I am ...
0
votes
1answer
54 views

QGIS MySQL points import

I have a column in my MySQL database table that contains location information (GeoJSON). I want to import this data and see the points on my QGIS project map but it doesn't seem to work. What I was ...
0
votes
2answers
116 views

L.control features showing up only below raster layers

I've been studying Leaflet and, when I was trying out some plugins, this issue showed up. Pop-ups and markers works fine, but the line (perimeter) won't show up unless I turn off the raster layers. ...
0
votes
0answers
33 views

Using geojson-vt to convert MongoDB output server side

I am using Mapbox with React.js on client-side, and Nodejs with MongoDB on server side. In order to make the rendering of polygon layers on the map easy, I would like to create tiles out of GeoJSON ...
1
vote
0answers
303 views

Highlight polygon on mouse over in Leaflet?

I am doing a map on Leaflet and I would like to know how to put my polygons highlighted visually in some way when they are covered with a mouse a bit like that: http://www.gistechsolutions.com/leaflet/...
0
votes
0answers
173 views

Adding values to heatmap in Leaflet?

I followed this methode https://geomappando.com/2016/11/08/come-realizzare-una-heatmap-con-leafletjs/ to get a heatmap from my GeoJSON file. But, I got it without having the value field included. ...
2
votes
0answers
33 views

What do the numbers in the intersection Matrix in the JTS TestBuilder mean?

What do the numbers in the intersection Matrix in the JTS TestBuilder mean?
0
votes
0answers
91 views

Can't correctly display GeoJSON on D3

I'm trying to display some GeoJSON files with D3. The code is pretty simple: import europe_data from "./data/europe.json"; import areas_data from "./data/LV.json"; /**********************************...
0
votes
0answers
40 views

Shape - GeoJSON

A multiple polygon shape file with some topology errors converted to GeoJSON format, would the topology errors cause problems using the converted file in web maps or apps?
1
vote
0answers
30 views

Parser for NOTAM into GIS point objects whith attributes

I am participating in a gis application development project. There is a task of planning from a drone flight application, taking into account the limitations of NOTAM. Everything would be fine if it ...
0
votes
0answers
37 views

Show data labels in Oracle Analytics Maps

Can anyone assist me in adding data labels in OAC (oracle analytics desktop ) Maps. The image below shows state names ,I have a similar requirement to add names to the city. I tried below json text ...
3
votes
1answer
506 views

Turf intersect doesn't always work with polygons

I have a GeoJSON of two obvious colliding polygons but turf.intersect doesn't seem to detect it. Here the GeoJSON: { "type": "FeatureCollection", "name": "invalid_import", "features": [ ...
1
vote
2answers
287 views

Value error when trying to load line and polygon GEOJSONs into PyCharm/Python

I'm trying to use GEOJSON files to visualise some data in Python using GeoPandas (GDAL, fiona, shapely, numpy, matplotlib are all installed). I'm having success in loading some files but not others; ...
2
votes
0answers
27 views

Generalization with GRASS explodes number of polygons that are exported to GeoJSON

I have a shape file containing polygons with 10 geographical districts that together form a city, which I want to generalize without "sliver" artifacts and export to GeoJSON. When running this vector ...
0
votes
1answer
141 views

Filter features outside the viewport in Mapbox

I have a huge GeoJSON file having around 100K features and I want to filter features outside the viewport. I tried multiple approach given on: https://github.com/mapbox/mapbox-gl-js/issues/8350 and ...
2
votes
1answer
74 views

Check if polygons of a GeoJSON file are included in polygons of another

I have two GeoJSON files. A province.geojson file and a constituencies.geojson file and I would like to know for each district polygon which province it belongs to. That is to say, for each polygon in ...
2
votes
1answer
116 views

Select only the feature that overlapses its correspondant in another layer - Leaflet, qgis2web

I have 2 identical layers overlapping, each containing identical FeatureCollection values. Only one of them is added into the map. Is it possible that when clicking on a specific feature of the ...
1
vote
1answer
47 views

Format and Import to QGIS

I have a parcel which I would like to load into QGIS. The county's GIS website is not a standard Arc REST format, so I am struggling with the formatting. It uses "mapgeo" and I am not sure how to ...
3
votes
1answer
79 views

ogr2ogr - accomodate spaces in -select properties

I have a geojson feature collection. Some of its features have spaces in their property names. I am attempting to use the -select argument to limit which properties are included in the output. Is ...
0
votes
1answer
36 views

QGIS: Open vector from URI with spaces

I try to open a pelias rest api link that returns geojson with add vector layer (ctrl+maj+v) in QGIS If i try http://localhost:4000/v1/search?text=belgium, it's ok. If i try http://localhost:4000/v1/...
0
votes
1answer
28 views

Create Multiple Shapefiles from GeoJSON

I am attempting to convert a GeoJSON Feature Collection into multiple shapefiles. The shapefile a feature ends up in depends on a specific property of the GeoJSON, layer_id. My desired output is a ...
1
vote
0answers
75 views

GDAL C# Bindings

I need some help on usage of GDAL C# bindings to convert geoJSON to MVT. How do I know that, below call is complete? We observed that below call is Async (All the code lines are executed and Parent ...
1
vote
1answer
686 views

How to select a given feature in a GeoJSON file using Python? [closed]

Scenario: I have a large (120+ MB) .geojson file that represents a bunch of LineStrings features. Here is an example feature selected using json.dumps(geoFile['features'][0]): { "type": "...
1
vote
2answers
146 views

Vector layer from MapServer WFS not displaying in OpenLayers 6

I want to display a WFS layer in GeoJSON format on my map via OpenLayers. All my layers in WMS appear, only the one in WFS does not appear. I did create a "WEB" block in the mapfile. And my layers are ...
1
vote
0answers
123 views

D3.json doesn't fetch data but no error [closed]

I am trying to load a geojson file. I get an error (404) if the file doesn't exist but nothing happens if the file exists. I have tried different versions of D3 ... v3, v4, v5 console.log("hello"); //...
0
votes
1answer
257 views

Issue with using MultiLineString in Leaflet Animated Marker Plugin

This response on image below is coming from Geoserver as MultiLineString and I restructured it to LineString like on image because Animation plugin doesn`t support MultiPolyline json structure and ...
1
vote
1answer
101 views

Opening vector layer from GeoJSON file

I have a vector layer of rectangles in QGIS 3 that I export as a .GeoJSON- file. I want to change those geometries to new polygons with certain dimensions, for which I use Python. I then save those ...
1
vote
1answer
1k views

How to display the GeoJSON from PHP on the map?

I am using MapboxGLJS. I retrieve the coordinates from my database and I put it in GeoJSON format on PHP which look like this: <?php $sql = "SELECT * FROM waypoint"; $...
0
votes
1answer
189 views

Splitting polygons based on points density [closed]

I have a geojson file with polygons representing administrative regions. I also have a shapefile from which I can extract a list of points of interest (schools). I can iterate over this list of ...
0
votes
0answers
62 views

What should the GeometryField encoding be for a GeoJSON data source in an OGR VRT?

I am trying to produce a color gradient for a temperature map and I am using gdal_grid, specifically: gdal_grid -zfield "temperature" -a invdist:power=2.0:smoothing=0.0 -txe -72.5 -77.0 -tye 38.6 41....
0
votes
0answers
137 views

How can I convert polygon features stored in Shapefile, GeoJSON or GML (over WFS) into obj file

I am currently working on an augmented reality application using ARKit. The required file formats are DAE or OBJ. My clients would like to display information stored within Shapefiles, GeoJSON or GML ...
0
votes
1answer
209 views

Leaflet - global variable in onEachFeature returns value of next feature

Thanks to TomazicM I got my GeoJSON import up and running. Here's the whole code, I highlight the problematic bits thereafter var map = L.map('map', { crs: L.CRS.Simple, minZoom: -...
0
votes
1answer
231 views

Avoid duplicate properties from GeoJSON file in a Leaflet map

I'm posting this question here because it is related to GeoJSON and Leaflet. Here are my requirements : My map is ready and functional. I'm using markerCluster to create clusters when several ...
1
vote
1answer
37 views

Leaflet change GeoJSON geoms style

I have GeoJSON that could be either a point or line and I am trying to make the layer red. Here is the code: function styling(feature) { return { color: 'red', }; } ...
2
votes
2answers
551 views

How to work with GeoJSON, Leaflet and pixel coordinates?

I'm a noob trying to piece together a - as I thought - simple thing: A Leaflet map based on a raster picture with markers coming from a GeoJSON file. As this is a fictional map, I use the CRS.Simple ...
0
votes
0answers
93 views

Is there a tool to draw GeoJSON points on a raster image?

I know there are tools like geojson.io which allow me to draw points on a real world map. But I work on a fictional map, so all I have is a big raster image. Later I want to show it in Leaflet using ...
1
vote
1answer
482 views

How to append the .csv data into GeoJSON using Python

The .CSV file has 6 indents, we need to append all the indent with GeoJSON file and updated file ready for open in QGIS import json import copy import csv import sys #print(sys....
0
votes
0answers
120 views

Add new values to properties of a GeoJSON by matching the name on an array with objects

I have an array of objects with the following structure: population = [{county: "Alachua", population: 269956} {county: "Baker", population: 28355} {county: "Bay", population: 185287}...
0
votes
0answers
37 views

Highlight a single GeoJSON feature, darken all others in Leaflet

I would like to bring extra highlight to a GeoJSON feature when it is clicked by making all the other GeoJSON features on the map darker. One approach I was thinking was drawing a semi-transparent ...
1
vote
1answer
61 views

Shrinking a bulky GeoJSON

I converted shapefile to GeoJSON, the shapefile is 10mb and the result of GeoJSON was around 30. In order to make this conversion, I used the following code: import geopandas as gpd SHP_FILE = './...
2
votes
1answer
43 views

A original GeoJSON file is also deleted when I edit an imported layer by PyQGIS

I am trying to import a geojson file of county in U.S. and editing it. Using the following code, I can get a features of the state (in this case "Missouri"). My question is when I edit the layer, ...
0
votes
0answers
152 views

How to download administrative boundaries from OpenStreetMap in GeoJSON format?

I'm looking for a way to download all of the administrative boundaries from OpenStreetMap. I checked http://www.diva-gis.org/ and https://gadm.org/ websites, they are useful but lack of detail. They ...
0
votes
1answer
121 views

What is the difference in purpose between STAC and OGC services?

I am confused about the purpose of the Spatiotemporal Asset Catalog. How does it differ from OGC services which specify accessing data through various services? Is it another service?

1
3 4
5
6 7
44