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

learn more… | top users | synonyms

6
votes
3answers
2k views

How can we generate GeoJSON from SQL data with latlong

Is there any way we can create GeoJSON from SQL server table with Latitude & Longitude Data?
1
vote
1answer
1k views

How do I add elevation data to a GeoJSON line from a GPX file?

I understand that elevation can be added as an optional third value in Coordinates (lat, long, elev) in a geojson file, but I can't find a way to actually do that from a gpx file. I've used ogr2ogr to ...
1
vote
1answer
19 views

Make the Marker Appear For each Point

How can I make marker Icon appear for each point. I added the geoJSON with 65 points and have all been validated. However the icons appeared as a broken png. I proceeded to add a png I called in an ...
2
votes
2answers
655 views

Printing possible for openlayers GeoJson WFS with Mapfish printing service and wkhtmltopdf?

I searched lots of places but I couldn't find proper examples or documentation to do printing using Mapfish Printing service or Wkhtmltopdf. My application has a few WFS layers from openlayers and ...
2
votes
1answer
49 views

Problems with calling GeoJson properties in OpenLayers3 (v3.1.1.)

I have a problem, property from GeoJson is not recognizable by OpenLayers3. Debbuger says: Uncaught ReferenceError: feature is not defined on line futher below in OpenLayers3 code: var icon = ...
1
vote
1answer
17 views

Access geojson property of a layer in a featuregroup in Mapbox

I have a GEOJSON which I added to the featuregroup in my Mapbox map like this: var featureCollection = { "type": "FeatureCollection", "features": [{ "type": "Feature", "properties": { ...
0
votes
1answer
38 views

Mapbox Error: Style is not done loading

I'm trying to draw on a mapbox map, based on suncalc results and using geojson. First I tried to create 2 functions, one to each line I was trying to draw. But when I did that, it would only display ...
0
votes
1answer
3 views

How to view what properties exist in a GeoJSON file loaded into MapShaper?

Suppose I have a large GeoJSON file loaded into Mapshaper. I want to convert a property to use as an ID field on export, but I don't know what the property naming schema is. The file is too large to ...
1
vote
1answer
302 views

Geoserver 2.5.2 upgrade - now GeoJSON and GML WFS not working

I've recently migrated Geoserver from a Geoserver 2.1 to a clean install of Geoserver 2.5 and copied across my data files. However, I'm not finding that clicking Layer Preview, going to the All ...
1
vote
1answer
13 views

Get features of external geojson file

I'm loading an external geojson file with the next code: var sourceTour2016 = new ol.source.Vector({ url: 'tourdefrance_2016.geojson', format: new ol.format.GeoJSON() }); var ...
0
votes
1answer
207 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
1answer
39 views

Uncaught TypeError: d.Wa is not a function

I am trying to add a feature collection fetched from a server to the source of an empty vector layer, but I am getting this error (using OpenLayers 3): Uncaught TypeError: d.Wa is not a function I ...
2
votes
3answers
124 views

Leaflet/HTML/GeoJSON: How to put a pop-up on a geoJSON point?

I don't have much knowledge of HTML/JS/GeoJSON, and have made a webmap from trial and error with many different tutorials. I have tried leaflet's tutorials but cannot get the desired results. I have ...
1
vote
1answer
22 views

How to identify the co-ordinate system (CRS, SRS) of a GeoJSON file?

Suppose you have an arbitrary GeoJSON file, and the publisher didn't give much supporting documentation - or perhaps it's been provided by a third party who don't know much about it. Is there a ...
1
vote
1answer
223 views

Parsing large GeoJson geometry to WKT

I'm reading a very large json file as an InputStream in Android with JsonReader. This json has a geometry object like so.. "geometry":{ "type":"MultiPolygon", "coordinates":[ ...
1
vote
1answer
26 views

How to convert a string of coordinates to a readable polyline for export as a geojson

I need to take an xls file which has multiple columns of data, and a column called coordinates which is a string of coordinates (ex. 147.775364306,-20.49918551,0 147.776402476,-20.500021717,0 147....
2
votes
2answers
369 views

How to get Geography data to GeoJSON in PostgreSQL?

I am using PostgreSQL database and there is a field in a table(area), i.e., public.geography(Points,4326). It contains below type of records "0101000020E6100000BA83D89942334540780B24287ED051C0" I ...
0
votes
3answers
704 views

Reading in local GeoJSON file for OpenLayers

I am kinda new to OpenLayers and not (yet) very experienced in JavaScript. I have a WordPress blog and I want to replicate and adjust the following script to my needs: http://jsfiddle.net/eqsrnjos/1/ ...
10
votes
5answers
4k views

GeoJSON too bulky - what to do?

I am using leaflet.js to allow web users to select a region. Valid regions are US states, Canadian providences, and world countries (except for US and Canada). I constructed a shapefile myself using ...
1
vote
0answers
32 views

Seeking data for residential maps (buildings, roads, etc.)?

I am developing an application which requires heavy styling of maps (at a street level, zoom 16 would be ideal), so I'd like to simply take in the map data and draw the polygons myself. However, the ...
1
vote
0answers
22 views

Can I use georeferenced jpeg raster as map layer in GeoJSON.io?

Can I use georeferenced .jpeg raster as map layer in GeoJSON.io? I thought that I could, but it doesn't work. I converted .tif raster visualization of LiDAR data to georeferenced jpeg. After this, I ...
1
vote
2answers
279 views

Leaflet and census block data: not displaying

I am new to leaflet and am trying to load a geojson file showing census blocks and associated information for a city in CA. It is a small city and not too many census blocks. I cannot get the popup ...
2
votes
1answer
406 views

Using Extjs 5 & OpenLayers 3

To consume geojson data from a REST HAL CORS webservice, in client side i'm using ExtJs 5, but to map data having geometries i'm stuck between choosing geoExt2 which has a branch based on extjs5 and ...
0
votes
0answers
28 views

Add user inputted markers to leaflet from mongodb

I want to allow users to input geojson points via a form then be able to get the points using an ajax call to display them on a leaflet map. I think I am messing up the ajax call which gets the data ...
0
votes
1answer
35 views

Passing values for a geojson filter in Leaflet

I have a situation where I have a geojson layer in leaflet and I want to create a subset of this layer as a separate geojson to highlight specific features. What I am doing right now is passing in ...
4
votes
3answers
997 views

Looking for a GeoJSON describing the french departments

Is there any place where I could find a GeoJSON describing the borders of the French departments, or do I have to convert a shapefile?
8
votes
4answers
5k views

Convert Sql Server Spatial data to GeoJSON & plot on map

I have a sql server table with Geo spatial data. An example of row would be (with Column names): type: streetline code: 231001 geog: 0xE6100000011 ........ Centroid 0xE61000000C....... geom: ...
0
votes
1answer
18 views

kde.points SpatialPixelsDataFrame to geojson

I have a multiple projected spatialpixelsdataframes produced from kde.points() and would like to use it in a leaflet map. Basically the same as Brunsdon example with the New Haven crime data, except ...
0
votes
1answer
216 views

OpenLayers not displaying GeoJSON layer with features added after the fact

I have a vector layer with a GeoJSON source layer. OpenLayers isn't showing the layer when I try to add features using the addFeatures method: myGeoJSONObject = { /* some GeoJSON */ }; editLayer =...
1
vote
1answer
261 views

Openlayers 3.5.0: Problems with GeoJSON in IE11

I seem to have a problem with loading a geojson-file as source for a layer in IE11 using openlayers 3.5.0. IE11 throws an error without any description. The problem seems to occur when the geojson is ...
0
votes
1answer
231 views

Leaflet GeoJSON style function feature only colors one GeoJSON feature

I need to style every feature differently that I pull from a GeoJSON file. However this anonymous style function only changes the style on the first feature it comes across and stops. I am new to ...
1
vote
1answer
22 views

Setting names for attributes in properties in json returned by postgresql

I am trying to make a webmapping app that uses on the server side node.js and postgresql(PostGIS). what I am doing is retrieving data from the Postgresql database using node.js and sending the result ...
0
votes
1answer
22 views

Copy features from one layer to another with ogr and python

I have two layers with the same feature definitions named lyr and lyr_add. These layers were populated from a JSON based mapserver. I would like to append all of the features from lyr_add to lyr, ...
2
votes
0answers
17 views

Serialize geometry to GeoJSON with ArcObjects

In the ArcObjects developer SDK, I found that the IExternalSerializerGdb2 interface of the JSONSerializerGdb class supports writing to GeoJSON. ArcGIS Developer Help (ESRI.ArcGIS.Geodatabase) ...
1
vote
1answer
594 views

Polygon intersection with bounding box with polygon's holes intact

I am trying to serve GeoJSON FeatureCollection tiles with each feature's geometries trimmed to the tile boundary. I am working on a Leaflet plugin to re-assemble the geometries. It works by building ...
6
votes
1answer
741 views

How to add an offset to a GeoJSON layer in Leaflet?

Using the example GeoJSON tutorial code at leafletjs.com. Change the myLines variable so that the two lines overlap, but run in opposite directions as follows: var myLines = [{ "type": "...
2
votes
1answer
447 views

Routing api help (MapBox or similar)

i have a geoJSON objects and i want to route between waypoints on my geoJSON file. this is my example geojson file. { "type":"FeatureCollection", "generator":"JOSM", "bbox":[ 23....
3
votes
1answer
44 views

Geoserver and “inverting” a multiPolygon to dim the rest of a map

I think it is time to re-design the result presentation of my reachability analyses (which are computed using multimodal isochrones). Right now I am just showing a multipolygon on a leaflet map that ...
1
vote
1answer
252 views

Is there any method to retrieve SQL queries into a GeoJSON file using JSP?

I want to display the contents of my PostGIS database of various shape-files in leaflet pop-up dynamically. I know there are static methods available that retrieves attributes. But I need to by ...
0
votes
2answers
22 views

OpenLayers : Draw shape from external geojson file

I am trying to draw a shape (airplane) from external geojson file. Said shape uses data from 2 object structures inside the geojson file. I can load both shapes separately, but I can't append/join ...
0
votes
1answer
39 views

Can't load geoJSON files in Leaflet layer control

First of all, I have to sorry about my English. May not be perfect. I have a problem with show my geojson files into layer control. I read every topic about that on this side, i have tried on a milion ...
0
votes
1answer
323 views

Convert Leaflet WMS layer to Leaflet GeoJSON layer

Using the Leaflet API I am adding a WMS layer through the L.tilelayer.WMS feature. This feature includes only a certain amount of options such as 'layers','crs','style' etc. Through the Leaflet ...
0
votes
2answers
44 views

Open source conversion of shapefile to ArcGIS Server JSON

Are there any open source command-line or python tools available to convert a shapefile (or other esri datasource) to ArcGIS Server JSON? I'd like something that emulates the ArcGIS Features to JSON ...
3
votes
1answer
84 views

Rotate geojson feature with Leaflet

I have a GeoJson feature that is rendered with leaflet and proj4(ESPG:31467). Now I want to rotate that feature so that it NW corner points to NE, e.g. 90 deg rotation. Is there a way to do this? Or ...
0
votes
1answer
28 views

Cartodb - How to insert geojson data to table using SQL api?

I am currently using leaflet.js to generate polygons and I would like to add them to my table in cartodb. I.e. a geojson object : { "type": "Feature", "properties": { "name": "wing1" }, "...
1
vote
0answers
9 views

Single Feature in a FeatureCollection?

Is it ok to respond with a single item inside a FeatureCollection or should I respond with a Feature object instead? I'm using FeatureCollection in a REST-like server, as index view (/things.geojson) ...
0
votes
1answer
39 views

Animated GEOJSON path invisible in Leaflet

i have been trying to animate a path over a leaflet map using the following example from Mike Bostock: http://bl.ocks.org/zross/6a31f4ef9e778d94c204 After i make my own json and put it into code, i ...
0
votes
0answers
29 views

ogr2ogr merge two GeoJSON to one GeoJSON

Is ogr2ogr capable of merging two GeoJSON files to a new one? It is possible to merge shapefiles to one GeoJSON using the VRT driver. But when trying to do the same using GeoJSON files ogr2ogr fails. ...
0
votes
2answers
32 views

Leaflet Sidebar - set content depending on clicked GeoJSON feature

My goal is to set the content of the sidebar depending on what GeoJSON feature was clicked on. For example when clicked on polygon A the content of the sidebar is: "This is A" and when clicked on ...
6
votes
2answers
240 views

Access GeoJSON from GitHub in Leaflet

I am new to JSON, GitHub, and Leaflet. But I am trying to create a simple application which will render my points which are in GeoJSON up on GitHub. From everything I have read this should work. ...