An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

2
votes
0answers
63 views

Developing workaround to arcpy.asShape truncating all values to 3 decimal points?

I've read a few questions\answers about converting a GeoJSON Shape into an ESRI Object. Unfortunately most of the answers pointed to decoding the dictionary's manually. Im a bit more lazy ^_^ The ...
2
votes
0answers
53 views

Using OpenLayers' Refresh strategy for GeoJSON

I am trying to use the Refresh Strategy reading a GeoJSON file in OpenLayers, however it doesn't work (but it works perfectly using for instance .Fixed() strategy), here is my code: var ...
2
votes
0answers
101 views

Getting JSON/JSONP/GeoJSON from GetFeature WFS request to ArcGIS for Server?

I'm trying to perform a GetFeature request to an ArcGIS 10.2.1 for Server WFS service and would like to get response in geoJSON format. If I look at the GetCapabilities from the service the only ...
2
votes
0answers
291 views

How to correctly import GeoJSON in PostGIS? [closed]

I'm trying to migrate GeoJSON data to PostGIS database and I thought that ogr2ogr is the tool: ogr2ogr -f PostgreSQL PG:"host={} user={} port={} dbname={} password={}" test.geojson -nln ogr_test ...
2
votes
0answers
61 views

ogr2ogr does NOT save “styles”, say “color”, information; how do I get around it?

I'm using ogr2ogr to convert KML to GeoJSON and I'd like to extract style information along with the data. The bash script I am using is: filekml="/tmp/poly.kml" filegeojson="/tmp/poly.geojson" ...
2
votes
0answers
44 views

Stray horizontal lines after converting from GeoJSON to topojson

After converting a GeoJSON file to topojson, and loading the topojson into Leaflet, stray lines appear in the resulting map. Like this: What is causing this? If I view the GeoJSON, these stray ...
2
votes
0answers
48 views

loading geojson in leaflet

I just added the geoJSON vector layer in leaflet for my hybrid mobile app using phonegap, the problem is that when I add the geoJSON file of size larger than 2mb the application crashes. What is the ...
2
votes
0answers
73 views

How can I merge adjacent polygons and return all (adjacent and not adjacent) as Multipolygon?

I have a postgres database with administrative boundaries and their geometry. Each of those boundaries have an ident number. What I want to achieve: First I want to select all rows which are ...
2
votes
0answers
214 views

Z-Index in GeoJSON features using leaflet

I have a watershed polygon with sub-watersheds contained within the larger watershed. I would like the sub-watersheds drawn on top. Can i control the drawing order of features within a geojson object ...
2
votes
1answer
224 views

How can we generate GeoJSON from SQL data with latlong

Is there any way we can create GeoJSON from SQL server table with Latitude & Longitude Data?
2
votes
1answer
186 views

Using ogr2ogr to download GeoJSON files from ArcGIS MapServer

I am trying to download as a GeoJSON file a line feature from a ArcGIS MapServer REST Service run by the National Park Service (link is here) so that I can open the data in QGIS. Using the guide ...
2
votes
0answers
811 views

How can a leaflet SVG overlay be placed outside of the leaflet-overlay-pane?

I have SVG on top of GeoJSON in my map. How can a leaflet SVG overlay be placed outside of the leaflet-overlay-pane while keeping GeoJSON in place in the leaflet-overlay-pane? (For example, how could ...
2
votes
1answer
285 views

How to get data from TileMill tileLayer properties in Mapbox for click/hover

I've successfully used Leaflet to load a geoJSON polygon-shapefile with data, and added click and hover interactivity to the layer. For a large dataset, I switched to mapbox.js 1.6.1, used TileMill to ...
2
votes
0answers
186 views

How to add an offset to a GeoJSON layer in Leaflet?

Using the example GeoJSON tutorial code at leafletjs.com. Change the myLines variable so that the two lines overlap, but run in opposite directions as follows: var myLines = [{ "type": ...
2
votes
3answers
192 views

How to get a bbox selection of huge shapefile as GeoJSON?

I have a 4.29 GB Shapefile from which I want to extract features as GeoJSON, defined by a bounding box. This should be as fast as possible, because I want to use it in a web application. My first ...
2
votes
0answers
241 views

Folium GeoJSON Overlay Not Appearing

I am in the midst of a task which involves the clustering of assessment neighborhoods into larger neighborhoods (data link). The goal is build these neighborhoods in a manner consistent with major ...
2
votes
0answers
821 views

Geoserver WFS get feature doesn't work - “SyntaxError: missing ; before statement”

I'm trying to use geoserver WFS json for creating vector layer (instead of using WMS) because this is a layer I redraw every 20 seconds. This is the code I use : function getJSON() { var ...
2
votes
0answers
40 views

simple raster format to use in Web applications?

I'm building a Web application in which users create and edit very coarse raster data. They're assigning values to cells in a georeferenced grid. Right now I'm storing the values in a multidimensional ...
2
votes
0answers
183 views

Show geoJSON properties in jQuery Mobile Panel

First off I'm a novice at JS so please bear with me if this is a simple task to complete. I'm currently using the stock LeafletJS popup bubble to display the properties from my geoJSON. However, I ...
2
votes
0answers
266 views

R, GeoJSON and Leaflet

I recently learned about leafletjs.com from an R-Bloggers.com post. One such tutorial that I would like to achieve is to create interactive choropleth maps with leaflet. I have been using the rjson ...
2
votes
1answer
148 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. ...
2
votes
1answer
276 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 ...
2
votes
1answer
77 views

Which conditions does the geoJSON file read from the server in?

I've added an alert to the function myReadFunction in order to detect function calls. As according to my observations, the function readMyFunction is called sometimes while I have been navigating on ...
2
votes
1answer
114 views

how to see multiple features from GeoJSON

In Pablo's answer: Open a GeoJSON file with QGis He says he 'imported each type at a time'. How do you do that? I am working with a GeoJSON file that has a mixture of points and polygons, but points ...
1
vote
3answers
476 views

Using geojson hosted on GitHub from Leaflet: it doesn't work

I'm trying to use a geojson hosted on GitHub (rif. https://raw.githubusercontent.com/cesaregerbino/DatiGeo/master/ScuoleTorino.geojson), from Leaflet. here you are my code .... My first ...
1
vote
4answers
322 views

Does shapefile or MapInfo TAB have advantage as 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
3answers
1k views

Exporting 2 shp layers to geojson using quantum GIS

I will explain with an example: I have 2 shp files for Tanzania. Tanzania inland waters http://www.diva-gis.org/data/wat/TZA_wat.zip Tanzania administrative boundaries ...
1
vote
1answer
1k views

How to get correct format of coordinates for export to geojson from QGIS?

I've created a custom map in QGIS with a few shapefiles. I'm using leaflet.js to render the map and the shapefile points and everything lines up correctly. The CRS is set to 4326. When I export the ...
1
vote
1answer
130 views

Simplifying Shapefile without risking Spatial Accuracy?

I am building a feature for a web application. Basically would use the ABS (Australian Business Statistics) data to render the regions on the Google Maps. I am able to implement the basic working ...
1
vote
1answer
83 views

How to limit decimal digit of GeoJSON

I am using postGIS. I am using ST_AsGeoJSON(geom) function to get GeoJSON data of Geom field. Its returning a long lat value that have 13 digits after decimal point. Is there any way to reduce or ...
1
vote
3answers
3k views

Trouble Displaying GeoJSON file in OpenLayers

I am noobie to OpenLayers and can not for the life of me figure out how to display a geoJson file. This seems like it should be easy but I have been banging my head for a day. I'm sure I am missing ...
1
vote
2answers
328 views

OpenLayers data moves when panning map

I have an OpenLayers map. On to this I have loaded a GeoJSON file. When I pan the map the GeoJSON data moves relative to the basemap. Surely this isn't right! Can anyone shed some light no why ...
1
vote
2answers
40 views

GeoJSON from OpenStreetMap with bike routes of a city only?

How can I get (if it's possible) a GeoJSON from OpenStreetMap with bike routes of a city only? I have to say that I'm pretty new with the all the map/geo language. But as a developer I'm ...
1
vote
3answers
602 views

How to change Leaflet marker color on mouseover?

I'm having a hard time figuring out why the Leaflet method setstyle will change the color of a polygon but not the color of my markers. Polygon works fine: But the markers won't change colors: ...
1
vote
1answer
742 views

ogr2ogr : Converting KML to GeoJson

I have a requirement convert .HML file to GeoJSON or JSON. Can you please recommend open source command line tools on GNU/Linux(2.6.32-358.14.1.el6.x86_64)? I have installed gdal, I am getting beloow ...
1
vote
1answer
6k views

How can I change the style of marker in leaflet (from GeoJSON)?

I'm serving GeoJSON to leaflet and by default it get a blue icon marker. I'm trying to change the style so I'll be able to use the feature properties as part of the style , but no matter what I do , ...
1
vote
1answer
474 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
1answer
357 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 ...
1
vote
1answer
68 views

shapefile for mumbai area or section wise

please don't kill me if this question is listed anywhere else, i really searched high and low to find answer to this question. i am working on a project in which i need to plot data on Mumbai city ...
1
vote
1answer
121 views

OpenLayers and GeoJSON

Recently I started learning Openlayers 2x and I've been struggling for a while now with a GeoJSON and it's projections. So, here is the deal; I successfully added wms layers from ( ...
1
vote
3answers
43 views

How can I create GeoJson map from OSM Data

I am trying to build a map of countries in the some countries in Europe (Spain/France/Portugal). What is the best way to build such map: Should I look for shp files, then concatenate them. Is ...
1
vote
1answer
80 views

Geopandas/folium map not displaying

Good afternoon, I'm trying to use a combination of geopandas, pandas and folium to create a polygon map that I can embed incorporate into a web page. For some reason, it's not displaying and wonder ...
1
vote
1answer
62 views

Problem with Leafletjs and GeoJSON

I am new to Leafletjs and I am trying to figure out how to plot a polyline on a map using a geoJson object. I've gotten as far as getting a map, making it centered on a given lat/long and setting the ...
1
vote
1answer
294 views

Online WKT and GeoJSON viewer

I once found a great but simple webpage that has a drop down with several text-based GIS formats such as GeoJSON and WKT, and a text box to copy/paste your data. The feature is then drawn on a world ...
1
vote
1answer
62 views

PostGIS - How to do ST_UNION on each feature of a geojson FeatureCollection

I have a simple geoJSON featureCollection composed of 2 features: featureCollection = {u'type': u'FeatureCollection', u'features': [{u'geometry': {u'type': `u'MultiPolygon', u'coordinates': ...
1
vote
2answers
203 views

Export polygon in geojson as multipolygon

Anyone knows if is there any way to export a polygon layer in geojson, as multipolygon? I have a multipolygon shapefile. But there are single and multi polygons. When I export it to geojson, I got ...
1
vote
1answer
134 views

Adding popup to geojson layer based on feature property?

I'm using leaflet and trying to add a popup to a point on the map that will return a property of the point from the geojson file. Going off this post has been helpful problem adding pop-up to GeoJSON ...
1
vote
1answer
976 views

How to get LatLng array from geoJSON Layer in Leaflet?

i need to hand the latlng coordinates from my phpPostGIS-served geoJSONLayer as an array over to a new added HeatMap Layer. L.geoJSON has an build-in option: coordsToLatLng( coords )" and a static ...
1
vote
1answer
83 views

ArcGIS Server JSON to GeoJSON does not always work

I'm using GDAL 1.10.1 for reading ArcGIS Server responses with automatic conversion to GeoJSON format as described in How to convert ArcGIS Server JSON to GeoJSON? post. However, it looks like some ...
1
vote
1answer
26 views

What format comes out when you export from OSM

I am trying to export this osm output (and then convert it into geojson). I click export and get a file called "map." What format is this file in?