An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

0
votes
0answers
6 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
17 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
32 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
14 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
33 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
11 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 ? { ...
2
votes
1answer
36 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
45 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
27 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
15 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
36 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
41 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
25 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
43 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
35 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
67 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
38 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
20 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
35 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
19 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
53 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
27 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
68 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
19 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
55 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
15 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
53 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.
1
vote
2answers
117 views

Openlayer 3: geoJSON feature clustering

Ive been trying to use the basic example from openlayer website to create a simple clustering map for my geoJSON data. However, Im not getting any luck to generate any clusters. Below is my code, many ...
2
votes
0answers
47 views

How to get Geography data to GeoJSON in PostgreSQL?

I am using PostgreSQL database and there is a field in a table(area), i.e., public.geography(Points,4326). It contains below type of records "0101000020E6100000BA83D89942334540780B24287ED051C0" I ...
2
votes
1answer
38 views

Remove null attributes from GeoJSON

I used the following command to reproject a GeoJSON from lat/lon to 3857: ogr2ogr -f "GeoJSON" results_3857.json -t_srs "EPSG:3857" results.json Unexpectedly, the resulting file was 5 times larger ...
1
vote
4answers
80 views

Where could I find geojson data for all counties of the UK

I'm having a look at http://code.highcharts.com/mapdata/countries/gb/gb-all.js However I'm having trouble identifing a list of counties from this geojson data. I've managed to get a rough list by ...
2
votes
1answer
62 views

Leaflet Marker Mouseover Popup

I've tried to make a MouseOver Markers Popup since a couple of days, I'm using Leaflet. I know some solutions I've read in many forums, but I wanna make it work with GeoJSON-Points and I haven't found ...
1
vote
0answers
14 views

combine multiple geojsons

I have several geojsons which contain polygons. But the polygons are reaching over other geojsons. When I import them into lets say Qgis, the polygons, which are distributed among several geojsons are ...
1
vote
1answer
58 views

Openlayers: select a feature programmatically from GeoJson

I am working on a project that uses openlayers (version2.14)to display a Bing layer(GeoJSON format), I have no problem reading the GeoJSON and display features, but I want to select a feature ...
1
vote
3answers
106 views

How to load geojson vector tiles from mapbox id?

I have some data hosted on mapbox and I'm trying to load it as tiled geojson into Leaflet from its mapbox id (I just want to get plain geojson, I'm not trying to render it). How can I achieved that? ...
2
votes
0answers
57 views

How to load GeoJSON into PostgreSQL database using Python?

What I have tried to do is (In Python IDLE): import psycopg2 import json try: conn = psycopg2.connect("dbname='carto' user='postgres' host= localhost password='password'") except: print "I am ...
0
votes
1answer
44 views

PostGis - BBox -vs- ST_intersects Queries

CartoDb Recommend here that the following query is faster than an St_intersects Query SELECT * FROM {table_name} WHERE the_geom && ST_SetSRID(ST_MakeBox2D(ST_Point(-73.9980, 40.726), ...
1
vote
1answer
45 views

CartoCSS Expression for shield-name

Is there any way to use a regular expression to filter a string when using CartoCSS expressions? I have geojson of some ways and route relations I obtained using Overpass Turbo. When creating a new ...
0
votes
1answer
57 views

Adding drop-down menu on leaflet map instead of L.control

I have created a choropleth map including several layers from the same geojson layer which is turkeyData in my case.I actually did it and it works fine. But I like to change the standart leaflet ...
1
vote
1answer
43 views

Write GeoJson into a .geojson file with Python

I want to write a geosjon object with the type <class 'geojson.feature.Feature'> into a .geosjon file. Therefore I tried to use with open(test.geosjon, 'w') as outfile: ...
1
vote
1answer
30 views

ogr2ogr: don't import properties on each feature?

I have a 2MB shapefile that when converted to GeoJSON becomes 10MB: $ ogr2ogr -f "GeoJSON" -t_srs EPSG:900913 landfill.geojson Authorised_Landfill_Sites_010k.shp I can reduce the size of the ...
2
votes
2answers
270 views

GeoJSON java library

I am creating a Java web service that receives GeoJSON. Does anyone know a java library to manage GeoJSON?
0
votes
1answer
38 views

Export KML from GeoJSON in QGIS and coordinates change?

I'm very new in this area. I have a geojson vector layer file, with coordinates like { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 487677.2993499999866, 112018.26101 ] } }, ...
1
vote
1answer
41 views

PostGIS returning a field one level higher in the Json

I have the following SQL on a PostGIS Database ($properties contains a list of fields, including osm_id) SELECT row_to_json(fc) FROM ( SELECT 'FeatureCollection' As type, ...
1
vote
0answers
60 views

Saving data in OL3

I have a small app where I would like to be able to digitize new features and save them for use outside the app. I am using geojson as I don't have a geoserver I have managed to create a button that ...
1
vote
2answers
45 views

Most efficient method to get national-level data displayed with Leaflet

I'm looking for the most efficient way to get a national or U.S. and Canada level dataset working with a JS mapping library. My problem is there's a myriad of technologies that seem like they can ...
0
votes
0answers
44 views

OL3 error with Style function

I am trying to style a .json layer with a numbe of classes based on an attribute. I and getting the error below which is apparently in ol3.js based on debugging in chrome: Uncaught TypeError: ...
1
vote
1answer
64 views

Difference between TileStache and Geoserver?

I have troubles to understand the differences between TileStache and Geoserver. My goal is to serve tiled geoJson through a restFull API and consume it with Leafet. Which one is the best for this ...
2
votes
1answer
69 views

d3 + Leaflet apply class value from geojson data

I have a geojson file that I'l able to draw just fine with D3 + Leaflet. I'm having trouble applying a class to the svg objects with a value from the geojson file. Each feature in the geojson file has ...