An open geographic data format based off of JavaScript Object Notation
-2
votes
0answers
14 views
Render specific vector data from database with openlayer
I want to render some data on a map. They are stored as points in my database (postGiS), each one is associated with a name. I want to render points with the same place name in the same color.
...
0
votes
1answer
76 views
Kartograph Open Street Maps
Firstly, congratulations to Gregor Aisch for creating such a wonderful library, thank you!
I am having a little trouble rendering an svg from some osm data. I downloaded the Sweden transportation ...
4
votes
1answer
202 views
Generate tiles for google maps overlays
I am trying to show some information on Google Maps which would be in the form of translucent circle overlays. The problem is that some circles overlap, which results in increased opacity and blending ...
3
votes
2answers
65 views
Is there any efficient way to convert Geojson to WKT?
I want to use ST_GeomFromText() to load vector data to PostGIS. However, I don't know how to convert from Geojson type to WKT.
N.B. I know I can use OGR2OGR to upload the geojson directly, but I just ...
0
votes
0answers
26 views
How do I add elevation data to a GeoJSON line from a GPX file?
I understand that elevation can be added as an optional third value in Coordinates (lat, long, elev) in a geojson file, but I can't find a way to actually do that from a gpx file. I've used ogr2ogr to ...
0
votes
1answer
77 views
leaflet geojson contextmenu
I want to add a context menu on right click for various elements on my geojson layer (I'm doing a road map so on a right click on the road at any part I want to show the context menu).
I've managed ...
5
votes
3answers
696 views
GeoJSON Styling information
As far as I can see there is nothing in the GeoJSON standard to store styling information, i.e. line colours, thicknesses etc.
Am I missing something or is this just something that GeoJSON doesn't ...
7
votes
2answers
186 views
How to reduce the file size of GeoJSON data?
For my project I am trying to convert the tiger shapefile information for us states into GeoJSON format
However when I use the ogr2ogr tool the data file is about 20 MB. I have seen the geoJSON file ...
1
vote
1answer
108 views
How to add images in CartoDB infowindows
Can't seem to get the default site to display images.
I've added hrefs to a image column. example;
I've dragged the image column to the top of the infowindow sidebar app and it still just displays ...
5
votes
2answers
1k views
How to Validate a GeoJSON
I have a small script that I'm using to generate GeoJSON data from a data format not currently supported by GIS software.
I would like to validate the output, but when I use ogr2ogr to read it, it ...
5
votes
3answers
93 views
How to insert a GeoJSON polygon into a PostGIS table?
I need to insert a polygon from GeoJSON to my PostGIS table. This is how the SQL query looks like.
INSERT INTO tablename (name, polygon)
VALUES
(
'Name',
ST_GeomFromGeoJSON
(
{
...
0
votes
1answer
39 views
PostGIS error reads “Geometry has Z dimension but column does not” [duplicate]
I try to store a polygon in GeoJSON format into my PostGIS table. Both are using the CRS EPSG:3857. This is how the polygon is defined. Note that I put in some whitespace to make it more readable.
{
...
0
votes
1answer
18 views
BBox missing when converting TIGER to GeoJSON
I can't get the bounding boxes of polygons if TIGER/Line shape files when converting them to GeoJSON using FWTools. The other default information is present and there is no difference between the ...
4
votes
1answer
702 views
Auto zoom on multipolygon with leaflet
I have a geojson with a multipolygon and I want to fit this multipolygon to the map. The map center only on one polygon not on the multipolygon.
Here is my script
var map = L.map('map',{ ...
0
votes
1answer
64 views
Saving part of OSM shapefile in QGIS as GeoJSON strips 'name' field to 25 characters long
I want to copy part of OSM data in ESRI Shapefile (downloaded from http://download.geofabrik.de/europe/ukraine.html ) and save in in GeoJSON to style later in Tilemill.
After saving, I see that ...
1
vote
2answers
81 views
How to add a polygon from GeoJson into Leaflet?
I try to use the following function to add polygons to my Leaflet map.
function polygon(geojson)
{
alert(geojson); // alert for testing
layer = L.geoJson(geojson);
layer.addTo(map);
}
...
1
vote
1answer
133 views
Polygon intersection with bounding box with polygon's holes intact
I am trying to serve GeoJSON FeatureCollection tiles with each feature's geometries trimmed to the tile boundary.
I am working on a Leaflet plugin to re-assemble the geometries. It works by building ...
0
votes
0answers
19 views
How to add clickable action to each feature from a featurecollection geojson object rendered using OpenLayers?
I have geojson object which is a featurecollection object. I need to render this geojson object as a vector layer on openlayers map. I have successfully rendered the layer. Now i want to add clickable ...
6
votes
2answers
600 views
Generating GeoJSON with Python
Hi I want to programatically create a GeoJSON file using polygons from a shapefile but adding attributes from my own application.
This is easily done for a shapefile:
def ...
0
votes
4answers
159 views
preferred source format for OGR conversion to GeoJSON
I'm relatively new to OGR and GIS in general. Most of the sources I look at give a choice of ESRI shapefile and MapInfo formats. I'm using ogr2ogr to convert these to GeoJSON for import into ...
1
vote
1answer
95 views
Conversion from Shapefile to TopoJSON format results in incorrect map when rendered using d3js
I am trying to build a map of Canada showing FSA boundaries using d3js. I got shape data from Statistics Canada ...
3
votes
2answers
50 views
Performance loss for OpenLayers EPSG transformation? Storing GeoJSON coordinates in lat/lon or in native map projection?
For a project the map projection is EPSG:32468 (tiles). On top of the map, two or three GeoJSON LineStrings should be displayed using OpenLayers. Each LineString has about 1500 coordinates.
...
6
votes
2answers
222 views
Converting KML files for use with Python library Shapely
I am trying to get a KML-file (wijken.kml) into Shapely. The KML-file is validated against the proper XML schema, so I guess the input is correct.
Routes I have tried:
1) Converting to WKT or WKB ...
2
votes
3answers
72 views
Interacting between Openlayers and Python
I have a openlayers website like this one that gives the user the ability to draw polygons and then creates a GeoJSON file. I want to process this GeoJSON with a python script. The python script ...
5
votes
4answers
308 views
GeoJSON too bulky - what to do?
I am using leaflet.js to allow web users to select a region. Valid regions are US states, Canadian providences, and world countries (except for US and Canada). I constructed a shapefile myself using ...
1
vote
1answer
42 views
SQL Command to convert pgRouting result to GeoJSON
My goal is to produce a Web UI for pgRouting using this tutorial. I have already imported my data from an OSM pBF to PostGIS using osm2po. Using the pgRoutingLayer plugin for QGIS, I was able to ...
0
votes
2answers
94 views
GeoJSON to Shape file conversion with geotools
Can someone please provide me an example of how to convert GeoJSON to Shape file using geotools?
0
votes
2answers
735 views
leaflet and geojson tiles
New to mapping.
Trying to create a heat map with data that updates every hour for US Counties with leaflet.js similar to http://leaflet.cloudmade.com/examples/choropleth-example.html. But, adding ...
7
votes
1answer
1k views
How to display geoJSON from an URL in a layer?
I am looking for some type of plugin or code which would allow me to add a geojson URL, define the areas to input the lat/long variables from the visible Qgis canvas map and call/render the results ...
8
votes
5answers
3k views
How to convert ArcGIS Server JSON to GeoJSON?
I'm creating a web map using Leaflet, and I want to be able to grab feature layers from our ArcServer. I have successfully been able to retrieve a feature class as JSON, but Esri's JSON objects don't ...
5
votes
1answer
320 views
Exporting Arcgis Online content as georss or geojson? [duplicate]
There are number of sites talking about how to add a georss feed to an ArcGIS Online map (see silverlight and flex examples from esri_webapi), but I haven't located anything about exporting a georss ...
4
votes
2answers
875 views
How do you convert OSM XML to geojson?
I want to take the XML output of a Xapi query and display it using leaflet or polymaps. How can I do that? Is there an easy way to convert XML to geojson
2
votes
2answers
136 views
How to Merge/Join GeoJSON and JSON?
I want OSM administrative boundaries from http://global.mapit.mysociety.org/area/14455.html.
I can get the geodata in different formats there, but the attribute data always is a separate JSON file. I ...
0
votes
1answer
88 views
What is the best way to use Leaflet and Geoserver to highligh a feature after a WMS request?
I have a web map, and I'm hoping to make it interactive.
The layer I have is reasonably large, at 15 mb in GeoJSON format 4 mb compressed, so I don't want to load the whole layer as one file. But, I ...
0
votes
0answers
77 views
Reprojecting coordinates and geoJSON in leaflet
I have a Leaflet map in default projection and a wms layer also in default (web mercator) projection. I would like to add polylines and a geoJSON layer to my map, but the coordinates are in EPSG4326. ...
1
vote
0answers
62 views
Natural Earth: How to get the position of all provinces that belong to a state
This question is about Natural earth 1:10 states and provinces.shp file. I'm using ogr2ogr and want to know the name of the id i need to pass . In purpose of pulling out the right states regions.
...
0
votes
1answer
86 views
GeoJSON Get Request MVC 4
I'm having trouble creating an OpenLayers Vector layer with GeoJSON data in an MVC 4 application.
The GET request for my json file always comes back with a 404.3 error - page cannot be served ...
2
votes
1answer
173 views
leaflet geojson coordinate problem
I just started to play with leflet/geojson a little. But my coordinates are not rendered properly and I have no clue what is going on.
My coordinates are: 52.23943, 4.97599. They work correct with ...
1
vote
1answer
142 views
TopoJSON without Quantization
I have been investigating using TopoJSON files to map floor plans for various buildings. As GeoJSON these files render perfectly, however after converting to TopoJSON they are missing a lot of the ...
3
votes
3answers
137 views
How to properly convert landmass NaturalEarth data into GeoJSON?
100% Newbie. I've been following Mike's d3 Map Tutorial and I've come up against a challenge. I guess my question essentially boils down to: how does one generate the proper GeoJSON/TopoJSON files ...
1
vote
0answers
154 views
OpenLayers and GeoJSON - possible to create, modify and delete features?
I wondered if anyone has some OpenLayers GeoJSON code to read, create, modify and delete features (i.e. instead of using WFS-T)?
This is how far I've come - I've no problem changing the pop-up to a ...
4
votes
1answer
132 views
binding nested arrays as geojson popups in leaflet
I am struggling with geojson popups in leaflet.js
I have nested arrays as properties for my features -
an example would be counts of fish caught at a location (not my actual project data!)
...
0
votes
0answers
27 views
Where do I find intra-city zone shapes?
We're building a project that lets you visualise data about zones within cities such crime rates and wealth. So for example in London you could compare the various boroughs. For this, I need to bulk ...
10
votes
1answer
1k views
Convert GeoJSON to TopoJSON
Question
How do you convert GeoJSON data to TopoJSON?
Why
Most likely, because you want a smaller file size. From the TopoJSON docs:
TopoJSON eliminates redundancy, allowing related geometries ...
0
votes
1answer
141 views
Problem loading a GeoJSON file using Openlayers
I am setting up a website using Openlayers and GeoJSON files. When I get the GeoJSON file using the code below it work as expected.
url: "./file.geojson",
But if I try and use the full domain ...
1
vote
1answer
148 views
OpenLayers and GeoJSON - problem projecting EPSG:4326
I'm trying to project some GeoJSON data but it ends up at 0,0. I've looked at other posts and tried those solutions to no avail. Can anyone help?
Here is the code:
<html>
<head>
...
0
votes
1answer
64 views
GeoJSON won't show in IE, but works fine in FF
I’m not sure if this question isn’t too specific for Stack Exchange, but I really can’t find a solution, and even extensive web search hasn’t brought up any help. There are similar, but different ...
0
votes
1answer
127 views
Geojson multipolygon doesn't work with Leaflet bindPopup?
I have polygon and multipolygon data in Geojson format and when I try to bind popup for polygon, it works perfectly, and when I try to bind it for multipolygon, it doesn't work.
Is that some Leaflet ...
3
votes
2answers
416 views
Create multiple vector layers by reading a GeoJSON file once in OpenLayers
I am a begginner to OpenLayers, and my question is about making things more efficient.
My work is about displaying time-dependent weather elements on several point locations on the map. All these ...
1
vote
2answers
134 views
converted SHP to geoJSON - how to put this on OSM map?
I'm a beginner at this. I converted a shapefile to a .js file but I am having trouble adding this data to a map using leaflet.
The osmscarb.js:
var osmscarb = {
"type": "FeatureCollection",
...



