An open geographic data format based off of JavaScript Object Notation
1
vote
1answer
23 views
Can a GeoJSON GeometryCollection contain another Collection?
From a reading of the spec it seems that a GeometryCollection is a Geometry and can contain geometry objects? But I want to be sure that this is really allowed before I file a bug report.
-1
votes
0answers
27 views
converting shapefile to geojson issue
I used qgis, to produce gejson files from four different shapefile, but only one of these is working, can you tell me what could be wrong with this operation?
0
votes
0answers
14 views
How to put markers from geoJson to MarkerClusterGroup?
How to put markers from layer WTGS (which reads geojson from php file returned from postgis database) to L.MarkerClusterGroup?
WTGS = new L.geoJson(null, {
pointToLayer: function ...
2
votes
0answers
21 views
Display GeoJSON layer on top a SVG image instead of a map.
I'm very new to GIS, so hope this is the correct place to ask. Not sure if this will even be possible.
This is what I want to achieve:
In short, I want to display a set of polygons, lines etc. in a ...
1
vote
0answers
40 views
What are the default units of elevation/altitude/z in GeoJSON?
The GeoJSON spec says "The default CRS is a geographic coordinate reference system, using the WGS84 datum, and with longitude and latitude units of decimal degrees". It doesn't say seem to specify ...
0
votes
1answer
24 views
PHP PostGIS to geoJSON missing required parametar error
I'm using this PHP PostGIS to geoJSON script: https://gist.github.com/bmcbride/1913855
But I keep getting this error: 'missing required parameter: geotable'
This is my code:
# Retrive URL ...
0
votes
0answers
18 views
Extract polygons from embedded Google Map for QGIS
Total GIS amateur here assembling a map using QGIS for output to Adobe Illustrator...
I'm attempting to project the shapes from the map on this page: http://www.americanwineryguide.com/ onto my ...
0
votes
2answers
71 views
Can't read returned geojson
I've got a function that takes an Openlayers mouse click and puts the click location into a SQL statement which then gets passed to a JSP script which runs the SQL statement on the PostGIS database ...
1
vote
1answer
40 views
How do you make a function for changing projection with proj4js in Openlayers?
I have included Proj4js in OpenLayers. I would like to create a function (so I can use a make a button). To change the projection of my map.
I have included in javascript
Proj4js.defs["EPSG:54008"] ...
0
votes
2answers
32 views
How do you get all info from GeoJSON layer in Openlayers?
In OpenLayers I have added a GeoJSON layer (of the world) and created a simple infotool.
The GeoJSON layer contains multiple features for some countries.
If I click on a country I only get one ...
1
vote
1answer
56 views
OpenLayer and not well formed Json
I am learning to use GeoExt and OpenLayers, and I want to reproduce one of the examples given at the geoExt website. The script call a GeoJSON containg the position of Alp summits. I downloaded it via ...
0
votes
1answer
55 views
Loop over features of a GeoJSON object from CartoDB
I have just little knowledge about HTML and JavaScript. Nevertheless I was playing, copying and pasting around with Leaflet and CartoDB.
I want to display the features GeoJson in a table. This is ...
1
vote
1answer
46 views
Looking for a GeoJSON describing the french departments
Is there any place where I could find a GeoJson describing the borders of the french departments, or do I have to convert a .shp file?
0
votes
1answer
24 views
Attribute editing in QGIS on geoJson file
We have vector files in the format of geoJson files. We need to keep it in geoJson format as it is picked up by mobile devices via Restful services.
The problem is we want to change the attributes of ...
0
votes
1answer
44 views
geojson -> topojson : no output
Trying to convert my geoJSON file into topoJSON so
I downloaded topojson from npm and
followed the instructions on gis.stackexchange Convert GeoJSON to TopoJSON
basically the same as the topoJSON ...
-2
votes
1answer
24 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.
...
3
votes
2answers
103 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
65 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
56 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.
{
...
5
votes
3answers
163 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
(
{
...
1
vote
2answers
126 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);
}
...
0
votes
0answers
27 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 ...
1
vote
1answer
161 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 ...
0
votes
1answer
92 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 ...
3
votes
2answers
55 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.
...
0
votes
4answers
176 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 ...
2
votes
3answers
95 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 ...
1
vote
1answer
49 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
1answer
79 views
Saving part of OSM shapefile in QGIS as GeoJSON strips 'name' field to 25 characters long [duplicate]
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 ...
0
votes
1answer
20 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 ...
0
votes
2answers
126 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
1answer
111 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
92 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
63 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
94 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 ...
0
votes
1answer
111 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 ...
3
votes
1answer
249 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
0answers
185 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 ...
0
votes
0answers
30 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 ...
1
vote
1answer
158 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 ...
6
votes
2answers
257 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 ...
0
votes
1answer
71 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
181 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
200 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
152 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 ...
1
vote
2answers
145 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",
...
0
votes
1answer
211 views
Selection and Popups on Overlapping/Coincident Vector Layer Polygons in OpenLayers
I have a GeoJSON file of polygons that I am bringing into my OpenLayers session. Some of the polygons occupy the same space on the map. I am using a select control and popup control like:-
...
1
vote
1answer
123 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 ...
3
votes
0answers
58 views
How do I clip Geojson FeatureCollection with another Geojson polygon
I have a GeoJSON file that contains one FeatureCollection with a bunch of features that are polygons. I also have the boundary of the continental USA in another GeoJSON file. I'd like to clip the ...
0
votes
0answers
106 views
Creating a Map Tile Server?
So, I've fallen in love with Mapbox's javascript API, but I'm working for a non-profit that can't afford Mapbox's hosting. Luckily, their js accepts TileJSONs and makes reference to TileStream on ...




