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

learn more… | top users | synonyms

2
votes
2answers
171 views

Simplify GeoJSON by retaining external boundaries (clustering)

I created a website (http://www.cartescolaire.paris) that basically loads a GeoJSON and displays it on a map using Leaflet. This geoJSON is pretty large (over 2 Mb), the loading time can be very long ...
0
votes
0answers
13 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
1answer
464 views

Plotting GeoJSON data on map using ArcGIS API for JavaScript?

We are developing the portal in which we are using Arcgis javascript APIs.The requirement in our project is one of the weather provider is going to publish the webservice which will return the weather ...
1
vote
0answers
8 views

Converting Geo-normalized SVG data to geojson

I'm working on a project for which our team geonormalized some TIFF files with MapWarper, then used photoshop to vectorize only the buildings within the images. We now have svg data for which we know ...
1
vote
1answer
17 views

How to Add a single feature ( features[0] ) from Geojson ( without jquery )

var features = new ol.format.GeoJSON().readFeatures(geojsonObject,{featureProjection:'EPSG:4326'}); console.log("I_got_features[0]_as_<point>_:"+features[0].getGeometry().getType()); console....
0
votes
2answers
325 views

allow client to upload Layers to Openlayers 3

I want to allow the clients to add vector layers in form of a geojson to openlayers 3. It should look like in this fiddle . I know how to add multiple layers but I want the client to be able to add a ...
1
vote
0answers
9 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
34 views

Write GeoJSON As Feature Object in Postgis

I'm trying to create a geofence/circle from a lat/long set and I'm close except that the GeoJSON that PostGIS creates differs in structure from the client library that our front-end uses. Here is my ...
4
votes
0answers
27 views
+50

Error when creating spatial index in MongoDB

I am wanting to use MongoDB for some basic spatial calculations (on some fairly large data), but I get an error when trying to create an index on the US Counties shapefile retrieved from the US Census'...
4
votes
2answers
4k views

How do I set the fillcolor of polygons in Leaflet.js dynamically?

I'm using the interactive chloropath example for leaflet.js I figured out how to make each of my polygons add a running tally of values to the bottom of the page after each polygon is clicked. Upon ...
0
votes
1answer
63 views

Clipping GeoTIFF file by GeoJSON?

Input GeoJSON file: { "type": "Feature", "properties": { "id": 1 }, "geometry": { "type": "Multipolygon", "coordinates": [[[ [27.397511483867362, 44.161117466010516], [...
5
votes
2answers
141 views

Loading GeoJSON into QGIS

I am a beginner with QGIS. I am trying to learn it through lynda.com. I have tried downloading the nanaimo crime map in GeoJSON format, but I get a message saying that the data source is invalid. I ...
1
vote
2answers
33 views

Issue in loading external geojson file into leaflet map?

I want to load an external geojson file into leaflet map. I created a global variable (i.e. tracts) for json file and referenced this variable in the script file. But i receive an error message that ...
1
vote
1answer
34 views

How to insert new data points into CartoDB map?

I'm using NASA api data to populate my database in CartoDB's website to load places where meteorites have fallen. In JavaScript I'm currently creating a specific collection of meteorites I want to ...
3
votes
1answer
343 views

geopandas: can't save geojson

My task is to upload geojson, add data from corresponding csv, drop some columns, then save it back to geojson. However, after I did everything, added csv data (gj.join(df) ), etc, I can't save it ...
1
vote
1answer
293 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 ...
6
votes
2answers
1k 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?
2
votes
1answer
43 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 ...
3
votes
1answer
68 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 ...
1
vote
1answer
55 views

GDAL python cut geotiff image with geojson file

I wrote the function which cutting geotiff image by bounding box. First image is original. At second you can see result off my code. I don't use gdalwarp or any console utilities. But I have no idea ...
0
votes
0answers
13 views

Mapbox JS get geojson and echo to a div

I have a mysql table with geo data (id, lat, lon, speed, ...). I am using this php to parse to geojson (json.php in my case): <?php header('Content-type: text/plain'); $username = "[user]"; $...
1
vote
1answer
22 views

Where to get world-wide detailed administrative boundaries?

I'm looking to build a world map that plots all application users and their locations around the world. The initial zoomed out world view would show total numbers clustered by country, then when you ...
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 ...
0
votes
1answer
50 views

Getting uploaded shapefile into geometry field on PostGIS table?

I am working with a PHP web application where we have a user submitting a ShapeFile. I am able to convert that ShapeFile then to a format of geojson. What I am wondering now is how I can best ...
0
votes
0answers
26 views

Creating Google Maps Polygon from Data Object Using getFeatureById

First post here, so forgive me if I put a few things in the wrong place. I am trying to do a Google Maps search for places inside an arbitrary region loaded into a Data object loaded via GeoJSON file,...
4
votes
2answers
1k views

Offline Phonegap/Openlayers App

I have a mobile app that uses Phonegap with OpenLayers and Geoserver. Now, I need to make the app available completely offline. The amount of data points can get very large depending on what client is ...
3
votes
0answers
26 views

CartoDB.js/Leaflet map - how can I click between multipolygons cleanly?

Here's my map: https://jsfiddle.net/Sidders/4exf969e/3/ I want to apply a click and hover effect to the polygons. So a polygon/multipolygon highlights on hover, and is selected with one click. The ...
3
votes
1answer
41 views

Sync GeoJson to cartoDB?

Is there a way to sync GeoJSON files to my cartoDB table? If this is not yet supported, what would be the best way of implementing this feature (syncing the data frequently with the existing cartoDB ...
3
votes
0answers
71 views

Using ogr2ogr in python?

I found this helpful post that got me started using ogr2ogr in python: Using ogr2ogr to convert GML to shapefile in Python? as well as this one: How to convert ArcGIS Server JSON to GeoJSON? I am ...
0
votes
2answers
564 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/ ...
1
vote
1answer
389 views

OpenLayers 3 GeoJSON not loading

I am having trouble loading a GeoJSON layer (below is my defintion). Everything works fine when I read the file locally in a web browser, e.g. file:///Z:/inetpub/wwwroot/bang.html. However, when I try ...
0
votes
2answers
125 views

Problem loading GeoJSON file on geojson.io

I am newbie in GeoJSON file. I am having difficulty to load my GeoJSON file on geojson.io. Here is my GeoJSON file : https://gist.github.com/anonymous/0abb8f926977d577b52d. The source file is from : ...
3
votes
0answers
23 views

QGIS: Edit attribute values of GeoJSON file: toggle editing greyed out [duplicate]

I'm trying to edit the values of attributes in QGIS, but it does not work. I tried to google an answer, but couldn't find anything so far. This is what I'm doing: Open QGIS. Drag in a GeoJSON file. ...
2
votes
1answer
76 views

Cannot open this GeoJSON in QGIS 2.10

I have this home made GeoJSON: {"type": "FeatureCollection", "features": [{"geometry": {"type": "MultiPolygon", "coordinates": [[[[2.28313, 48.84024], [2.28297, 48.84011], [2.28282, 48.83993], [2....
2
votes
2answers
638 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
396 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
1answer
208 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
217 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":[ ...
0
votes
1answer
722 views

Read GeoJSON with openlayers

I generated a GeoJSON from a table in EPSG:WGS84 in postgis SELECT ST_AsGeoJSON(geom) FROM "onibus" I put this file into the www folder on my server. I'm running geoserver locally. My pages are ...
1
vote
1answer
151 views

Using GEOJSON offline in QGIS

I have some GEOJSON-Layers in my QGIS-project. The problem is, that when I zoom in or out, it takes very long to built up the window again. That's because it always loads it from the server. But I don'...
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
428 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....
0
votes
1answer
211 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 ...
0
votes
0answers
15 views

Esri Shapefile to KML with gdal resulting in “too_big” in altitude value

I'm needing to automate the conversion of .shp files into something more user-friendly like GeoJSON and KML. The conversion to GeoJSON seems to work okay with this command: ogr2ogr -f GeoJSON -t_srs ...
1
vote
2answers
86 views

GML to GeoJSON JavaScript parser

Is there a JavaScript parser to obtain GeoJSON from GML? I have found only Python and OGR solutions.
1
vote
1answer
26 views

Is there a way to export and import again all Map at once?

I have a OpenLayer3 map with some arbitrary layers I can choose at runtime. Layers may come from external WMS services or internal PostgreSQL GIS tables or even from drawn features. Now, I need a way ...
1
vote
2answers
589 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 ...
0
votes
1answer
283 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 ...
1
vote
1answer
238 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 ...
1
vote
2answers
88 views

How to store a vector layer as a geojson file in openlayers 3?

I have some vector layers that I import from geojson files and run some search on them, I want to display only the results of the search as a vector layer. I am using a jquery form to search, and I ...