Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [geojson]

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

0
votes
1answer
12 views

Convert list of Java objects with JTS geom to GeoJson

I have a list of Java POJOs that all have a JTS geometry associated with them (Point) - a list of POIs, basically. I want to output them as GeoJson (FeatureCollection, Feature etc.) jackson-...
3
votes
1answer
61 views

Including images in GeoJSON

Is there a correct way of including links to images within geoJSON? This is the FeatureCollection I have for an object on my site: { "type": "FeatureCollection", "features": [ { "id": ...
1
vote
0answers
39 views

Coordinates to Lat/Long Conversion

I'm trying to convert a GeoJSON Coordinates Point to latitude and longitude format, but I don't know exactly which is the format they have or which is the coordinate system they are expressed in. I ...
1
vote
1answer
13 views

FeatureJSON is not setting bounds

I am using FeatureJSON from geotools to read in a GeoJson file containing a FeatureCollection and convert it to a SimpleFeatureSource. It all works fine except the feature bounds are null, so if I try ...
0
votes
0answers
23 views

Where does Google get special US boundaries?

The Census Bureau (ZIP Code Tabulation Areas (ZCTAs)) does not have this KML boundary or postal code for 73301 which is a 'special' IRS building. However, Google displays, where did it get this ...
2
votes
1answer
59 views

Converting large GeoJSON to shapefile?

I have recently downloaded a building footprint GeoJSON file from Microsoft Bing Maps. The file I downloaded was for the entirety of Texas, and is of approximately 2.2 GB file size. They do not ...
0
votes
0answers
8 views

Input shapes do not overlap raster

I hit https://api.planet.com/data/v1/quick-search with parameters { "interval": "day", "item_types": [ "REOrthoTile" ], "filter": { "type": "AndFilter", "config": [ { ...
0
votes
0answers
13 views

Extract geometry from TileJSON map

I would like to get to know where the pipeline data of http://mapa.cartocritica.mx/ is hidden. The map is using Leaflet and json tiles from GIS Cloud like http://tiles.giscloud.com/t/1524762449/...
1
vote
1answer
17 views

Dynamically set mapview based on the overlay feature of L.geoJson coordinates in Leaflet

I want to dynamically setView of the map based on the overlay feature which I extract from L.geoJson in Leaflet. I tried using fitBounds, which doesn't seem to work. Here is the code snippet: var ...
0
votes
0answers
13 views

Filter GeoJSON by with ndjson [closed]

I would like to filter a GeoJSON with pipelines by the properties diameter and type (gas/oil): {"type":"Feature","properties":{"OPERATOR":"CENTERPOINT ENERGY INTRA P/L,LLC","CONTACT_PHONE_NUMBER":"...
0
votes
0answers
34 views

Converting AutoCAD/DXF to GeoJSON?

I am trying to convert from an AutoCAD indoor floorplan to geoJSON. I've used the Geolocation command in AutoCAD to set a reference point in lat/lng using World-Mercator/WGS84 as SRS. When I export ...
0
votes
0answers
31 views

Open WFS in OpenLayers

I'm starting with GeoServer. What I am trying to do is open my GeoServer layer as WFS using OpenLayers so I can edit it as a feature, however I am not understanding how to put the URL. Follow the code:...
0
votes
0answers
46 views

GeoJSON feature collection

I'm trying to create a GeoJSON feature collection using Flask, Sqlalchemy and Marshmallow. The script below will run if I don't include the name in the query and the for loop to create the feature ...
0
votes
0answers
9 views

How to get FeatureCollection by loading KML in Leaflet.FileLayer

I am loading a kml file into my map and after presenting this polygon using Leaflet.FileLayer plugin. I want to get all convert kml data into geojson formate. Here is my code: var layer = L.Control....
-2
votes
1answer
47 views

Convert esriGeometryPolyline to GeoJSON

I would like to extract the "Existing KinderMorgan Trans Mtn Tar Sands Pipeline" from this ArcGIS REST service and convert it to GeoJSON. Ogrinfo can't read the JSON (it's not standard ESRI JSON): ...
2
votes
1answer
35 views

Error on showing .js as spatial object with JSON.parse()

I have a Leaflet map exported by qgis2web plugin. The geodata is stored as (Geo-)JSON-objects inside a variable saved as .js-file. I have an attribute field ("bildpfad") with comma-separated pathes to ...
4
votes
3answers
123 views

Find out ESRI REST URL for web map which is hiding it

I would like to extract the pipeline geometries from https://www.arcgis.com/home/webmap/viewer.html?webmap=a00c3b5cee4e4fe0b238b5e05ed80204 It shows the existing gas & oil pipelines crossing ...
1
vote
0answers
21 views

Why does node Circle to Polygon module returns oval/ellipse instead of a shape like circle?

I'm using npm package circle-to-polygon and I wrote following code to return a polygon which is approximately like a circle. const circleToPolygon = require('circle-to-polygon'); let coordinates = [...
0
votes
0answers
19 views

Show / Hide GeoJSON Layers with Mapbox.js

I would like to display two GeoJSON layers on the map using the drop-down menu. In creating the right script I would like to ask for suggestions. Link to my code on JSFiddle
2
votes
1answer
25 views

Leaflet GeoJSON Map Buffering

I am using Leaflet with Custom GeoJSON Layers to display my map. I noticed that the map off-screen is only loaded after releasing the mouse button during a drag. Hopefully, this demo makes it more ...
2
votes
0answers
18 views

How to draw border for a group of division in a GeoJSON file in python?

I use following code to read a geoJSON file and which is working. GeoJSONN file contains multiple divisions of the map and each of them have a group name in the file. I could add gray border to ...
0
votes
1answer
34 views

Leaflet map with toggleable overlays - reading in data from a PostgreSQL database

I have a Leaflet map with several sets of points read in from a PostgreSQL database. I would like to make each of these collections an overlay that I can toggle on and off. Without having overlays I ...
1
vote
0answers
21 views

Multiline String information ordered? [closed]

I am relatively new to this whole geotopic. I have to deal with the following scenario: From a userperspective, I do three steps I draw a straight line across a riverbed I get a resultset from the ...
0
votes
0answers
40 views

Writing Esri JSON outside of ArcGIS? [closed]

I am trying to determine if it is possible to construct an esri-json compatible file using an auxiliary tool (rather than ArcGIS). Ultimately it appears that GDAL can read esri-json (awesome!), It ...
0
votes
0answers
61 views

How to pass Geo-json properties to on click event in leaflet?

I need to create a map with geo-json file which content feature properties. I want to show feature properties with click on map here is the code which i am using please let me know if i am wrong ...
0
votes
0answers
26 views

Adding GeoJSON parameter on GeoServer SQL View?

Is it possible to add GeoJSON parameter on GeoServer SQL View? select * from data_geometry_table where st_intersects(geometry, ST_GeomFromGeoJSON('%geom%')::geography::geometry); And my geom value ...
0
votes
1answer
56 views

How can I show a popup in a map, using Leaflet?

How can I show a popup in a map, using Leaflet, loading the markers from an GeoJSON external file? function onEachFeature(feature, layer) { if (feature.properties && feature.properties....
0
votes
0answers
61 views

Getting started generating vector tiles

I am working on an app that displays a nice map. Currently, we use raster tiles, but we'd like to switch to vector tiles. We want the freedom to add all the information we want, so we want to create ...
1
vote
2answers
56 views

Loading a geojson file with OL3

I am using OL3 to load a geojson layer with points on a map. Although the layer is loaded and it can be seen, when I zoom out the position of the points change on the map. I thought this would related ...
0
votes
0answers
25 views

How get attributes from GeoJSON

How can i get only attributes names from GeoJSON? ogrinfo gets attributes with others info: ogrinfo -al -so rw.geojson Output is: ERROR 4: GeoJSON Driver doesn't support update. Had to open ...
1
vote
2answers
41 views

Find the extent of a GeoJSON FeatureCollection

How can I get of the extent of all features within a GeoJSON FeatureCollection with Python 3? One extent for all features, not one per feature. The Feature collection includes multiple points ...
1
vote
1answer
30 views

How to create a multiple buffer using geopandas

I want to create buffers from any point in a multiple point file. I can do it with a constant buffer using geopandas.buffer() track.geometry = track['geometry'].buffer(0.05) track_line = track....
0
votes
1answer
48 views

Leaflet: added GeoJSON Feature to FeatureGroup doesn't show up

I have a geojsonLayer and a selectionLayer. I want to add specific features to the selectionLayer after a click event. I create the selectionLayer at startup: selectionLayer = new .FeatureGroup()....
0
votes
3answers
75 views

SSL certificate problem when trying to open GeoJSON file

I'm getting the following error when trying to open a GeoJSON file in QGIS: Data source is invalid (SSL certificate problem: self signed certificate in certificate chain) Is this related to the ...
0
votes
0answers
31 views

Trying to convert shp to GeoJSON using docker and unable to open datasource

I am a novice of the GDAL module. I was trying to convert shapefiles to GeoJSON files using docker. I opened docker, created one image and created one container in the same directory of my data. ...
0
votes
0answers
25 views

Force feature attributes purpose

https://developers.arcgis.com/javascript/3/jsapi/printtemplate-amd.html#forcefeatureattributes export map json data https://developers.arcgis.com/rest/services-reference/exportwebmap-specification....
0
votes
1answer
33 views

How to append geojson file using featureselection

For example, I have a file as shown below: { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {}, "geometry": { "type": "...
1
vote
2answers
81 views

Reading GeoJSON file and querying Nominatim?

I need to loop through a GeoJSON file, where for each "feature", find the city where the track started: with open('input.geojson') as f: gj = geojson.load(f) for track in gj['features']: #OK ...
1
vote
2answers
59 views

Longitude values in GeoJSON out of range -180 to 180

I've extracted a geojson data file from QGIS for a transportation layer. Now in the file, I can see multiple entries like the following: { "geometry": { "...
0
votes
1answer
88 views

GeoServer & QGIS - Using GeoJSON in a WFS request

I'm trying to load a WFS Layer in QGIS. I requst the data from my GeoServer and would like to import the data as GeoJSON. I can export my data in the layer preview section as GeoJSON. Everything ...
0
votes
0answers
8 views

geodjango ogrinspect on geojson layer returns all field lengths to zero

I have a geojson layer which I am running python3 manage.py ogrinspect reporter/data/parcels.geojson parcels --srid=4326 --mapping --multi which returns from django.contrib.gis.db import models ...
0
votes
0answers
21 views

Getting attribute data from a GeoJSON file

I have a JSON file that I am trying to pull specific attribute data from. Before the data is turned into a file, it is first held in a variable like this: params = {'f': 'json', 'where': '1=1', '...
0
votes
1answer
76 views

add additional data to geojson with leaflet

I'm using leaflet to create a world map with geojson. Now I need to add some additional information as popup for each country but I'm not sure how should I proceed it. Been finding solution for hours. ...
1
vote
1answer
77 views

Updating map when external GeoJSON data is modified?

We have a Leaflet map embedded into an OLE Browser Control in our client application named [T]. The HTML file we have today loads dynamic data from a local GeoJSON file that is generated on request ...
0
votes
1answer
59 views

Extracted GeoJSON from TIFF

If there are a way to do call("gdal_contour -i 10 -f GeoJSON".split(' ') + [file1, file2]) as Python call method of some library? Not via command line call and intermediate file storing?
1
vote
1answer
126 views

Shapefile to GeoJSON with simple style

Does anyone know if there are any applications can support exporting Shapefile to GeoJSON and keeping the style?
0
votes
0answers
30 views

leaflet display geoJson just a like a line

I am trying to construct a choropleth map with leaflet, when I execute the script, just a line is displayed. What can be wrong? <!DOCTYPE html> <html> <head> <meta ...
0
votes
0answers
33 views

Adding a new feature to GeoJSON

I have a GeoJSON file that I want to insert a new feature for example: "New": {"one":1,"two":2,"three":3} I inserted like this : { "type": "Feature" , "New":{"one":1,"two":2,"three":3}, "geometry":...
0
votes
0answers
79 views

Google Maps 'uncaught exception: InvalidValueError: not a Feature or FeatureCollection' when adding GeoJson

New to GIS here and trying to take a shapefile I converted to geojson and display it on a google map. As stated I get this error: 'uncaught exception: InvalidValueError: not a Feature or ...
0
votes
2answers
78 views

Add a vector GeoJSON layer in OpenLayers 5.1.3

I am trying to add a simple capitals GeoJSON vector layer to my map for basics learning, without managing to get it to work. I spent hours of roaming the documentation API. As follow is my script: ...