An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

1
vote
1answer
29 views

Translate coordinates in GeoJSON export

I am wondering if there is a way to apply a translation in coordinates for a GeoJSON export. Currently, there are negative coordinate values in my export, which I cannot have. I am trying to use ...
1
vote
0answers
10 views

QGIS view bounding box on Add vector layer GeoGSON protocol?

Our server can serve GeoJSON with an optional bounding box HTTP parameter. e.g. http://our_gis_server.org.au/layername?bbox=xmin,ymin,xmax,ymax In QGIS I can add this vector layer as a Protocol and ...
1
vote
1answer
30 views

Merge two geojson files

I have a global json files about countries' boundaries but the Russia is in two parts (two polygons). I want to merge the two parts in one, without the boundary at the middle. Is there a way to ...
0
votes
1answer
53 views

Optimum set up for large data sets such as mobile service coverage maps [closed]

When serving up large data sets such as mobile coverage maps (custom tile) mashed up with MapQuest maps and MapQuest POIs, is there any performance benefit to using shape file VS WMS tile PNGs? Any ...
3
votes
1answer
24 views

Day and night zone layer for Leaflet

I'm working with Leaflet and I'd like to show the day and night zones adding a dynamic layer to my map. I was thinking to add a static layer with some transparency and make it move every x minutes but ...
1
vote
1answer
44 views

How can I dynamically add features to a GeoJSON file? [closed]

I have tons of pictures which I am showing in markers on a LeafletJs map and currently have a fixed GeoJSON file. So I want to know is there any easy way to dynamically add new features to the GeoJSON ...
0
votes
1answer
24 views

Openlayers 3 display in Firefox and Chrome

I'm experiencing some issues with displaying OSM and GeoJSON. With Firefox v30 I see my GeoJSON data, but OSM is invisible. With Chrome v35 I see OSM, not my GeoJSON... What is the explanation? ...
3
votes
1answer
22 views

ogr2gui geojson to csv do not export coordinates

I tried to convert ogr2gui to convert geojson files to csv. The geojson file contains point data only. The resulting csv only contains attribute data, no coordinates. Is there a way to get the ...
0
votes
1answer
11 views

Guideline/scheme for naming properties in GeoJSON

Are there any guidelines/requirements for naming properties in GeoJSON? Should I add a vendor-prefix for my properties which only make in use with a specific application? I already read the ...
0
votes
0answers
7 views

openlayers 3 geojson style

here's a part of my html/js file. I cant display my geojson and really dont know the reason why. debug only says : "TypeError: f is null" any1 help ? Thx var map = new ol.Map({ target :'map', layers: ...
0
votes
0answers
23 views

OpenLayers Vector Features with common properties in multiple Layers

I am trying to manage features across different layers. Features are displaying weather parameters at some points on the map. Hence there is a wind layer, a temperature layer, etc. which all are ...
0
votes
1answer
20 views

Adding points from JSON to ArcGIS for Android?

I am new to Android, the ArcGIS Platform and ArcGIS for Android. I need to load points (offline) from a JSON file (GeoJSON) onto the map which displays a local Tile Package (*.tpk) and shapefile.
1
vote
1answer
38 views

SQL-query should return GeoJSON FeatureCollection

I'm trying to return a GeoJSON FeatureCollection object from a SQL-query with PostgreSQL 9.3 and PostGIS 2.1. This is my query so far: SELECT row_to_json(fc) AS p FROM (SELECT 'FeatureCollection' ...
0
votes
1answer
45 views

Displaying properties from GeoJSON file in choropleth map Leaflet.js

I'm using the Leaflet.js library to generate a choropleth map of zip codes colored by some property values stored within an externally loaded GeoJSON file. I'm following a tutorial here but have run ...
4
votes
3answers
87 views

Is there a API which return the geojson data for a countries borders?

Is there a simple free REST API where I can send the name or code of a country and get in return geojson data which highlights it's borders ? I'm writing an application where I will have a changing ...
1
vote
1answer
23 views

How to limit GEOjson data to specific area?

I am currently working with a shapefile from the United States Drought Monitor that countains all drought data from all of the states in the US. I am converting it to geojson with ogr2ogr and would ...
1
vote
0answers
24 views

Create Google Static Maps API from GeoJSON

I am using MapBox to create some maps with polygon boundaries. These maps will be embedded into a custom PHP app I am developing using their API. I need to be able to print these maps so I need to ...
6
votes
1answer
57 views

Suitable algorithms for simplifying isochrone polygons

I'm looking for an algorithm for simplifying isochrones which were generated using OSM data. These are generally characterised as having lots of small "holes" mostly due to missing OSM data but also ...
1
vote
1answer
76 views

How to get LatLng array from geoJSON Layer in Leaflet?

i need to hand the latlng coordinates from my phpPostGIS-served geoJSONLayer as an array over to a new added HeatMap Layer. L.geoJSON has an build-in option: coordsToLatLng( coords )" and a static ...
1
vote
0answers
83 views

“Can't extract geo keys from object, malformed geometry?” Possible self intersection?

My '2dsphere' index creation fails at a document. The command i write for creation of index is: db.collection.ensureIndex({'geometry' : "2dsphere"}) It returns the following error: { "err" : ...
1
vote
2answers
55 views

Data structure: mongoengine to GeoJson

I recently posted my first question on StackOverflow, but I think the question was quite extensive and full of potential errors. So I'd begin again, step-by-step, with a much shorter and simplier ...
2
votes
1answer
48 views

What is the best or recommended way to store a GeoJSON FeatureCollection in MongoDB?

The comments in this question: Shapefile to GeoJson conversion using C# raised another one: what is the best way to store a GeoJSON FeatureCollection in MongoDB? Is there any sort of convention when ...
1
vote
1answer
36 views

Python geoJSON module create a FeatureCollection with CRS, QGIS doesn't recognize CRS

I am curious if my geoJSON created with the geoJSON python module has a valid CRS. The manual on github specifies a feature collection like so: from geojson import Feature, Point, FeatureCollection ...
3
votes
2answers
107 views

Leaflet geoJson in front of markers in a FeatureGroup

I am loading some markers and json data to a leaflet map. I need to get my json in front of the markers. I have tried placing the markers and json in seperate FeatureGroups and then tried ...
0
votes
1answer
48 views

Where to find geojson for uk?

I want to get the GeoJson for UK.The regions which i require are in the map displayed on clicking the below link. http://www.apho.org.uk/resource/view.aspx?RID=50213 I have been searching the net but ...
2
votes
0answers
56 views

Z-Index in GeoJSON features using leaflet

I have a watershed polygon with sub-watersheds contained within the larger watershed. I would like the sub-watersheds drawn on top. Can i control the drawing order of features within a geojson object ...
1
vote
1answer
30 views

ArcGIS API for JavaScript - Adding Point(s)

I need to add a single point, I am new to JS and ArcGIS API. I was looking for some code examples on how to create a point and/or a few other points (as needed) I can't use any additional ...
0
votes
1answer
26 views

TileMill OGR Plugin: Failed to read GeoJSON data

I'm trying to load the following into a TileMill layer as the file build1.geojson { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[ ...
0
votes
1answer
44 views

Getting coordinates to create geojson

I have a geotiff that I have been working with in tilemill and I would like to select portions (buildings) in the map and create new layers as geojson objects. My issue is I don't know how to get the ...
0
votes
1answer
60 views

WFS 2.0 with bbox filter and attribute filter

I am trying to get the following WFS GET request to work: wfs = "service=WFS&version=2.0.0&request=GetFeature", name = "&typeName=storeName:layerName", bboxFilter = '&bbox=' + ...
0
votes
0answers
41 views

Geojson not rendered with Mapnik

I am trying to generate a tile with Mapnik with a GeoJSON. The stylesheet.xml with the part to render the GeoJSON is the following: <Style name="cities" filter-mode="first"> <Rule> ...
3
votes
1answer
49 views

Rounding bug using ST_GeomFromGeojson()

Let's say I have the following geographical point represented in GeoJSON: {"type":"Point","coordinates":[-109.0,35.292506]} When I run the following conversion, things work as expected: SELECT ...
8
votes
3answers
138 views

Metadata and GeoJSON?

My agency currently maintains and distributes shapefiles with FGDC XML metadata. We have now converted a lot of shapes to GeoJSON but are concerned that if our developers forget where they got the ...
1
vote
1answer
62 views

Can you use nested properties to style features in CartoCSS

I've imported a GeoJSON layer into TileMill and am having trouble styling based on the properties in the features. The features' properties objects have objects nested within them, and I haven't found ...
0
votes
0answers
22 views

How to serialize a HTML form to GeoJSON data?

I'm developing a Cordova/PhoneGap mobile application and using NodeJS for server and MongoDB as database. I need to serialize GPS data from mobile phone to send it to my webservice with latitude and ...
1
vote
2answers
70 views

Georeferencing Vector Layer (shp) from Mollweide Projection to Custom CRS in QGis

the title might be a little complex. Its part of a massive project: I'm working on a fantasy world; a map, to be more specific. I basicly just started to paint a world map in Photoshop, but over time ...
0
votes
1answer
51 views

Issue with using TopoJSON server API to return TopoJSON object with properties

I am creating a node application and using TopoJSON server API reference (see the link below) to convert a GeoJSON object to a TopoJSON object. TopoJSON server API reference I used these three lines ...
0
votes
0answers
26 views

GeoJson attributes encoding limitation

I have problem when trying to encode attribute values in latin1 using ogr GeoJson driver. Accent char are not displayed correctly. Is the geoJson encoding is limited to UTF-8? I cant find any info ...
1
vote
1answer
49 views

GeoJSOn or WFS service to view, edit and save geometries

To view, edit and save in postgis geometries using OpenLayers + Geoserver what is recomenadado use GeoJSON or serivços WFS? I ask this for performance and additionally want the edition is recorded ...
0
votes
0answers
49 views

Google Maps + Geojson vector layers --> Save as Image

I've created a custom website with Google Map's + geojson layers read from a Postgis database. I draw some other layers on top of it, including some polygon and line layers... I display this website ...
3
votes
1answer
46 views

Consume geojson web service in ArcMap

I need to consume data from a REST endpoint that returns features in geojson format within a model in ArcGIS 10.2. Is there a way to access a URL instead of opening a file? If there is no way to ...
1
vote
3answers
212 views

Using geojson hosted on GitHub from Leaflet: it doesn't work

I'm trying to use a geojson hosted on GitHub (rif. https://raw.githubusercontent.com/cesaregerbino/DatiGeo/master/ScuoleTorino.geojson), from Leaflet. here you are my code .... My first ...
1
vote
1answer
43 views

reproject vector layer with pyqgis with new CRS does not worl

In QGIS I am running a script in th python toolbar to export all visible vector layers to a GEOJSON with this snippet: canvas = qgis.utils.iface.mapCanvas() allLayers = canvas.layers() for i in ...
0
votes
1answer
35 views

Filter geojson or shapefiles

I'm trying to create a geojson file with a few shapes of roads from OSM. Now, I've been able to get shapefiles of the greater region (province) these roads are in from http://download.geofabrik.de/ . ...
0
votes
1answer
224 views

Read GeoJSON with openlayers

I generated a GeoJSON a projected table in EPSG: 4326 domeu postgis SELECT ST_AsGeoJSON(geom) FROM "onibus" I put in the www folder on my server I'm running geoserver locally my pages are also in ...
0
votes
2answers
200 views

How to plot geo-data using matplotlib/python

I am trying to plot a polygone on python, using different libararies, but no one of these worked with me. I tried vincent ,Shapely , .. and now matplotlib. I don't wanna use softwares like qgis I ...
3
votes
1answer
187 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: ...
1
vote
2answers
99 views

PostGIS to GeoJSON with GDAL: how to get lat/longs?

I'm trying to convert line features from PostGIS to GeoJSON files, as follows: from psycopg2 import * from subprocess import call conn = connect(dbname='gis') cur=conn.cursor() cur.execute("SELECT ...
2
votes
1answer
135 views

Large loads geojson from mysql to leaflet?

I have a mysql database with +25K rows including geometry and other attributes. Using a mysql2geojson php script I then added it to a leaflet map. It is super slow now, what can I do to boost the ...
0
votes
1answer
127 views

ogr2ogr : Converting KML to GeoJson

I have a requirement convert .HML file to GeoJSON or JSON. Can you please recommend open source command line tools on GNU/Linux(2.6.32-358.14.1.el6.x86_64)? I have installed gdal, I am getting beloow ...