Tagged Questions

An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

1
vote
1answer
355 views

How to export a geojson file with correct order of coordinates?

I was testing rendering of data via GitHub in geojson format, because I wanted to use it for INSPIRE data. INSPIRE data are in GML 3.2.1 format. I've downloaded one of datasets from ...
1
vote
0answers
105 views

Possible to rollback from QGIS 2.0.1?

I'm running Ubuntu 12.04 LTS. Unfortunately Ubuntu has automatically upgraded my QGIS from 1.8 to 2.0.1. And 2.0.1 which creates GeoJSON files that OpenLayers cannot parse. Would be best for me to ...
2
votes
1answer
678 views

ogr2ogr specify lat/long order on conversion to GeoJSON

When using ogr2ogr to convert a polyon from a .shp file to GeoJSON, I noticed that it writes the coordinates in order lat, long. I noticed this because whenever I tried to view the GeoJSON on a map, ...
2
votes
2answers
230 views

animate polygons in series of kml/geojson/shp

I have a series of KML files (though they could easily be converted to geoJSON, SHP, or anything else that ogr2ogr can handle), each file containing a set of polygons that correspond to the alpha ...
1
vote
2answers
414 views

Import Error:No module named shapely.wkb

OpenERP GeoEngine I have installed OpenERP 6.1 version, works fine .,When i'm trying to add CamptoCamp GeoEngine Modules with OpenERP getting below find eror: Installation Prerequisites: OpenERP ...
1
vote
1answer
482 views

Converting geojson to wkt with OpenLayers

I was just wondering if there was a good way to convert GeoJson data to WKT data using OpenLayers. The method I've tried is to create a Feature.Vector with the GeoJson and then tried using ...
1
vote
1answer
99 views

simplilfy geojson file [duplicate]

I have a geojson file, but it's way too heavy for the app I need to develop I'd like to know what alternative do I have to make it lighter. I was thinking about simplifying it's shapes, and also ...
1
vote
2answers
119 views

Is it possible to export a GeoJSON with an array field from a joined layer?

I'm using QGIS to 1) load a shapefile, 2) join the shapefile data with a CSV-file and finally 3) exporting the layer as GeoJSON. Hence, I end up with something like this, where the properties object ...
1
vote
1answer
77 views

Fw tools using error

I am using Fw tools. And I am writting cmd screen: ogr2ogr -f \"GeoJSON\" -t_srs WGS84 D:\\electric_Data1\\direk.json D:\\electric_Data1\\ag_direk.TAB tried. And I have a error. error code: ...
4
votes
2answers
959 views

How to merge TopoJSON features?

I currently have a coordinate based map of the US and it's states for topojson (https://github.com/mbostock/topojson). The coordinates are a JSON array (as topojson works), data looks like this: ...
0
votes
0answers
151 views

saveStrategy and OpenLayers

I am trying to apply code mainly from here http://maps.peterrobins.co.uk/files/ol6.html and create a custom "saving button". Problem is, that my json is loaded (from mysql db) to variable. (This time ...
2
votes
2answers
279 views

Show different marker for cluster and icon for single vector features in OpenLayers

I have a vector layer which is geoJSON file containing school points and their attributes,to visualize this i defined cluster and show circle which size is based on the number of features it contains. ...
4
votes
1answer
530 views

Geotools: Efficiently writing a GeoJSON stream into a Shapefile

I've been trying a few solutions to efficiently convert GeoJSON into a shapefile without having to store all features in memory. I'm using GeoTools 9.2. The problem is not so much in how to stream ...
2
votes
1answer
175 views

How to control the order of appearance of markers using leaflet?

I'm plotting out markers from GeoJSON files onto my Leaflet map. Some of these markers overlap so now I want to control the order of appearance of these markers so that one type always sits above the ...
1
vote
1answer
175 views

projection error on Leaflet map

I am trying to add a converted shapefile (now a geojson) to a Leaflet basemap, using EPSG 26986, so I tried using proj4leaflet to reproject it. However, I keep getting an error message "phi2z has ...
11
votes
1answer
756 views

What is topojson and how is it different than geojson?

This is a conceptual question. What are the differences between these? and what are the pros and cons of these formats?
1
vote
1answer
268 views

How to write GML and GeoJSON features while retaining attributes in .NET?

I am developing a .NET project [C#] that needs to export/write features as GML and GeoJSON, including, of course, the attributes; data could queried by a database or manually entered. I checked ...
0
votes
1answer
166 views

OGR2OGR workaround for gpx-json conversion bug

ogr2ogr produces invalid GeoJSON when multiple layers are involved (http://trac.osgeo.org/gdal/ticket/3842). For example: ogr2ogr -f GeoJSON "$f.json" "$f" tracks routes For me the bad GeoJSON ...
1
vote
1answer
539 views

How to use ArcGIS 10.2 Features to JSON output in web maps?

Using the Features to JSON tool that is now available with 10.2, is there additional formatting that needs to be done to the files before they can be displayed as web maps?
6
votes
4answers
6k views

How to load external geojson file into leaflet map

I would like to load a geoJSON (polygon) file into my leaflet map. I have seen examples where geoJSON is embedded into the javascript code but I can't find any examples showing how it is done with an ...
0
votes
0answers
317 views

Continents geometry data / extracting contours of continents from country geometry

I have an ESRI Shapefile data from Natural Earth (Admin-0 Countries). I converted it to geoJSON format. There is no world or continents geometry there, only the county one. And I'd like to extract eg. ...
2
votes
2answers
407 views

How do I sort a geoJSON feature collection alphabetically by a property value?

I am trying to sort the objects in a geoJSON FeatureCollection alphabetically by the values of one of their properties. How do I get to the nested object properties with JavaScript? I have tried using ...
10
votes
1answer
2k views

GeoJson to ESRI Shapefile using ogr2ogr

I have a GeoJson file that I want to convert to ESRI Shapefile using ogr2ogr in FWTools. I tried using ogr2ogr -F "ESRI Shapefile" filename.shp geojsonfile.json OGRGeoJSON I got output ERROR ...
0
votes
2answers
235 views

Linebreak in style.Text in Openlayers 3

I have a vector layer from json, and have a style symbolizer: new ol.style.Text({ text: ol.expr.parse('name') }) In an vector layer, some of the nodes contains more than one name. I try to find a ...
2
votes
0answers
40 views

simple raster format to use in Web applications?

I'm building a Web application in which users create and edit very coarse raster data. They're assigning values to cells in a georeferenced grid. Right now I'm storing the values in a multidimensional ...
-1
votes
1answer
487 views

GeoJSON layer on Google Maps API is not showing

I am using the following codes to visualize a GeoJSOn on Google Maps API. var geojsonFeature = { "type": "Feature", ...
3
votes
5answers
514 views

How can I count overlapping polygons, resulting in a new set of polygons?

I have 100 polygons in a GeoJSON file that partially overlap each other. I would like to produce 100 new polygons as follows: The area covered by any of the original 100. This is their union. The ...
3
votes
1answer
1k views

display a choropleth map using D3 and Leaftlet

I am trying to get a leaflet map to display a choropleth map using d3. I have written this code using samples I have found however the map just displays as the black fill, not the color classes I ...
0
votes
0answers
160 views

Openlayer seems slow when zooming / panning on vector (geometry line) from geojson. Why?

I have a layer with 7 lines . when I zoom on some of the lines , the maps seems to be very slow. I thought it might be because I bring a lot of points to the client (that represents the line) aa ...
0
votes
1answer
81 views

VSI File API support in ogr2ogr

It seems that support for streaming input is wishy-washy in ogr2ogr. For example, why can I do this: curl "http://data.usgin.org/arizona/wfs?service=WFS&version=1.1.0& ...
2
votes
1answer
116 views

Which fields are standardized to describe a ShapeFiles feature?

I would like to store data into a database which is available here either as JSON or as ShapeFiles. The JSON looks something like this: { "type": "FeatureCollection", "features": [ { ...
2
votes
1answer
393 views

Programmatic conversion between GML and GeoJSON

I am modifying a .Net (C#, MSSQL) system to add some geography that I'd like to display on a leaflet map. I had originally expected to save GeoJSON directly into text strings in the DB, but after ...
1
vote
1answer
6k views

How can I change the style of marker in leaflet (from GeoJSON)?

I'm serving GeoJSON to leaflet and by default it get a blue icon marker. I'm trying to change the style so I'll be able to use the feature properties as part of the style , but no matter what I do , ...
1
vote
1answer
496 views

GeoJSON is valid according to JSONLint but jquery gives error

I have the following GeoJSON (from webservice) { "Features": [ { "Id": "1", "Geometry": { "Coordinates": [ { "Latitude": 31.2812, ...
2
votes
0answers
180 views

Show geoJSON properties in jQuery Mobile Panel

First off I'm a novice at JS so please bear with me if this is a simple task to complete. I'm currently using the stock LeafletJS popup bubble to display the properties from my geoJSON. However, I ...
0
votes
1answer
1k views

Building SQL statement in javascript and casting variables as strings

I'm working with Postgres 8.3/PostGIS which is storing some polygons. I'm writing a javascript function which will take in a parameter of a watershed id from another function. The javascript will ...
1
vote
1answer
809 views

GeoJSON in Leaflet

I'm just starting to work with leaflet and have a basic question about showing a geoJSON file. First, I found this excellent article with example code: http://bl.ocks.org/lxbarth/4019660 However I ...
2
votes
3answers
443 views

Is GeoServer getting coordinate output in GeoJSON WFS wrong?

When I do a WFS request to GeoServer and specify the SRS like this: http://myserver.com/geoserver/wfs? service=wfs& version=2.0.0& request=GetFeature& ...
2
votes
0answers
248 views

R, GeoJSON and Leaflet

I recently learned about leafletjs.com from an R-Bloggers.com post. One such tutorial that I would like to achieve is to create interactive choropleth maps with leaflet. I have been using the rjson ...
3
votes
3answers
409 views

Is it possible to check incoming GeoJSON to see if any of the features are identical to existing ones before adding to map?

I am working on a Rails/PostGIS app and doing a typical ajax call to retrieve GeoJSON within the map viewport bounds. Whenever the map is shifted or zoomed all of the markers are removed and then ...
0
votes
2answers
901 views

How to create multiple polylines using an external geoJSON file using Leaflet?

I'm starting with Leaflet and I'm using some georeferenced information collected from twitter. I already manage to load an external geoJSON with some points. But now I wan't to draw some connections ...
2
votes
2answers
865 views

How to determine intersection between geojson feature and given coordinates?

I'm overlaying a leaflet map with features of geojson, fetched with d3 and added as SVG elements to the DOM. My geojson contains too many features to render at once, so my goal is to add to the map ...
0
votes
0answers
90 views

Is there a big (if any) performance difference between Geoserver SQL Layer and OpenLayers geojson Layer?

I have a table with multiline geography items in SQL Server 2008 (Routes). I want to show them on OL Google Map but I'm having trouble creating SQL Data source in geoserver (something related to ...
1
vote
1answer
114 views

Can a GeoJSON GeometryCollection contain another Collection?

From a reading of the spec it seems that a GeometryCollection is a Geometry and can contain geometry objects? But I want to be sure that this is really allowed before I file a bug report.
3
votes
4answers
1k views

Display GeoJSON layer on top a SVG image instead of a map.

I'm very new to GIS, so hope this is the correct place to ask. Not sure if this will even be possible. This is what I want to achieve: In short, I want to display a set of polygons, lines etc. in a ...
3
votes
0answers
368 views

What are the default units of elevation/altitude/z in GeoJSON?

The GeoJSON spec says "The default CRS is a geographic coordinate reference system, using the WGS84 datum, and with longitude and latitude units of decimal degrees". It doesn't say seem to specify ...
0
votes
2answers
336 views

PHP PostGIS to geoJSON missing required parametar error

I'm using this PHP PostGIS to geoJSON script: https://gist.github.com/bmcbride/1913855 But I keep getting this error: 'missing required parameter: geotable' This is my code: # Retrive URL ...
1
vote
2answers
310 views

Can't read returned geojson

I've got a function that takes an Openlayers mouse click and puts the click location into a SQL statement which then gets passed to a JSP script which runs the SQL statement on the PostGIS database ...
1
vote
1answer
209 views

How do you make a function for changing projection with proj4js in Openlayers?

I have included Proj4js in OpenLayers. I would like to create a function (so I can use a make a button). To change the projection of my map. I have included in javascript Proj4js.defs["EPSG:54008"] ...
0
votes
2answers
118 views

How do you get all info from GeoJSON layer in Openlayers?

In OpenLayers I have added a GeoJSON layer (of the world) and created a simple infotool. The GeoJSON layer contains multiple features for some countries. If I click on a country I only get one ...