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

learn more… | top users | synonyms

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
9 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 ...
2
votes
1answer
36 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
38 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 ...
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
25 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....
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 ...
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
33 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 ...
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
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 ...
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) ...
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, ...
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
35 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 ...
3
votes
1answer
43 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 ...
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 ...
0
votes
1answer
23 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
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
31 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 ...
0
votes
0answers
34 views

GeoJson Vector layer in QGIS from a WFS service

It is possible to specify the outputFormat=geojson for a qgis wfs layer? By default, when I add a wfs layer in QGis, is downloaded from geoserver as GML. If I create the layer as: uri = "http://...
1
vote
1answer
25 views

Using arcpy AsShape on GeoJSON file?

I'm new to working with GeoJSON and have been reviewing the ArcGIS page for AsShape, but the examples seem a little thin. I'm currently pulling a WFS from a GeoServer instance in GeoJSON format. I ...
0
votes
0answers
29 views

How to download GeoJSON file from Overpass Turbo

I've currently set a query using Overpass Turbo, in order to download data from Openstreetmaps. When I click Export, and then save as GeoJSON, all I get is a new browser tab with the code data. How ...
3
votes
1answer
49 views

ogr2ogr: Convert geojson to shapefile - additional features?

I have a geojson-file (geojsonfile.geojson) with points, lines and polygons. I would like to convert the geojson-file to 3 shapefiles (points, lines and polygons) and keep all the attributes. ...
0
votes
1answer
32 views

Convert encoded polylines into geojson and kml files?

There are plenty of resources available online to help users encode polylines. I am looking for something that does the opposite but my extensive research yields minimal results. I have a massive set ...
2
votes
1answer
57 views

Can the JSON output for an ArcGIS Rest Server be opened in a similar way to a WFSServer?

I would like to construct a python script to obtain JSON vector data from the following ArcGIS Rest Server: http://maps.six.nsw.gov.au/arcgis/rest/services/sixmaps/LPIMap/MapServer/69 For a ...
3
votes
2answers
172 views

Generating an image representing inland surface water using QGis and OSM data

I'm trying to generate a raster image representing surface water for a given bounding box. I'm using OpenStreetMaps data as my input for water bodies, and I'm using QGis on Ubuntu to process this data....
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 ...
1
vote
0answers
30 views

GeoJSON path using d3

I've been trying to make an animated path using d3, JSON, and a list of coordinates. This is the result in JSFiddle: http://jsfiddle.net/5m35J/92/ As you can see, there is a red dot in the corner, ...
0
votes
0answers
15 views

Publishing ArcGIS map/.mxd to a WMS - HOW TO? [duplicate]

I'm looking to publish .mxd data/view out to a WMS then to apache, etc. I do NOT have ArcGIS server, and there are tidbits of MapServer and Geoserver on my servers from the previous employee that ...
0
votes
1answer
37 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 ...
2
votes
0answers
13 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
24 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....
1
vote
1answer
16 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
49 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 ...
1
vote
1answer
40 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 ...
0
votes
1answer
84 views

Clipping GeoTIFF file by GeoJSON?

Input GeoJSON file: { "type": "Feature", "properties": { "id": 1 }, "geometry": { "type": "Multipolygon", "coordinates": [[[ [27.397511483867362, 44.161117466010516], [...
0
votes
0answers
24 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
31 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 ...
2
votes
2answers
93 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 ...
1
vote
2answers
53 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 ...
0
votes
0answers
50 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,...
3
votes
0answers
34 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 ...
5
votes
2answers
76 views

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'...
3
votes
0answers
75 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 ...
5
votes
2answers
190 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 ...
3
votes
1answer
82 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 ...
3
votes
1answer
43 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 ...