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

learn more… | top users | synonyms

0
votes
0answers
32 views

Filtering GeoJSON data to include in Google Maps

I am trying to filter through my geojson polygons and get all data entries with a specific attribute. I have a layer of polygons describing lakes around the cities lakes.geojson. I want the user to ...
1
vote
0answers
56 views

Merging features by admin or sovereingt

I followed Mike Bostock's 'Let's Make a Map' tutorial to make a GeoJSON map of the EU starting from a 1:10M cultural admin0 shapefile from Natural Earth. The problem that I'm facing if that some of ...
0
votes
1answer
162 views

Text Label GeoJSON Markers Google Maps API

I am trying to create a Text Label, for each of the markers created from my GeoJSON with the following code... function init() { var mapCanvas = document.getElementById('myMap'); var map; var image = ...
1
vote
3answers
44 views

Is it possible to limit the records retrieved from a GeoJSON file?

Is it possible to limit the records retrieved from a GeoJSON file? I have a data file in GeoJSON format that my Leaflet page loads from a local text file and displays as a series of markers But it's ...
0
votes
0answers
9 views

Find all states (polygons) through which a route (polyline) passes

Used GADM to find GeoJSON polygons for the states of India. Now, given a google route between two cities, I need to find all the states the route passes through. Any suggestions on how to proceed? ...
2
votes
0answers
43 views

Why does my GeoJSON have no coordinates when saving from Shapefile in QGIS?

I've got a shapefile (.shp, .shx, .dbf, and .prj) that I'm trying to save as a GeoJSON using QGIS 2.14. When I load the .shp into QGIS, everything seems to work fine, the Shapefile renders properly. ...
0
votes
2answers
24 views

Leaflet: Change displayed column on click

I have a GeoJSON layer in a Leaflet map showing buildings. The columns of the buildings layer contain electricity usage info by date (eg., the column 12052015 contains electricity usage on Dec 5, 2015)...
1
vote
0answers
22 views

Load a GeoJSON layer with mixed geometries via QGIS's Python module

I have been able to connect my collection in MongoDB , write and store the collection to as .json file and load the GeoJSON file as a layer by QGIS's Python module unless there are mixed geometries. ...
0
votes
0answers
19 views

Displaying data from GeoJson over a city

Im tring to display a polygon over a city using GeoJson, i valided the file using http://www.mapshaper.org/ and the polygon displays just fine, but when i try to display this layer over OSM layer i ...
0
votes
1answer
28 views

how to add image links in Geo json object toget the images in pop up using openlayers 3

presently Iam working On Openlayers 3. I have added a geojson file to my map. when i click on a geojson feature iam getting a pop up which is displaying geometry and co ordinate values.i want to ...
0
votes
1answer
20 views

Loading a stateGeoJSON across countries

I am trying to build a chloropleth map in Javascript with zoom functionality. Map will need to have a chloropleth layer of all countries. On zooming in it will need to show a chloropleth of the next ...
1
vote
1answer
31 views

JSON Error? - Unfolding library - Bug or something else?

While trying to make use of GeoJSONReader from the Unfolding Library, while compiling I got the following error: A JSONObject text must begin with '{' JSON Error: Expected a ':' after a key org.json....
0
votes
0answers
29 views

Markers display with leaflet and javascript

I have a problem displaying data relating to schools on a div 'info' when click the marker with leaflet and javascript: here's the error: Uncaught TypeError: layer.setStyle is not a function
1
vote
1answer
53 views

How can I use mapbox gl js offline?

Im just wanting to understand my options for producing an offline map using Mapbox gl js. I have investigated several option with little signs of progress. First, I have tried using Studio by ...
2
votes
1answer
38 views

Invalid Geojson when drawing multipolyline on the map

I try to display multi line in the map but it return "Error: Invalid GeoJSON object" Here is my code $.ajax({ type: "POST", url: "server/drawPipe.php", ...
1
vote
0answers
38 views

Export features to pdf using JSPDF and Openlayers 3?

I built a map with different type of data, WMS layer, Vector Layers ( features extracted them from GeoJson file). Used Technologies : - Openlayers 3 - JSPDF How can i export just the selected ...
0
votes
0answers
41 views

how to delete vector layer on button click in openlayers 3

Here i'm trying to remove the vector layer when i click on delete button , but somewhere its not working its only hiding the feature not deleting it . Because when i'm calling it start overlapping all ...
0
votes
1answer
45 views

Transform data type EWKT and GeoJSON to SRID 900913 [duplicate]

Is posible transform data type EWKT with SRID 0 for example: MULTIPOLYGON(((295098.566494 6006717.0377012,344018.26458971 6009163.022606,329342.355161 5972473.2490342,295098.566494 6006717.0377012))) ...
0
votes
1answer
28 views

OpenLayers GeoJSON File

I am trying to add a GeoJSON file to my OpenLayers application and I am getting a cross origin request error. My main question is can a GeoJSON be stored locally (within a folder on my C drive) and ...
0
votes
1answer
15 views

Pop up for features inside a GeoJson File

I uploaded a GeoJson file into GMaps API that has many polygon features in it, and now I'd like to create a pop up for each polygon. The content will be obtained from the attribute table of the ...
1
vote
2answers
36 views

Can a geojson multigeometry contain a multipoint among other geometries?

Can a Geojson MultiGeometry contain a Multipoint array of points, or is it necessary to convert them into individual Points before adding to the geometry collection? This related question suggests it ...
2
votes
1answer
55 views

Getting polygons out of multi-polygon GeoJSON files?

I am a farmer and very new to GIS. I am trying to load shapefiles or KML files to an online site/service called FarmLogs.com. Once my "fields" are uploaded the site can tell me the amount of ...
0
votes
0answers
21 views

Convert shapefiles with ajax call to ogre

I am trying to use OGRE online converter to convert shapefiles to different format, referring https://ogre.adc4gis.com/ I am making an AJAX call to send the file and get the response, but the response ...
0
votes
1answer
30 views

lwgeom_to_geojson: 'PolyhedralSurface' geometry type not supported

I am using PostGIS (PostGIS 2.2.0 with SFCGAL extension) and I have data in postgres which is loaded using citygml2psql tool and it contains polyhedralSurface geometry. But when i run query : ...
1
vote
0answers
40 views

hide and show a feature from group feature with checkbox in leaflet

To begin I will explain the code, I have a checkbox generated after loading the web page by the next code var CPID = new L.GeoJSON(false, { onEachFeature: function (feature, my_Layer) {...
0
votes
0answers
26 views

How to get online the coordinates of result when search a region in Google Maps

I want to get online or by an API the coordinates of a polyline with the following format: { "type": "LineString", "coordinates": [ [-78.658805,-4.227355], [-78.659856,-4.228254], [-78....
1
vote
0answers
34 views

How to get all pixel values of raster within a GeoJSON FeatureCollection in PostGIS

I need to extract all pixel values in a raster within a GeoJSON mask, using ST_Intersects. Attempt (throws invalid GeoJson representation): select row_to_json(t) from (select * from table_name where ...
0
votes
1answer
38 views

Fiona does not specify CRS

I try to write a geoJSON from a shp with the fiona package. Works, but fiona does not include the CRS information. with fiona.open(path) as shp: takeCRS = shp.crs takeSCHEMA = shp.schema ...
2
votes
1answer
46 views

What is the difference between using a PolyLine layer and a GeoJSON layer in leaflet?

This question arises because on my project I will have a backend that consists of gpx tracks. Then, my frontend queries it (based on time, location filters, etc.) and I will either get the ...
1
vote
1answer
82 views

Leaflet : filter with condition

I want to insert a condition in a geojson filter. This condition is based in a variable called here varState: <button id='button1'>button1</button> <button id='button2'>button2</...
17
votes
2answers
212 views

Best-practices for databases and APIs with geographic data spanning the antimeridian

What is the best-practice for storing geographic features (lines, polygons and their multipart equivalents) when these features span the antimeridian (±180° longitude), and need to be sent to and ...
2
votes
0answers
29 views

Openlayers 3 different projection Geojson view

My map projection is EPSG:3857. And I want to show a GeoJSON data which has EPSG:4326 projection. var source = new ol.source.Vector({ url: 'http://localhost:15485/api/...
1
vote
0answers
45 views

Why reprojection GeoJSON with new.ol.View - not working?

I try to reproject GeoJSon file in OpenLayers 3 from : Geojson link With these JS in head : <script src="js/jquery-2.2.3.min.js" type="text/javascript"></script> <link rel="...
2
votes
1answer
88 views

Highlight feature below mouse-overed track in Leaflet

Currently, on http://velo300.free.fr/debug, feature highlights on 'featureOver' creating a white new feature on top of mouse-overed feature. Problem: i need also to work with 'featureclick' for ...
0
votes
0answers
33 views

change image of marker in leaflet

This is the code; it works very well //**************************************WFS****************************************************// //**************************************Conteneurs*************...
1
vote
1answer
62 views

Leaflet display only clicked element of a loaded map layer (polyline)

I am creating a web mapping application that will return appropriate routes based upon ST_length query on a cartoDB dataset. So far, the code below successfully maps those routes with individual ...
2
votes
0answers
91 views

Leaflet filter on geoJson properties : multiple criteria

I'm using Leaflet filter on geoJson data. I'm able to apply it with a simple criteria : filter: function(feature, layer) { return feature.properties.field1 == "yes"; } I can also apply two ...
0
votes
0answers
25 views

ordering overlays in layerControl

I have an application that adds GeoJSON to a map at various times. When the map loads I add a number of administrative boundaries. However, the user is able to query a database to get lat-longs that I ...
0
votes
1answer
88 views

How to call the geojson dynamically according to area selection in openlayer 3

I'm trying to get geojson according to the selection of a particular area. For example, if I have selected a built up area it will only show that area . I'm calling geojson data through php page, and ...
3
votes
2answers
85 views

Ogr2ogr is rounding numeric field from PostgreSQL to 6 decimals

I am using ogr2ogr to convert the data from PostgreSQL to GeoJSON. PostgreSQL contains field named shape.area, type numeric, which stores values up to 17 decimal places, like 0.15627328781960101. The ...
1
vote
0answers
48 views

Getting started with GeoJSON using Python [closed]

I am a GIS analyst who knows ArcGIS and Python pretty well and have used QGIS. I am attempting to learn about GeoJSON and web-mapping. I am looking for suggestions on tutorials explaining GeoJSON, and ...
2
votes
1answer
22 views

Convert resolution of geojson file from 1:10 to 1:110

After searching a while I finally found a geojson file of the continents. But it is large file (even gzipped) and I do not need the high resolution (1:10). Can I somehow convert it smaller resolution (...
1
vote
2answers
123 views

GML to GeoJSON JavaScript parser

Is there a JavaScript parser to obtain GeoJSON from GML? I have found only Python and OGR solutions.
4
votes
4answers
371 views

Transform GeoJSON geometry to WKB

I need transform geometry from JSON like: {"type":"MultiPolygon","coordinates":[[[[-125045.48351212002,4577567.588141698],[-124816.19981552364,4577552.93014355],[-124765.99472517562,4577419.175847012]...
0
votes
0answers
33 views

How to get feature's non-spatial attributes from GeoJSON file in OpenLayers 3?

I'm working on a webmap using OpenLayers 3 and GeoJSON vector layer. I've managed to render the layers on the map properly. My GeoJSON file looks like the following: { "type": "FeatureCollection"...
0
votes
1answer
35 views

Is there anyway to combine a static geojson and data from database then display it in leaflet?

I do have a web map application that can load geojson then display it on leaflet map, however I encountered unresponsive script whenever I refresh my page due to big size of geojson. Is there anyway ...
1
vote
1answer
57 views

PostGIS - syntax error inserting GeoJSON

I am trying to insert a GeoJSON into PostGIS, but I am encountering a syntax error. I can't seem to see where the problem is - I'm sure it is an easy issue to resolve, but my inexperienced eyes can't ...
1
vote
1answer
71 views

Representing json data on a map with GeoTools (Java)

I'm working on a Web Map Service in Java. Practically this WMS allows me to represent the map of open data type (shp, kml and gml). I'm going to start working even with data in json format, and for ...
3
votes
1answer
90 views

MongoDB Error Code 16755 - Can't extract geo keys for duplicate vertices and edge crossing

When I try to create an index on geometry db.polygons.createIndex({"geometry":"2dsphere"}), it stops at a certain polygon with the error code 16755. It says it Can't extract geo keys and then either ...
1
vote
0answers
46 views

Is spat the correct flag to use in my ogr2ogr command?

I have an ogr2ogr command that I'm using to convert part of a Postgres database to a Geojson. I ingested all of Canada in my database and to start, I want to grab all of the buildings in the Toronto ...