An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

1
vote
1answer
14 views

Unicode Decode Error for shapefile in Python

I have Python script for converting shapefiles to Geojson. My code works well if I use some usa data, but when I want to use some other encoding, it gives me this error: Traceback (most recent ...
2
votes
0answers
28 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
1answer
31 views

GeoJSON and HTML/JavaScript vs Shapefile and Silverlight

I'm developing a map application (Several shapefiles with OpenstreetMap or BingMap on background and some dynamically generated features on the map). I'vs created some part of it with Telerik RadMap ...
1
vote
1answer
9 views

URL for my Protocol.HTTP never called by OpenLayers?

I have an OpenStreetMap (OSM) map with a vector layer fetching data from a Node.js server setup on my local machine on port 9000. The data is in GeoJSON format. Here is the whole code: var ...
0
votes
0answers
16 views

GeoJSON of half the earth [duplicate]

I'm currently trying to model daytime/nighttime in leaflet, and the only way I currently see me being able to do that is to have a GeoJSON polygon reflecting half of the earth (for daytime/nighttime ...
3
votes
1answer
23 views

Lambert_Conformal_Conic: converting from shapefile to geojson fails

I have a shapefile that also contains a proj file that looks like so: PROJCS [ "MGI_Austria_Lambert", GEOGCS [ "GCS_MGI", DATUM [ "D_MGI", ...
0
votes
1answer
31 views

Displaying geojson data in leaflet

I am trying to access and display some data in a geojson layer and would appreciate if someone can take a look at my code below and suggest what I need to do to make it work. The result of the ...
1
vote
1answer
25 views

Is there a way to have a choropleth map in Excel reading data from a sheet?

Is it possible to have a solution similar to ESRI maps for office in which I want basically a geojson file or any file for that matters to render a choropleth map based on data in a sheet? Tried ...
1
vote
2answers
41 views

Row-crop field boundaries

I'm on the hunt for field boundary coordinates in the US in the form of GeoJSON, a Shapefile or any structured format that I can use to overlay on a map. I've tried looking at the US Department of ...
1
vote
1answer
24 views

Convert WKT (or geojson) geometry to numpy array of coordinates

I am looking for the fastest way to convert WKT or geojson geometry from string to numpy array of coordinates. Is it possible to do it strictly in Python and without creating geometry object such ...
2
votes
0answers
19 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 ...
4
votes
1answer
31 views

Leaflet: how to change default style on a point GeoJSON Layer?

I need to change style on a point GeoJSON layer in a Leaflet map. I'm using the following code: function onEachFeature(feature, layer) { if (feature.properties && ...
2
votes
1answer
25 views

Geoserver WFS - Can I Pass in Filter Parameters via the URL?

I'm trying to use PHP's CURL function to fetch geoJSON information from a GeoServer instance. I'm doing this using url variables rather than trying to construct a full xml GetFeature request. ...
1
vote
2answers
23 views

Converting Shapefile data to GeoJSON

I have access to some open data for which I want to obtain some coordinates to put onto a map. Unfortunately, the data is in the Shapefile format which is rather difficult to work with. I am trying to ...
1
vote
1answer
19 views

Error inserting GeoJSON in PostGIS

I know there is a similar question but I am getting a different error and none of those answers have helped. I am trying the following query (the GeoJSON itself is from the PostGIS website. INSERT ...
1
vote
0answers
23 views

What is wrong with my data receiving from php script for geoJSON TileLayer?

I want to get geo data as geojson for geojson tile layer requests in leaflet. I set up a geojson layer like this: https://github.com/glenrobertson/leaflet-tilelayer-geojson/ A php script answers ...
1
vote
1answer
29 views

Unable to save to in Geojson format with the correct projection

I have a shape file (Polygon) in Qgis that I wish to save in Geojson in order to display it with the mapbox javascript api. Original projection is in POSGAR 97 My issue is that it does not reproject ...
1
vote
1answer
23 views

Query and Visualize GeoJSON data [closed]

I am trying to visualize specific GeoJSON data. I am successfully loading the full GeoJSON file (Multipolygon) using Leaflet JS. Is there any query to find specific polygon from that GeoJSON file? ...
1
vote
1answer
105 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
0answers
24 views

how manage mysql spatial polygons in parent child style

I want to store location-polygon data in a parent-child relation. I am using spatial data in MySQL and Google map for polygon. Eg: World 1.1 US 1.2 China 1.3 Japan 1.4 South Africa 1.4.1 Pretoria ...
2
votes
1answer
29 views

Add GEOJSON layer in tilemill EACCES symlink Error

I'm trying to add a GEOJSON layer to Tilemill [ Version 0.10.2 (v0.10.1-293-g697c86c) ], installed on ubuntu 14.04. I've confirmed that the ID used is unique and attempted to load the file into my ...
2
votes
0answers
28 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 ...
1
vote
0answers
16 views

Openlayers external GeoJSON error handling

I'm making a map which refreshes itself in a given interval and shows the progress of objects on a vector layer with information from an external GeoJSON file. When the server is not accessible, or I ...
0
votes
0answers
20 views

Formating geojson file with leaflet ajax-plugin

First of all I apologize for my basic english. I have to say, too, that I'm really a newby in coding. I'm trying to create an interactive map using leaflet (you can see it here). I was able to show my ...
3
votes
2answers
54 views

Adding Properties to GeoJSON File

I have a GeoJSON file of the country of Haiti with the administrative boundaries for communes (i.e. counties). Here is the file: ...
2
votes
0answers
30 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 ...
1
vote
0answers
27 views

Adding marker on a leaflet map

I'm very new to GIS and for learning I started with building a simple web app with GeoDjango. I am using dango-leaflet. Since I have a very limited knowledge I am facing many challenges. I'm trying to ...
2
votes
1answer
32 views

Access to custom GeoJSON members in OpenLayers

I need to read a layer-wide attribute, from a GeoJSON file, set by a custom member to the object: {"type": "FeatureCollection", "features": [...], "search_polygon": "POLYGON (...)"} Since it seems ...
4
votes
2answers
165 views

get map tiles for a polygon

Based on this tutorial, I can easily find out a tile for a point. But is there an algorithm to find all tiles that are covered by a rectangle or lineString or by any other feature? I would greatly ...
0
votes
0answers
19 views

GeoJson layers with leaflet in IE8

I have built a website displaying a lot of line shapes, using geojson, on a leaflet map. This is working relatively well in most browsers, though speed could be improved. As usual IE8 is being the ...
2
votes
1answer
20 views

Figuring out what coordinates supposedly using 'NAD31 projection' refer to

I'm working with a GeoJSON file that contains sets of coordinates associated with street corners in the city of Montreal, Canada. The spec sheet of the API delivering those GeoJSON specifies that the ...
-1
votes
1answer
47 views

What is the best conversion tools?

I need to obtain a lot of base map in the following formats from a PostgreSQL DB: *.shp *.tab *.js (GEOJSON) I know that ogr2ogr is able to obtain these formats type. Do you know of other tools ...
1
vote
1answer
19 views

Retrieving routedescription geometry as GeoJSON

I'm building a small web-map and would wich to display a polyline representing a specific route via roads. With leafletjs it is easy to display the geometry on/over the map. So that's not the problem. ...
0
votes
0answers
22 views

geojson object with different representations and label/popoup conten

I have a quite complex geojson in terms of vertexes. It holds all the information which is needed in the webmap. it serves as the input for many layers like this (example for two): var represenation1 ...
0
votes
2answers
70 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: ...
0
votes
1answer
23 views

Not empty geometry having blank text

i'm having problem with geometry column, for some rows i have geometry with blank text, this query will describe more the problem : select geom, ST_AsGeoJSON(geom), ST_Isvalid(geom), ST_IsEmpty(geom) ...
0
votes
0answers
31 views

How to hide overlays in Leaflet layerControl if geojson var not found?

i would like to perform a specific task: i have a set of geojson layers, loading features from local files. i have the layercontrol on the map showing available layers to show/hide now, regarding ...
1
vote
1answer
49 views

Merge multiple linestring features into a single multilinestring

Using QGis or ogr2ogr how do I convert a vector file containing multiple linestrings features into a single multilinestring feature? At the moment I've been doing this manually by converting the data ...
6
votes
3answers
151 views

How to use Leaflet to efficiently show parts of a massive dataset?

I keep seeing non-GIS web developers running into this problem, and I'm not sure what the solution is. There is some dataset of thousands of items. We want to show a map to the user, with the ...
1
vote
0answers
36 views

Merge overlapping GeoJSON GeometryCollections

I need to merge three overlapping GeoJSON GeometryCollections of Polygon. Ultimately, the end result needs to be a geom type for PostGIS (e.g. MULTIPOLYGON) so I can easily check if particular points ...
5
votes
2answers
108 views

Leaflet: How to enable pan & zoom while GeoJSON still rendering?

I've overlaid a huge GeoJSON geometry on top of my Leaflet map, covering about 20 countries' borderlines (about 1,5 million vertices) using "L.geoJson". Each time I zoom in/out, the computer has to ...
1
vote
1answer
56 views

Translate coordinates in GeoJSON export

I am wondering if there is a way to apply a translation in coordinates for a GeoJSON export. Currently, there are negative coordinate values in my export, which I cannot have. I am trying to use ...
1
vote
0answers
17 views

QGIS view bounding box on Add vector layer GeoGSON protocol?

Our server can serve GeoJSON with an optional bounding box HTTP parameter. e.g. http://our_gis_server.org.au/layername?bbox=xmin,ymin,xmax,ymax In QGIS I can add this vector layer as a Protocol and ...
2
votes
1answer
56 views

Merge two geojson files

I have a global json files about countries' boundaries but the Russia is in two parts (two polygons). I want to merge the two parts in one, without the boundary at the middle. Is there a way to ...
0
votes
1answer
57 views

Optimum set up for large data sets such as mobile service coverage maps [closed]

When serving up large data sets such as mobile coverage maps (custom tile) mashed up with MapQuest maps and MapQuest POIs, is there any performance benefit to using shape file VS WMS tile PNGs? Any ...
3
votes
1answer
59 views

Day and night zone layer for Leaflet

I'm working with Leaflet and I'd like to show the day and night zones adding a dynamic layer to my map. I was thinking to add a static layer with some transparency and make it move every x minutes but ...
1
vote
1answer
58 views

How can I dynamically add features to a GeoJSON file? [closed]

I have tons of pictures which I am showing in markers on a LeafletJs map and currently have a fixed GeoJSON file. So I want to know is there any easy way to dynamically add new features to the GeoJSON ...
0
votes
1answer
60 views

Openlayers 3 display in Firefox and Chrome

I'm experiencing some issues with displaying OSM and GeoJSON. With Firefox v30 I see my GeoJSON data, but OSM is invisible. With Chrome v35 I see OSM, not my GeoJSON... What is the explanation? ...
3
votes
1answer
34 views

ogr2gui geojson to csv do not export coordinates

I tried to convert ogr2gui to convert geojson files to csv. The geojson file contains point data only. The resulting csv only contains attribute data, no coordinates. Is there a way to get the ...
0
votes
1answer
11 views

Guideline/scheme for naming properties in GeoJSON

Are there any guidelines/requirements for naming properties in GeoJSON? Should I add a vendor-prefix for my properties which only make in use with a specific application? I already read the ...