An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

3
votes
0answers
279 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 ...
3
votes
0answers
124 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 ...
3
votes
0answers
72 views

Can QGIS give GeoJSON layers a meaningful default name?

When I add a GeoJSON layer to my QGIS project, it always gets the name OGRGeoJSON. This is in contrast with shapefile layers, which seem to be named after the file name by default. Is there a way to ...
3
votes
0answers
123 views

GeoJSON support in ArcObjects 10 .NET

i am currently trying to build a geoprocessing application using OpenLayers and ArcObjects, I have some features that user draws on openlayers and i need to send these features to arcobjects for ...
2
votes
0answers
77 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
0answers
391 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
0answers
108 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
0answers
637 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
38 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
152 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
164 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 ...
1
vote
0answers
8 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. ...
1
vote
0answers
23 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 ...
1
vote
0answers
29 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
0answers
11 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 ...
1
vote
0answers
32 views

Create Google Static Maps API from GeoJSON

I am using MapBox to create some maps with polygon boundaries. These maps will be embedded into a custom PHP app I am developing using their API. I need to be able to print these maps so I need to ...
1
vote
0answers
138 views

“Can't extract geo keys from object, malformed geometry?” Possible self intersection?

My '2dsphere' index creation fails at a document. The command i write for creation of index is: db.collection.ensureIndex({'geometry' : "2dsphere"}) It returns the following error: { "err" : ...
1
vote
0answers
76 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?
1
vote
0answers
86 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 ...
1
vote
0answers
29 views

mongoDB query not working as expected

My mongoDB collection has all three types of shapes. A point is stored as { 'CE_NO': '_', 'E_NAME': 'RAILWAY BOOKING CENTER', 'SRCTYPE': 'Facility', 'geom': { 'coordinates': [ ...
1
vote
0answers
76 views

django---error in displaying data and displaying it on the map

. i am trying to display a feature queried from postgis. . i also designed a user input field to enter the id of the desired feature to be displayed. . i have already queried the attributes first ...
1
vote
0answers
383 views

Access-Control-Allow-Origin problem when loading json file from Amazon S3 to display in OpenLayers

This is my code for displaying geojson in OpenLayers, where "geourl" is directed to a json file in Amazon S3. geojson_layer = new OpenLayers.Layer.Vector("GeoJSON", { strategies: [new ...
1
vote
0answers
153 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 ...
1
vote
0answers
103 views

Possible to rollback from QGIS 2.0.1?

I'm running Ubuntu 12.04 LTS. Unfortunately Ubuntu has automatically upgraded my QGIS from 1.8 to 2.0.1. And 2.0.1 which creates GeoJSON files that OpenLayers cannot parse. Would be best for me to ...
1
vote
0answers
608 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 ...
1
vote
0answers
336 views

translating and scaling viewport to fit geojson map in D3js

I am trying to load a map of Rio de Janeiro (Brazil) in GeoJson for with D3js the code and the map is here: https://gist.github.com/4157853 I can open the map normally with Qgis, but with d3js ...
1
vote
0answers
740 views

searching GeoJSON features

After googling for many days and reading the OL documentation, I don't understand well how the filterToParams in OpenLayers.HTTP protocol should work, what I'm trying to do is to find and display the ...
1
vote
0answers
131 views

How to show an array of 2d points/polygons in Polymaps (Cartesian coordinate system)

I need to display these 2d points/polygons (Cartesian coordinate system) on Polymaps with GeoJson layer. I do not use the other layers. Do I need to convert xy coordinates to the lat lon? If so, how? ...
0
votes
0answers
5 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
0answers
18 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 ...
0
votes
0answers
14 views

openlayers 3 geojson style

here's a part of my html/js file. I cant display my geojson and really dont know the reason why. debug only says : "TypeError: f is null" any1 help ? Thx var map = new ol.Map({ target :'map', layers: ...
0
votes
0answers
27 views

OpenLayers Vector Features with common properties in multiple Layers

I am trying to manage features across different layers. Features are displaying weather parameters at some points on the map. Hence there is a wind layer, a temperature layer, etc. which all are ...
0
votes
0answers
49 views

Geojson not rendered with Mapnik

I am trying to generate a tile with Mapnik with a GeoJSON. The stylesheet.xml with the part to render the GeoJSON is the following: <Style name="cities" filter-mode="first"> <Rule> ...
0
votes
0answers
23 views

How to serialize a HTML form to GeoJSON data?

I'm developing a Cordova/PhoneGap mobile application and using NodeJS for server and MongoDB as database. I need to serialize GPS data from mobile phone to send it to my webservice with latitude and ...
0
votes
0answers
26 views

GeoJson attributes encoding limitation

I have problem when trying to encode attribute values in latin1 using ogr GeoJson driver. Accent char are not displayed correctly. Is the geoJson encoding is limited to UTF-8? I cant find any info ...
0
votes
0answers
56 views

Google Maps + Geojson vector layers --> Save as Image

I've created a custom website with Google Map's + geojson layers read from a Postgis database. I draw some other layers on top of it, including some polygon and line layers... I display this website ...
0
votes
0answers
38 views

OpenLayers GeoJson style

I have a GeoJson that I'm displaying in OpenLayers. I created a style map and added it to a layer. The problem is that in GeoJSON I have two types of features - Points and Linestring. And they both ...
0
votes
0answers
115 views

How to generate random GeoJSON polygons (latitude, longitude)

I am looking how to generate polygons in GeoJSON format with random locations (latitude, longitude), if I generate totally random set of points it will not produce valid polygons. So my question is ...
0
votes
0answers
38 views

GeoJSON layer with local projection in Leaflet

I try to add a GeoJSON layer to my map in Lambert II projection. The GeoJSON contains few points. It don't work if the GeoJSON have more than 1 feature, but for 1 feature, it work ! I don't know why ...
0
votes
0answers
59 views

TileStache : Unknown geometry type in geoJSON file

I'm currently trying to set up a TilSstache server on Ubuntu 12.04 to serve some GeoJSON tiles from a shapefile/JSON file (administratives boundaries) for a web mapping project using the Leaflet ...
0
votes
0answers
170 views

Venue/Indoor Map using D3.js and Geojson

I have created geojson file which contains all the features of 1st floor of a shopping mall. I got that venue map projected using d3.js with different colors but only some parts not the complete map. ...
0
votes
0answers
240 views

Java + GMaps JSF + PostGis + JasonSanford / geojson-google-maps

Guys want to test how to plot lines and points in google maps using Java + JSF + PostGIS + GMaps JasonSanford / GeoJSON-google-maps. First have a spaceport in postgis with a table of rows and other ...
0
votes
0answers
31 views

How to realize two overlaying layers? One with Popups, the other one with Info-div!

I'm trying to display two overlaying layers (geojson). Layer1 should give me information by hovering over it (works fine based on the Leaflet Choropleth Map Example. Layer2 is situated within Layer1 ...
0
votes
0answers
21 views

From NBM to UWN

Okay, I'll start this off by saying that I'm not a GIS expert by any means. I'm also working with data and places that most people don't work with, but I'm hoping it can be boiled down to basics. I've ...
0
votes
0answers
474 views

D3.js with dynamic geojson data (SQL server/.NET)

I have a $.ajax function which returns the geojson data from the asp.net mvc server method. I want to know how I could send that as a parameter to d3.json() function. Better if anyone shared code ...
0
votes
0answers
220 views

D3.js with dynamic geojson data

I have a $.ajax function which returns the geojson data from the asp.net mvc server method. I want to know how I could send that as a parameter to d3.json() function. Better if anyone shared code ...
0
votes
0answers
22 views

loading geojson into qgis, '…' is added to the end of each string

I am importing a geojson file into qgis. a snippet of the geojson looks like this: "properties": { "poEs": [ 8.2248394077e-08, ...
0
votes
0answers
254 views

Using Tile Mill and GeoJSON

I am trying to use Tile Mill and GeoJSON layers to have an image appear within a tooltip but it is not working properly. The process I go through to get the GeoJSON: 1) load .shp into QGIS 2) save ...
0
votes
0answers
27 views

Find area that it's in one GeoJSON file but not the other

I have two GeoJSON files, A and B. The features in A contain everything in B, and more (they're contour lines, and A is a lower elevation). How can I get the difference between the two files? As ...
0
votes
0answers
212 views

Leaflet - How to display all stacked marker information on a single mouse click

I am using leaflet to view layers from GeoServer. There is a WMS basemap layer and WFS feature layer returning GeoJSON data. When I click on a Marker I use jQuery as the popup. If I click on a stacked ...