Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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 draw export with polygon names

I know, that this topic has been considered earlier. I have got a few examples here: https://stackoverflow.com/questions/34738805/update-properties-of-geojson-to-use-it-with-leaflet/34740632#34740632 ...
1
vote
0answers
24 views

Inaccurate rendering of shapes in Mapbox

I am trying to create an overlay of the streets of the US. The map streets v8 provided by Mapbox is missing some information that I need. So, I downloaded the OSM files (from here) and filtered out ...
1
vote
1answer
20 views

Divide a polygon in to smaller polygons using JavaScript

Im having a polygon data { "coordinates": [ [ [ 76.878324056172, 8.58553370915678 ], [ 76.8928294425245, 8.58273302582363 ...
1
vote
0answers
16 views

Finding boundary coordinates of user current location with a given radius

I have my current lat and lng details { "lat": 8.561032, "lng": 76.846333 } And from this I need to build a boundary around me with given radius. So How can I get the boundary ...
2
votes
3answers
58 views

Convert large OSM files to GeoJSON

I have been trying to convert a large OSM file (5G) to the GeoJSON format. All the tools I have been using, use extensive memory and throw an out of memory exception. What is the best way to convert ...
0
votes
0answers
16 views

Best way to share data [closed]

We have a decent dataset of layers and we want to publish it for everyone to easily use in their applications. The source is in .gdb and so far I generated .geojson (using ogr2ogr) out of it. From ...
2
votes
1answer
54 views

How to load GeoJSON data in OpenLayers?

I'm using GeoServer for serving map in the GeoJSON format. I din't find any working example. Here is my code snippet. <!doctype html> <html lang="en"> <head> <link rel="...
1
vote
0answers
23 views

Generically filtering multiple GeoJSON layers in Leaflet

I am trying to implement a function that will filter multiple GeoJSON layers in Leaflet based on the contents of a text box on the same page. For instance, a user may write 4 5 7 10 in the textbox - ...
1
vote
0answers
32 views

Encoding GeoJSON to something other than 'UTF-8' from QGIS

I want to save the shp file as GeoJSON and encode it to system, but my QGIS is disabled for selecting an encoder. Adjusted the 'ignore shapefile incoding declaration' option, but it did not work. I ...
2
votes
1answer
22 views

Image slideshow in leaflet map based on geoJSON layer

To be more precised like previously Image slideshow implementation into Leaflet map I have developed my code in the jsfiddle, which states where the problem is: https://jsfiddle.net/Krukarius/...
0
votes
1answer
19 views

FeatureCollection is not a valid type of discriminator Error

I'm trying to pull in Planet data to visualise satellite imagery using Jupyter. I'm new to Python and I get an error like this: { "field": { "filter.config.0.config.type": [ { "message": "...
1
vote
1answer
11 views

GeoJSON from PostGIS view using PDO

I want to use PostGIS data to display it in Leaflet. I've created a PostGIS view (v_baeume_GeoJSON) that delivers already valid GeoJSON. When I retrieve the data from this view using PDO I have to do ...
1
vote
1answer
47 views

Leaflet map GeoJSON placemarks with image slideshow

I am wondering how to create leaflet map where GeoJSON placemarks provide the image slideshow as per the example below: https://docs.mapbox.com/mapbox.js/example/v1.0.0/markers-with-image-slideshow/ ...
0
votes
1answer
46 views

How to efficiently compute if point is on polyline?

I have a CSV file with data in GeoJSON format with 10k+ lines with various open / public data I want to use. So far it's in a file but later it may be in a SQLite database or even better be kept in ...
0
votes
0answers
14 views

Where would I be able to obtain or purchase GeoJSON data for Manhattan submarkets?

GeoJSON data contains arrays of coordinates that create polylines. You can find geoJSON data for the 50 U.S. 50 state borders, for example. I would like proper geoJSON data for this: https://www....
-2
votes
1answer
61 views

Python script for converting Esri shapefile into GeoJSON using Python and GDAL/OGR?

I know Esri shapefile can be converted into GeoJSON using Python and GDAL/OGR. Following command works on the terminal. ogr2ogr -f GeoJSON -t_srs crs:84 outfile.geojson inputfile.shp I want to do ...
1
vote
0answers
37 views

Problem with loading big data (GeoJSON) via PHP

I have a problem with loading (big) data via PHP from a spatial database. I let run this project on a localhost Apache Server. From a data count of about 30.000 edges I get an error VM885:1 Uncaught ...
1
vote
0answers
27 views

OpenLayers 4 get style from GeoJSON not find

We created an API that returns a GeoJSON in accordance with this styling guide but then OpenLayers doesn't find the style key once I want to style each feature, here my code var appLayer = new ol....
1
vote
1answer
40 views

Importing and viewing polygon layer on map?

How is it possible to import and view a polygon layer (I have it in a shapefile) on a map inside MIT App Inventor? Maybe with LoadFromURL method, but in this case which file I should paste associated ...
1
vote
1answer
58 views

Heatmap with GeoJSON, Leaflet and Leaflet.heat plugin

I'm using the Leaflet.heat plugin to create an heatmap in Leaflet. I've some problem with GeoJSON data that I've loaded through a WFS service on GeoServer. I used the function geojson2heat to get the ...
0
votes
0answers
31 views

Openlayers 5 adding GeoJSON point layer using geolocation-orientation as base

I am using the example geolocation-orientation script as a base. (it is really awesome!) I want to add a GeoJSON point layer, but am confused about where and how to add that layer. The marker should ...
1
vote
1answer
23 views

Batch open GeoJSON LineString from files with multiple features

I want to open multiple GeoJSON files, each have Points and LineStrings - I only want the LineStrings. I want to open potentially 1000s of files so don't want the popup asking if I want Points or ...
1
vote
1answer
25 views

Add GeoJSON features from an API call in OpenLayers 4, layer not displayed

I'm trying to create a little demo to show the data from our API into a map but I cannot see my layer Here my code, is just basic for the moment, we just need to display the data: const projection = ...
0
votes
0answers
21 views

Add GeoJSON features from an API call in OpenLayers 4

I'm trying to create a little demo to show the data from our API into a map but I have all the time the error: Uncaught TypeError: feature.getId is not a function Here my code, is just basic for the ...
0
votes
1answer
19 views

Extract custom shape area from Openstreetmap pbf

I have a full-country data download of OSM from http://download.geofabrik.de/ . I want to extract OSM data for a target area that is thin and winding/irregular in shape. I could take the max-min lat-...
1
vote
0answers
11 views

Merging overlapping GeoJSON LineStrings (Tippecanoe) and add visualization

I would like to merge overlapping GeoJSON LineStrings and visually style merged LineString. I have a database of GeoJSON LineStrings which represent routes people drove. I would like to visualize ...
1
vote
0answers
19 views

Openlayers GeoJSON reprojection issue 4.3.3 vs 5.3.0

While switching from ol 4.3.3 to 5.3.0 I encountered a problem. The WMS layers work as I expected (display in the right location), geojson data don't. I read all the data from the same service in ...
1
vote
1answer
24 views

Pop up appearing blank after JSON parse?

My aim is to retrieve the attribute list of a WMS layer. The concept is to fetch it as JSON data, then parse it and display it in a pop up. I am using OpenLayers3 with local GeoServer and JavaScript. ...
0
votes
1answer
42 views

Importing GeoJSON File

I am dragging and dropping this GeoJSON file into QGIS but for some reason I cannot reproject it from WGS 84 (EPSG:4326). It remains at the original LAT/LONG even in a new project where UTMs are ...
0
votes
1answer
46 views

Add more than one layer of GeoJSON data to Leaflet?

This is my code for loading one layer of .geojson data to Leaflet. The data is basically in the form of markers and it's demonstrating different location in Saudi Arabia. It's saved as "saudi_location....
0
votes
2answers
49 views

Add a local GeoJSON file as a layer with GeoJsonLayer

I turned a state boundary feature class into a geojson file called region2_boundary.json: { "type" : "FeatureCollection", "crs" : { "type" : "name", "properties" : { "name" : "...
0
votes
0answers
21 views

Cannot load GeoJSON in OpenLayers 4.6.5

Using just a simple test case, I cannot load GeoJSON into OpenLayers. I've used a base case, with a simple polygon and yet cannot load it. If anyone has any ideas please let me know. I have created ...
1
vote
0answers
27 views

Create shapefile with images as attributes using JavaScript

I want to make a feature in a react.js web application where I can export/download shapefiles from the dashboard. I have implemented shp-write which takes a GeoJSON input. It is working fine with ...
1
vote
1answer
51 views

Transforming GeoJSON data to turf.polygon?

I want to transform GeoJSON multipolygon to turf.polygon for find point within polygon but it can't read property from GeoJSON. Is there any way to do that? This is my polygon data in GeoJSON: ...
2
votes
1answer
118 views

Largest polygon inside a GeoJSON multipolygon

How to find the largest polygon in GeoJSON of type multipolygon so that I can add a Leaflet tooltip to the largest polygon rather then a random polygon in multipolygon? I have a Multipolygon and when ...
0
votes
0answers
20 views

Leaflet map - legend with custom icons

Continuing the query: Leaflet GeoJSON legend with custom icons I am struggling with the implementation of the custom icon to the legend. I found an another example also here: http://www....
0
votes
0answers
23 views

Nest a dictionary in JSON with Python for GeoJSON properties

Using the Python GeoJSON library I am creating a feature collection of MultiPolygons. I cannot find a way to include properties (attributes) in the features. I have tried: features = df.apply( ...
2
votes
0answers
25 views

JSON file fails to open

I have a file that has no extension. This file resides on an internal web server and it's called by a web map application based on django python. It looks like : > {"crs": {"properties": {"name": ...
1
vote
0answers
22 views

Convert ODK geo_shape to geojson

I've collected polygon data using ODK's geo_shape. I'm trying to convert it to a geojson for use in QGIS. I'm using python 3, pandas and geojson to do this. The geo_shape output from ODK looks like ...
0
votes
0answers
17 views

Choosing correct GeoJSON from several available polygons from OSM city relation ID

For our MultipliCity tool, I'm adding outlines of cities as system boundaries. I get the city outlines by taking the relation ID from openstreetmap and use the great "Convert Open Street Map relation ...
2
votes
1answer
35 views

Parsing GeoJSON in Python?

I want to try and split a GeoJSON FeatureCollection into the individual features. So that the name of the file I write to is the "ED_ID" field. So far I can only read the JSON. I am new to python and ...
0
votes
0answers
12 views

How to convert shapefile into Google Maps-compatible GeoJSON? [duplicate]

I have a shapefile whose Coordinate Reference System's NAD_1983_CORS96_StatePlane_ Florida_East_FIPS_0901_Ft_US/ESRI:103257. How do I convert this shapefile into a .geojson file that can be read onto ...
0
votes
2answers
77 views

Leaflet - select markers within the radius given with details provided

I know the tool in Leaflet, provided by this link: http://www.gistechsolutions.com/leaflet/DEMO/Select/SelectPoints3.html which enables me to select a markers within 150mi distance. This is fine, ...
1
vote
1answer
23 views

OpenLayers: projection of WMS and vector layers

I have two layers in my OpenLayers map, the background in WMS and GeoJSON features in a vector layer, both in ESPG:3006. (And a standard OpenStreetMap background just to see which one of the layers ...
0
votes
1answer
34 views

Overpass API returns points instead of polygons

I'm able to retrieve geojson using the following call to the Overpass API for boroughs in London: import overpass api = overpass.API() response = api.get('relation(1811626);>;out;') However the ...
0
votes
0answers
47 views

Implementing “conformal mapping” in OpenLayers?

I want to preserve shape of objects, so how do I implement "conformal mapping" in openlayers 4.6.5? My current objects: I have several geoJSON objects (WGS84) around the globe in long/lat with a ...
0
votes
1answer
36 views

3D Multipatch feature class to 3D GeoJSON in ArcGIS Pro?

I have generated some building blocks in CityEngine and exported them as "Multipatch feature class" in GeoDataBase, then I imported them into ArcGIS Pro and tried to convert them into 3D GeoJSON ...
1
vote
1answer
117 views

Angular - How to visualize GeoJSON on Google Maps

I am using @agm/core for visualization GeoJSON on Google Maps. But I can't display my buildings on Google Maps. I think the problem is the geometry that is represented as multiple аrrays. I used FME ...
1
vote
1answer
30 views

Transforming a GeoPackage table's geometry column into GeoJSON?

I have a GeoPackage that is downloaded to client devices for a mobile app. I need the clients to query the GeoPackage to retrieve a GeoJSON representation of the geom column. I'm familiar with ...
0
votes
0answers
26 views

Leaflet: Unable to filter GeoJSON beyond the `properties` element level

I have the following code which displays a Layer in my Leaflet map from some remote GeoJSON: // Create Layer: Airspace var featuresUTMAirspace= L.geoJson(dataGuardianUTM, { filter: FuncAirspace, ...