An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

1
vote
2answers
173 views

How to load big geo-data file into web application

I am building a web app where I show details in map. I load data using geojson file (190 mb). I was looking in different possibilities to show the data, here there are: Leaflet GeoJSon: it should ...
1
vote
1answer
53 views

When do GeoJSON feature collections need feature ids?

I've seen feature collections with feature ids for each feature. I've seen others with no featureid. When do you need it?
1
vote
1answer
356 views

Reprojecting coordinates and geoJSON in leaflet

I have a Leaflet map in default projection and a wms layer also in default (web mercator) projection. I would like to add polylines and a geoJSON layer to my map, but the coordinates are in EPSG4326. ...
1
vote
1answer
309 views

TopoJSON without Quantization

I have been investigating using TopoJSON files to map floor plans for various buildings. As GeoJSON these files render perfectly, however after converting to TopoJSON they are missing a lot of the ...
1
vote
3answers
2k views

Trouble Displaying GeoJSON file in OpenLayers

I am noobie to OpenLayers and can not for the life of me figure out how to display a geoJson file. This seems like it should be easy but I have been banging my head for a day. I'm sure I am missing ...
1
vote
2answers
41 views

Row-crop field boundaries

I'm on the hunt for field boundary coordinates in the US in the form of GeoJSON, a Shapefile or any structured format that I can use to overlay on a map. I've tried looking at the US Department of ...
1
vote
1answer
211 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
1answer
70 views

ArcGIS Server JSON to GeoJSON does not always work

I'm using GDAL 1.10.1 for reading ArcGIS Server responses with automatic conversion to GeoJSON format as described in How to convert ArcGIS Server JSON to GeoJSON? post. However, it looks like some ...
1
vote
1answer
25 views

What format comes out when you export from OSM

I am trying to export this osm output (and then convert it into geojson). I click export and get a file called "map." What format is this file in?
1
vote
2answers
212 views

Is it possible to convert regular JSON to GeoJSON?

My apologies if this is a repeat question, I searched here and couldn't find an answer. I have JSON data I've exported from Openpaths.cc which contains lat and lon values. However, the data is not in ...
1
vote
1answer
88 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
1answer
389 views

Attribute editing in QGIS on geoJson file

We have vector files in the format of geoJson files. We need to keep it in geoJson format as it is picked up by mobile devices via Restful services. The problem is we want to change the attributes of ...
1
vote
2answers
485 views

How to use GeoJSON from Geoserver?

Please help me on how can get my map from Geoserver. I want create my country web but I can nott see it in my browser but I can see in Geoserver. Please help me I am very new openlayers and Geoserver. ...
1
vote
1answer
29 views

Adding popup to geojson layer based on feature property?

I'm using leaflet and trying to add a popup to a point on the map that will return a property of the point from the geojson file. Going off this post has been helpful problem adding pop-up to GeoJSON ...
1
vote
1answer
58 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
2answers
72 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 ...
1
vote
2answers
125 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 ...
1
vote
1answer
142 views

TileMill: How to access geojson properties with CartoCSS

When trying to display a geojson layer in TileMill, is it possible to access the 'properties' of each feature? My geojson looks like this: "type": "Feature", "geometry": { ...
1
vote
2answers
131 views

OpenLayers add a json layer to existing map on load

I am new to OpenLayers ... i have managed to build a layer with several features (draw tools, delete and save buttons). When the user draws shapes on the image map and press Save, these are stored ...
1
vote
1answer
617 views

Which plugin can draw topoJson right within Leaflet without conversion?

I already have asked how to reduce file size and increase performance for publishing spatial data on the web using Leaflet, here. A conversion to TopoJSON has reduced the file size by approximately ...
1
vote
3answers
128 views

How to prepare a multi-colored vector layer?

I need to present a multi-colored vector layer and something similar to below: I need to prepare the vector layer by making use with the data set available in my database. Inside my database, I ...
1
vote
1answer
77 views

Hot could I generate a CRS field inside the GeoJSON object created by Leaflet layer.toGeoJSON?

I'm using Leaflet to transform some drawn polygons to GeoJSON and send them to a backend. But the GeoJSON objects generated by layer.toGeoJSON are like this: { "type":"Feature", "properties":{}, ...
1
vote
1answer
390 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
2answers
105 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
68 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: ...
1
vote
1answer
399 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?
1
vote
1answer
436 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, ...
1
vote
1answer
715 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 ...
1
vote
2answers
260 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
184 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"] ...
1
vote
1answer
314 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 .shp file?
1
vote
1answer
641 views

What is the best way to use Leaflet and Geoserver to highligh a feature after a WMS request?

I have a web map, and I'm hoping to make it interactive. The layer I have is reasonably large, at 15 mb in GeoJSON format 4 mb compressed, so I don't want to load the whole layer as one file. But, I ...
1
vote
2answers
236 views

converted SHP to geoJSON - how to put this on OSM map?

I'm a beginner at this. I converted a shapefile to a .js file but I am having trouble adding this data to a map using leaflet. The osmscarb.js: var osmscarb = { "type": "FeatureCollection", ...
1
vote
2answers
634 views

Trouble with GeoJSON in HTTP GET Request

I using a Vector Layer with the HTTP protocol to request GeoJSON from my web server, and am trying to get this GeoJSON to display on my map. The GET request appears to be working correctly, as I can ...
1
vote
1answer
2k views

How can I add an infowindow to an OpenLayers GeoJSON layer?

In my OpenLayers script I refer to an geojson layer. Is it possible to add an info window?If yes, how can I create this. Script is as follows: var lon = 5, lat = 52, zoom = 7, epsg4326 = ...
1
vote
2answers
3k views

How to get GeoJSON features using OpenLayers?

Can anybody explain how to get geojson features .Can somebody show way to get attributes from geojson text. OpenLayers.ProxyHost = "/gt/proxy.cgi?url="; var lon = 5; var lat = 44; var ...
1
vote
2answers
469 views

OpenLayers GeoJSON: limit significant digits to 6 when using write()?

Is there a way that OpenLayers.Format.JSON write() method to serialize coordinates using 6 decimals only ? Example: instead of http://pastie.org/4200997 to have http://pastie.org/4200994
1
vote
1answer
9 views

URL for my Protocol.HTTP never called by OpenLayers?

I have an OpenStreetMap (OSM) map with a vector layer fetching data from a Node.js server setup on my local machine on port 9000. The data is in GeoJSON format. Here is the whole code: var ...
1
vote
1answer
27 views

Convert WKT (or geojson) geometry to numpy array of coordinates

I am looking for the fastest way to convert WKT or geojson geometry from string to numpy array of coordinates. Is it possible to do it strictly in Python and without creating geometry object such ...
1
vote
2answers
23 views

Converting Shapefile data to GeoJSON

I have access to some open data for which I want to obtain some coordinates to put onto a map. Unfortunately, the data is in the Shapefile format which is rather difficult to work with. I am trying to ...
1
vote
1answer
19 views

Error inserting GeoJSON in PostGIS

I know there is a similar question but I am getting a different error and none of those answers have helped. I am trying the following query (the GeoJSON itself is from the PostGIS website. INSERT ...
1
vote
1answer
25 views

Query and Visualize GeoJSON data [closed]

I am trying to visualize specific GeoJSON data. I am successfully loading the full GeoJSON file (Multipolygon) using Leaflet JS. Is there any query to find specific polygon from that GeoJSON file? ...
1
vote
1answer
49 views

Merge multiple linestring features into a single multilinestring

Using QGis or ogr2ogr how do I convert a vector file containing multiple linestrings features into a single multilinestring feature? At the moment I've been doing this manually by converting the data ...
1
vote
1answer
58 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 ...
1
vote
1answer
28 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
1answer
65 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 ...
1
vote
1answer
33 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 ...
1
vote
2answers
82 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 ...
1
vote
1answer
60 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 ...
1
vote
1answer
60 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 ...