An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

0
votes
1answer
101 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
60 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
18 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
80 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
45 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
132 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 ...
2
votes
1answer
332 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
56 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
402 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
92 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
244 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
170 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
175 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
232 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
29 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
69 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
140 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
75 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 ...
1
vote
0answers
107 views

Merge multiple geojson-polygons

Lets say I have a very big image With a polygon in it: I want to polygonize this very big image with gdal polygonize. But the image is too big, so I dont have enough memory to polygonize that ...
0
votes
0answers
75 views

Working with Google Maps Android API v2 and WKB

I have a service which returns a list of routes (geometrycollection of linestrings) in WKB format. I want to display the routes on the google maps android api. What's the right way to achieve that? ...
0
votes
1answer
97 views

Leaflet Geojson Styling

How can external Geojson feeds be styled in leaflet? To add my external feed I'm using the snip below: var mygeojson = new L.geoJson(); mygeojson.addTo(map); $.ajax({ dataType: "json", url: ...
1
vote
1answer
94 views

Mixing POINT and MULTIPOINT in PostGIS table

I'm trying to load a bunch of GeoJSON files into one PostGIS table. I get this kind of error: Warning 1: Geometry to be inserted is of type Point, whereas the layer geometry type is Multi Point. ...
2
votes
5answers
222 views

What are some ways to convert a csv file to geojson while preserving data types?

Assuming said csv file is properly structured with Latitude and Longitude. I'm having problems find converters that won't mess up the data types (putting string around integers).
0
votes
0answers
31 views

Join GeoJson with additional info files

I have a GeoJson-file [1] with multiple polygons exported from OpenStreetMap that will be updated regularly and I want to add additional information (to the properties) from another file [2] (JSON ? ...
0
votes
0answers
16 views

How do I begin creating my open layers Web Map? [duplicate]

I'm completely new in the world of web mapping. I am however determined to learn and create a web map within a month or less. I have some geographical areas that have sites (Solar PV Sites) I want to ...
0
votes
1answer
112 views

Mapbox.js setStyle differently for each element

I'm using geoJson in a featureLayer so I can use the setFilter-Function. My question is: How can I use the setStyle-Function and give Elements with different properties different colors? My Code: ...
0
votes
0answers
35 views

Subtract parts of polygon that overlap with ocean

I have some seismic data in format of shapefiles/geojson. The data has no relevance in the oceans so I am looking to strip away those parts of the polygon. What I am currently doing is using the ...
0
votes
1answer
100 views

Converting JSON to GeoJSON MultiPoint using `ogr.CreateGeometryFromJSON`

I am trying to convert a JSON array to a geom in Python, by first converting it to a GeoJSON. I have point coordinates in a JSON array, [{'lat':100.0, 'lng':0.0},{'lat':101.0, 'lng':1.0'}] that ...
1
vote
0answers
111 views

create image out of geojson (gdal_rasterize?)

Short version: I need to know how I can convert a .geojson-file to an according .png-file (or any other image format) long version: I have a .geojson which was created by gdal_polygonize from a .png ...
1
vote
0answers
112 views

Global POI database in JSON format?

Does anyone knows if there is a flat file database of points of interest in a json format somewhere available for download? If not how would one set off to create such a database? Are there any tools ...
1
vote
1answer
86 views

Parsing large GeoJson geometry to WKT

I'm reading a very large json file as an InputStream in Android with JsonReader. This json has a geometry object like so.. "geometry":{ "type":"MultiPolygon", "coordinates":[ ...
0
votes
0answers
72 views

Openlayers 3, geosearch type function

I'm still new to Openlayers 3 and I am wondering if it has a control that enables a text search for WFS? Something similar to leaflet's "geosearch" control. If not, does anyone have a good example ...
0
votes
1answer
89 views

allow client to upload Layers to Openlayers 3

I want to allow the clients to add vector layers in form of a geojson to openlayers 3. It should look like in this fiddle . I know how to add multiple layers but I want the client to be able to add a ...
0
votes
0answers
32 views

Bulk geocoded data of historic empires / countries of the world?

Is there an open dataset (of the likes of Pleidas) which provides geojson data (or similiar) of empires / areas of the world? There was a similar question here (link), however, I am looking for a ...
0
votes
0answers
53 views

writeOGR alters MultiPolygon holes

I'having trouble using writeOGR to write GeoJSON files, when there are MultiPolygon objects. Here is an example: I'm creating a SpatialPolygonsDataFrame object from GeoJSON, with a single feature made ...
0
votes
1answer
73 views

Delete features from FeatureCollection in GeoJSON?

I have a FeatureCollection in GeoJSON. I want to delete all features that have an ID that doesn't start with "B". { "type": "FeatureCollection", "features": [ { "type": "Feature", ...
0
votes
1answer
52 views

Update the_geom field with polygons from a different table using one common field

Using CartoDB SQL API I'd like to: Update the_geom field in a table that has no spatial data by selecting the polygons from a table with spatial data and joining based on one common field.. In this ...
0
votes
0answers
144 views

OpenLayers 3 serverVector making multiple GET requests

I am loading a vector layer by modifying the example in http://acanimal.github.io/thebookofopenlayers3/chapter03_07_query_wfs.html. I am using a cql_filter to determine what features are returned by ...
2
votes
1answer
509 views

Ol3 displaying a vector layer

I have GeoJson that happily displays on GeoJson.IO that I am trying to display on a Vector Layer on an Open Layers 3 Map. The GeoJSON is in EPSG:4326, the Map is in EPSG:3857. My Code is: view = ...
0
votes
0answers
66 views

OpenLayers3 Heatmap: Which are the availables geotypes to load?

I'm developing a heatmap and I'm trying some of the availables libraries. Leaflet GoogleMaps OpenLayers I'm using a geoJson file with several amounts of points. Since Leaflet allow me to assing a ...
0
votes
1answer
100 views

On load event for Leaflet proj4leaflet projected geoJSON layer

Can't find proper event for vector layer like on "load", to be fired when this layer is fuly rendered. I add vector features to a layer in Leaflet using proj4leaflet from JSON object like this var ...
0
votes
2answers
117 views

Adding turf.js polygons from shapefiles?

I'd like to know if there is any tool I can use to import polygons from a shapefile. Is there any way to import a feature class in turf format or I should use GeoJSON?
1
vote
0answers
255 views

Fetching postgis data through php json and passing to leaflet map

I am new to this and trying to explore leaflet and geojson a bit. Please help me with this. This is my php page which I am using to fetch data from PostGIS. (the data opened successfully in the ...
2
votes
0answers
227 views

Using Extjs 5 & OpenLayers 3

To consume geojson data from a REST HAL CORS webservice, in client side i'm using ExtJs 5, but to map data having geometries i'm stuck between choosing geoExt2 which has a branch based on extjs5 and ...
0
votes
0answers
16 views

what properies i need to hold in waypoints array

im trying to build my own direction api but that is new for me and im trying to resolve a puzzle here, so my question is, what properies i need to hold in waypoints array ? { ...
3
votes
1answer
75 views

ST_GeomFromGeoJSON strips coordinates, is it a bug?

I'm storing some geo paths in PostGIS using GeoJSON and the ST_GeomFromGeoJSON()-function but I just found an issue with it: SELECT ...
1
vote
1answer
145 views

Routing api help (MapBox or similar)

i have a geoJSON objects and i want to route between waypoints on my geoJSON file. this is my example geojson file. { "type":"FeatureCollection", "generator":"JOSM", "bbox":[ ...
1
vote
1answer
36 views

Assign points with varying radii to central meeting locations

I have a set of points in a city, each with a maximum distance radius of 0.5 - 1.5 miles. From this set of points, I'd like to create a small number of 'meeting points', i.e. locations that are ...
1
vote
0answers
41 views

JavaScript _.each function not showing correctly [closed]

Can't seem to get this to display the correct way. The correct way would be Day/open/hours. geojson displayed below: hours: { monday: { close: "18:00:00", open: "10:00:00", call: ...
0
votes
1answer
358 views

Reprojecting vector layer from EPSG 3857 to 4326

based on examples from: http://acanimal.github.io/thebookofopenlayers3/chapter03_10_reading_writing_features.html http://acanimal.github.io/thebookofopenlayers3/chapter07_07_editing_features.html I ...