An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

0
votes
0answers
8 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
5 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
32 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
32 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. ...
1
vote
5answers
100 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
17 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
25 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
15 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
26 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
17 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
37 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
30 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
43 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
0answers
26 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
22 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
33 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
30 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
22 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
47 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
62 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
28 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
21 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
49 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?
0
votes
0answers
63 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
61 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 ...
-1
votes
0answers
35 views

How to Export Feature GeoJSON from Posgrsql? [duplicate]

I am a beginner and I do not know how to use geojson for the department Display High layer from geojson and I used openlayers 3
0
votes
0answers
12 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
57 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
57 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
31 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
22 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
69 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 ...
2
votes
1answer
58 views

SQLServer Shapefile Export won't load in MongoDB due to self intersection

I am having an issue loading a handful of GeoJSON files that were created from a shapefile export from SQLServer into MongoDB. This polygon will not load in MongoDB because of two duplicate vertices ...
0
votes
0answers
56 views

Convert GeoTIFF Raster to JSON?

So I need to convert raster data to JSON format. Is the best way to do this to convert the XML files associated with the rasters to JSON? ARC Map has a tool to convert vectors to JSON, but not ...
1
vote
1answer
61 views

why are all polygons of geojson-layer in OpenLayers 3 black?

I want to color each polygon of my geojson according to its Hex-Value at "DN". I tried this: var map = new ol.Map({ target: 'map', layers: [ new ol.layer.Tile({ source: ...
0
votes
0answers
56 views

Error while passing geojson data to leaflet heatmap

I am using following set of code for converting geoJson data into Heatmap format and passing to L.heatLayer extends of leaflet. While using this function to fetch the data...I get this following ...
1
vote
1answer
154 views

Add GeoJSON layer to OpenLayers 3

I have a GeoJSON file called mygeojson.json and I want to add it as a layer in OpenLayers 3 on top of an openstreetmap layer. So far I could display the openstreetmap world including zoom etc. but for ...
2
votes
1answer
57 views

How to project a GeoJSON on the fly in OpenLayers 3?

I have been trying to load a GeoJSON without success. I have a map with a background layer from OSM. I have some data in 4326 I want to overlay on that map. I do not want to transform coordinates one ...
0
votes
0answers
37 views

How to remove all active layers or to know all active layers in leaflet?

I just need to know if there is any function which helps to return all active layers. basically, I need this function to remove all layers due to my ajax call. Here is my main function ... function ...
1
vote
1answer
39 views

How to unlock imported GeoJSON vector layer?

I have a map on geojson.io, with some fails that I need to correct. It has a feature to edit polygon's node but it's too tedious and hasn't "snapping" mode. So I've imported my .geoJSON, .shp, ...
0
votes
1answer
24 views

OpenLayers3/GEOJSON - Feature 'source'?

I'm fresh with OpenLayers/GEOJSON... Anyway,vector layer with features (lines, polygons..dots..) and it pulls those data from GEOJSON ("type":"FeatureCollection") file. Is there a way to see ...
0
votes
1answer
65 views

Paper PDF maps to geoJSON

Is there a way to do this? Maps with lat/lng can be analyzed in Acrobat with the analyze/geospatial tool. When a user clicks on the map, the lat/lng is returned. There has to be a way to grab these ...
0
votes
0answers
40 views

Leaflet filtering existing featuregroup

I have a leftleat map and i would like to filter the featuregroup i am displaying. exp_colJSON = new L.geoJson(exp_col,{ onEachFeature: pop_col, pointToLayer: function (feature, latlng) { ...
0
votes
0answers
84 views

Appropriate number decimals for storing 20m resolutuion US county data in GeoJSON

I took the 20M the 2013 census bureau data and converted it to GeoJSON. I also used this Ramer-Douglas-Peucker implementation to reduce the point count and therefore number of points with an epsilon ...
0
votes
2answers
112 views

How do I json_encode without those quotes for the coordinates in leaflet geojson polygon?

I have a field name: 'coordinates' I have the coordinates stored in there: like this: [[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ]] when I json_encode($geojson); I get ...
0
votes
0answers
24 views

Printing GeoJSON layer

I am trying to print a GeoJSON layer that I create myself programatically. The way that I am using is the following: var style = { externalGraphic: "images/drop.png", graphicOpacity: 1, ...
0
votes
1answer
70 views

export to GeoJSON coordinates in the reverse order

This question has been asked before, but I don't understand how to use the answer given by cengel. I want to make a GeoJSON file with lat long coords, not the default of long lat coords. I have a ...
0
votes
0answers
27 views

ogr2ogr in java gdal

I would like to code ogr2ogr -f "GeoJSON" destination.geojson source.geojson -s_srs EPSG:3068 -t_srs EPSG:4326 in java-gdal. I tried to understand how it should work by looking at this example but ...
1
vote
2answers
58 views

Is it possible to read geojson geometry from ArcGIS Javascript API?

I'd like to know if it is possible to read geojson geometries using the ArcGIS Javascript Api.