An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

0
votes
0answers
3 views

OpenLayers doesn't display US Census-based GeoJSON Layer

I'm getting started with OpenLayers and all was going well until I tried to use my own GeoJSON file. I started with the Cartographic Boundary Shapefiles - Counties from the Census website, loaded it ...
0
votes
1answer
17 views

use a global geoJson layer in leaflet

i´m using getJSON to draw points in leaflet, this is the code: function cargarpapes(movibles){ $.getJSON("papeleras1.php", function(data) { papesjson = L.geoJson(data, { ...
0
votes
0answers
26 views

Is there any method to retrieve SQL queries into a GeoJSON file using JSP?

I want to display the contents of my PostGIS database of various shape-files in leaflet pop-up dynamically. I know there are static methods available that retrieves attributes. But I need to by ...
1
vote
0answers
23 views

How not to enforce lowercase field names in Spatialite?

I use a geojson file to publish a webmap. When I need to update the data I convert it to Spatialite, add the data, then convert back to geojson. Recently in QGIS 2.8 I found that the column names ...
0
votes
0answers
23 views

Leaflet map - custom markers from CSV and referring to CSV / GeoJSON marker properties?

I run a non-profit online resource called the Megalithic Portal and have created a Leaflet map that uses Leaflet.geoCSV to load in points from a CSV file github.com/joker-x/Leaflet.geoCSV To see ...
0
votes
0answers
39 views

GeoJson and D3.js multipolygon

I have this geometric shape file, so no map of a city. I store the two Shapefiles in a GIS database as a geometric form. Now, I want to visualize the geojson data. I created the GeoJson data ...
0
votes
0answers
13 views

Cannot draw geometery on WorldWind

I'm trying to draw my geometery on worldwind but it keeps saying WARNING: Unspecified coordinate system and draws a default blue line in the middle of nowhere. The procedure is that I populate ...
-1
votes
1answer
26 views

How can I convert a geojson file to topojson in R?

I have tried the geojsonio package but it does not allow me to convert my geojson to topojson format. I know there are web applications available online to convert from geojson to topojson, but my ...
1
vote
1answer
37 views

Function to merge geojson and csv data in R

I have been using merge() to merge my geojson file with csv data in R. My codes are as follows: map@data <- merge(map@data, csvdata, by.x="ID", by.y="ID") However, after exporting the geojson ...
0
votes
1answer
34 views

How to store a drawn feature in OpenLayers?

I have found a draw tool in OpenLayers-3 which allows us to draw on a map (see http://openlayers.org/en/v3.2.0/examples/draw-features.html). Is there an API in openlayers to store the drawn feature in ...
0
votes
0answers
24 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
15 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
19 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
62 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
29 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
16 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
57 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
36 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
17 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
13 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
45 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
40 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
41 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
15 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
39 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
44 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
32 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
18 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
139 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
76 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
23 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
29 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
56 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
35 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
148 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
53 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
57 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
31 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
18 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
82 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
45 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
70 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
59 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
41 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
15 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
70 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
33 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
54 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
134 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
50 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 ...