An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

0
votes
0answers
55 views

How can I add attributes contained in JSON file to an OpenLayers popup?

I just began to work with openlayers, and I am in need to build a work just like yours. See my code below. From line 210 up the end the code is just like yours. I am reading a point feature (WGS-84) ...
0
votes
1answer
24 views

How to update an existing GeoJSON with Fiona

With the code below I can create a new GeoJSON and add data to it: data =[(LINESTRING (-98.98234 19.38234, -98.990341 19.342345, -98.992449 19.378621, -98.991299 19.378233, -98.992349999 19.377381), ...
1
vote
1answer
26 views

Using CartoDB to change projection of maps - then exporting as SVG

This seems like a fairly simple question, but I've looked everywhere for the answer and can't find it. I've imported geoJSON UK constituency data into CartoDB and it looks great. I now want to export ...
2
votes
1answer
90 views

How to efficiently use a Postgres DB with Python

I have a Postgres DB with a lot of lines that are too long and so now I want to split those lines into smaller ones. This is why I started writing a little python script for that job. Basically it ...
0
votes
1answer
42 views

How can I export a GeoJSON file from R?

The write. function allows one to export a JSON file, but it does not seem to work for a GeoJSON file. This is the code i ran: write(map,"Map Layer2.GeoJSON") and this was the error produced: ...
1
vote
1answer
23 views

How to Convert db.ListProperty(GeoPt) to GeoJSON Polygon

My Python Google App Engine (no tag?) app has a datastore model of an Area of Interest, simplified as import geojson class AreaOfInterest(db.Model): name = db.StringProperty(required=True) ...
0
votes
1answer
117 views

Loading GeoJSON via AJAX after adding Layer to OpenLayers 3?

I'm trying to add a new GeoJSON layer to OpenLayers 3 that I have to fetch via AJAX. I want the user to click on a list of layers, have it add an empty vector layer, and then make an AJAX call and ...
0
votes
1answer
60 views

How to protect the loaded json file name and location using html5 and javascript?

The data of markers (not the map) is stored in a json/csv/js file. We want to show all data as markers on the map. But how to protect the raw data file from public access? Following the example on ...
0
votes
1answer
28 views

extend extent of geoJSON layer - Leaflet

I am zooming to the extent of a set of geoJSONs collected in a FeatureGroup with this call: map.fitBounds(myFeatureGroup.getBounds()); ...I would like to extend the extent a bit; as it is the ...
0
votes
0answers
19 views

Tilestache - Mismatch between the coordinates present in the PostgreSQL/PostGIS and those returned by PostGeoJSON provider

This is the relevant bit my Tilestache config, "points-of-interest": { "provider": { "class": "TileStache.Goodies.Providers.PostGeoJSON.Provider", "kwargs": { "dsn": ...
1
vote
1answer
73 views

Load external geojson file into leaflet map

Have studies this thread but not getting desired result. My index.html looks like this: <!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>GeoJSON ...
0
votes
0answers
63 views

Efficient way to read large GeoJSON data using Openlayers API

For now this is how I read GeoJSON data: $.ajax({ url: "flood_map/", type: "GET", dataType: "json", async: !0, beforeSend: function () { ...
1
vote
1answer
76 views

how to draw a polygon in leaflet and add it to geojson file

I am working on a small project with leaflet. the goal of the project is to show a geojson file and updating it dynamicaly from the window of the web site. I have imported the geojson file to the map. ...
1
vote
1answer
22 views

Alternatives to GeoRSS for time-sensitive point data

I'm looking for a suitable data format for various organisations to publish point data with a recent time component, like events, road closures, etc. GeoRSS is the obvious candidate but: It's XML, ...
0
votes
0answers
52 views

Leaflet application with geojson IE9 error

Help.. My applications doesn't work in IE10 or IE9. It's fine in IE11, FF, Chrome, Safari etc. The error must be in the geojson featurelayer function, since removing it (row102-151) fixes the ...
1
vote
1answer
93 views

Submit a form from within a leaflet popup?

I want to submit a form from within a leaflet popup simply using javascript and geojson. I am essentially collecting attribute information in the form and then I want to process the information into ...
0
votes
1answer
47 views

How to obtain the shape or width of a road in GeoJson

I'm new to openstreet maps and the geojson format. I'm drawing buildings and roads using GeoJson. A Building is represented as a Polygon, thus i can create the proper geometry as needed, but a Road ...
1
vote
0answers
25 views

JSON Layer does not show when .setview Changes

I've set a Mapbox map with a geoJSON layer overlaying it. The problem is that with the default set values, the json layer shows up just fine. However, If I change the .setView too much, the json layer ...
3
votes
2answers
176 views

Read (GEO)JSON file from web service using FME Desktop

I have a webmap of bike stations and there is a json service for these stations behind the map. It is possible to provide this URL as the source dataset, using FME Desktop? Does FME Desktop support ...
1
vote
2answers
127 views

Leafletjs : combine location data in geoJSON/KML/GPX with other information in CSV through key field

I've been able to load CSV having lat-long co-ordinates into leaflet using this useful solution. Looking for ways to cross-link co-ordinates from a different source and data from another. Describing ...
1
vote
0answers
39 views

QGIS/GeoJSON: Dissolve featurecollection consisting of polygons and multipolygons into a large multipolygon

I've read this question. I would like to know how to do this in QGIS. I have a Geojson file with a featurecollection, starting with: ...
0
votes
0answers
32 views

Javascript - Problems getting GeoJSON from Geoserver

I already read other posts regarding this topic. However, I cannot make it run. This is what I have: var geoJsonUrl = ...
2
votes
3answers
66 views

GeoJSON Rendering in Leaflet

I have published a wms using the QGIS Cloud and on top of it I am overlaying the same data (countries of Europe), using GeoJSON. Have a look at an example here: http://jsfiddle.net/j21kh7ao/ At a low ...
0
votes
0answers
56 views

Any other FuseSearch.js examples in Leaflet?

Have been researching about using FuseSearch and using this example. The only difference is that am using polygons.Its working well but not highlighting polygons on results click. Has anyone done a ...
2
votes
3answers
178 views

FME and elasticsearch

We are developing a system to disseminate information about roadkills. The source data comes from three different databases. We have set up a FME project which pulls geojson from the source databases, ...
0
votes
1answer
60 views

How to export point geomtery geojson from QGIS?

I want export geojson (from shapefile), for leaflet project. But QGIS 2.6 exported geojson is multipoint geometry(leaflet doesn't read that), so its way to export point geometry geojson from QGIS?
1
vote
0answers
88 views

How to get geoJSON from spring REST Controller?

I am developing a GIS application with java(Spring-4.1.5 + Hibernate-4.3.8) and OpenLayers. For this project I use GeoTools-13RC, HibernateSptial-4.3, jts-1.13 and jackson-2.5. In this project, I have ...
0
votes
1answer
32 views

Is there a website that has collection of GeoJSONs? [closed]

I specifically look for GeoJSON for all dry lands in the globe.
1
vote
0answers
20 views

How get geoJson layer whit geoTools? [duplicate]

I have a class in java: "MyPoint" Class: @Entity @Table(name="MyPoint") public class MyPoint{ @id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long Id; @Column ...
1
vote
1answer
93 views

GeoDjango Setup: Python 'GDALAllRegister' Attribute Error

I am trying to setup Geodjango 1.8 in a virtualenv with Python 2.7.9 (Win32). I have installed and setup Postgres/PostGis and have my Path setup to my OSGeo4W directory. I have also installed the ...
0
votes
1answer
65 views

Batch Edit GeoJSON Markers with Mapbox.js

I cannot figure out how to style all feature points from a local GeoJson file at once using the Mapbox.js. My GeoJSON file has roughly 500 points. I could go through each point in the GeoJSON file and ...
4
votes
1answer
116 views

Dump a GeoJSON FeatureCollection from Spatialite query with Python

Given a Spatialite database, holding a table with a geometry column and some other attribute columns. I want to query that table in a Python script and get a GeoJSON FeatureCollection string in return ...
0
votes
1answer
77 views

Querying GeoJSON polygons from Django models in Leaflet?

Am developing an application in GeoDjango and using Leaflet to show my data.I have loaded my data successfully into the map and added a sidebar where I have my textboxes to input values and a search ...
0
votes
1answer
53 views

How to add hyperlink in geojson popup in Leaflet?

I am trying to add a geojson layer with interactive functionality to my leaflet map. I am mostly using this (dated)blog: ...
0
votes
1answer
17 views

Geojson mapevent second mouse click

I am trying to add a geojson layer with interactive functionality to my leaflet map. I am mostly using this (dated)blog: ...
1
vote
3answers
74 views

How to delete a feature from a GeoJSON with Python

Given a GeoJSON like following: { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "city": "city1" }, "geometry": { ...
1
vote
1answer
40 views

Adjacency matrix from polygons in GeoJSON

I have a set of polygon features in a GeoJSON file. They are neigbourhoods in Chicago. I would like to produce an adjacency matrix A, in CSV format or any other form, where the i,j element of A is 1 ...
1
vote
1answer
95 views

Loading Vector data into OpenLayers3 from Geoserver

I'm using Geoserver to serve my spatial data which is being displayed using OpenLayers 3. I've so far been able to load my data as TilesWMS from my geoserver, but in order to select the data I need ...
1
vote
1answer
230 views

Store a GeoJSON FeatureCollection to postgres with postgis

I am new to GeoJSON. I have a GeoJSON features collection as shown and would like to store it in postgres table (testtable). My postgres table has a serial id and geometry column. { "type": ...
0
votes
1answer
54 views

Display more than 1000 lines on web map

I've a scenario that I need to display many lines on the map (for instance all road links of Manchester in UK). I am using Leaflet as map plugin. I use geoJSON as source of data, when I try to load ...
1
vote
1answer
253 views

open layers 3 problem with feature overlay and

Edit -- I left out some very relevant information in my first post. I realized the issue I'm having isn't because of the counties layer itself but of the Feature overlay that is created when the user ...
1
vote
1answer
79 views

How to nest GeoJSON features based on their geometry in javascript?

I have a GeoJson object with polygon features. Some of them have same geometry. They look like this: squareData = { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": ...
0
votes
1answer
204 views

Request JSONP from Geoserver using AJAX request in Openlayers 3

I am creating a web application using OpenLayers 3 and I am looking to import my vector layers into this. I currently have my data in Geoserver and I am trying to use the following code, but when I ...
0
votes
0answers
128 views

Error when trying to bind popup on geojson, failed to execute 'appendChild'

I'm trying to load more than 13 thousand points in leaflet from a geoJson file, everything seems to work just fine except the Popup function. I've looked everywhere for a solution and most answers out ...
2
votes
1answer
136 views

Accessing geojson properties using OpenLayers3

Is it possible to access geojson properties using the OpenLayers library? I tried to search for it but couldn't find any proper answer. According to my research, the library converts each geojson ...
2
votes
4answers
189 views

How can I publish a Google Sheet to the web as a GeoJSON file?

I am trying to create a map in Mapbox to be embedded on a website and have the embedded map automatically update every time the source data is updated. I have my source data in a Google sheet and have ...
1
vote
0answers
26 views

How widely supported are nested FeatureCollections in GeoJSON?

I know that FeatureCollections inside FeatureCollections are not supported according to the GeoJSON spec, but I have seen multiple implementations that do support it. Are nested feature collections ...
0
votes
0answers
57 views

GRIB data interpolation

I've been wrangling around in GFS grid based data (GRIB - mostly 0.5 degree resolution). I'm interested in plotting these by converting to geojson with ogr2ogr (which is quite easy). However, is there ...
1
vote
1answer
97 views

dissolve polygons of GeoJSON with gdal/ogr

I have a GeoJSON with only polygons in it. I have to dissolve (merge) the polygons with the same "DN"-value. I found out that you can do it with shapefiles like this: ogr2ogr outputfile.shp ...
0
votes
1answer
64 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 ...