An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

1
vote
2answers
3k views

How to get GeoJSON features using OpenLayers?

Can anybody explain how to get geojson features .Can somebody show way to get attributes from geojson text. OpenLayers.ProxyHost = "/gt/proxy.cgi?url="; var lon = 5; var lat = 44; var ...
0
votes
1answer
252 views

How to publish my map from geoserver [duplicate]

Possible Duplicate: How to develop a map with layers in Geoserver? I'm trying to create a simple map for my city. I have a shape file my city, but I can't create on the web. I tried to ...
1
vote
2answers
474 views

How to use GeoJSON from Geoserver?

Please help me on how can get my map from Geoserver. I want create my country web but I can nott see it in my browser but I can see in Geoserver. Please help me I am very new openlayers and Geoserver. ...
2
votes
1answer
109 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 ...
7
votes
1answer
3k views

Open a GeoJSON file with QGis

If I have a GEOJson file, for example a file named test.js with inside the following: { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": {"type": "Point", "coordinates": ...
3
votes
1answer
2k views

Parsing a GeoJSON file with jQuery

I'm trying to iterate through a GeoJSON file (below) and eventually populate an array with a few attributes within "properties". I keep coming up short working through various examples I can find. Do ...
3
votes
2answers
1k views

Getting json feature id on OpenLayers

I'm projecting some features using json format on OpenLayers. I need to get the id from the feature (not the OpenLayers' id but the one in the json file). The file looks something like this. ...
1
vote
2answers
452 views

OpenLayers GeoJSON: limit significant digits to 6 when using write()?

Is there a way that OpenLayers.Format.JSON write() method to serialize coordinates using 6 decimals only ? Example: instead of http://pastie.org/4200997 to have http://pastie.org/4200994
1
vote
1answer
469 views

Draw svg-circle on a coordinate with polymaps

I'm making a tracker system which uses polymaps to display a satellite image. The code is copied from the bing-example on the website of polymaps. I now want to periodically call an update function ...
3
votes
2answers
2k views

Convert GML to GeoJSON

I have downloaded a GML file from Statistics Canada and would like to convert it into GeoJSON to use parts of it in a D3 visualization on the web. However, I did not find a converter that would do ...
5
votes
1answer
594 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 ...
1
vote
1answer
289 views

how to make openlayers example work in jsFiddle

Hy, I'm working on a jsFiddle with a openlayers example in it. http://dev.openlayers.org/releases/OpenLayers-2.11/examples/snapping.html At the moment it's not working because it's not getting a ...
5
votes
1answer
743 views

Working examples of Leaflet/Polymaps with GeoJSON tiles generated from Tilestache using Shapefiles?

I'm looking to create choropleths using GeoJSON tiles generated from ESRI Shapefiles by TileStache(or similar), in either Leaflet or Polymaps. So far reading and drawing GeoJSON from both Leaflet and ...
1
vote
1answer
478 views

Select independent objects using GEOJson on Openlayers

I'm working with OpenLayers and loading a couple of GEOJson files which works perfectly. Now I want to be able to select individual components of the GEOJson file. As for example if I have more than ...
3
votes
1answer
4k views

How do I get GeoJSON data from GeoServer into show up on my Leaflet map?

I'm trying to create a simple "Green" map for my city. The idea being that it is a website with a map and layers you can turn on and off. I am serving the data through GeoServer and am using GeoJOSN ...
4
votes
2answers
384 views

Where can I find GeoJSON resources files?

I'm looking for demographic information and various things, and most of the time data are available as CSV (my application use geoJSON format). Shall I encode the CSV to geoJSON or is there a ...
5
votes
2answers
323 views

How can I setup a simple web mapping system?

I'm new to mapping and GIS and I'd like to setup a mapping system to display informations on a map, I think the following could work but I'm not sure how good it is.. 1- I store my data (lat, lng ...
12
votes
2answers
5k views

ogr2ogr converting to shapefile - how to select feature types?

Shapefiles can only have one geometry type, but many other formats (kml, geojson) can have multiple types. When converting to shapefiles, is it possible to to tell ogr2ogr to create multiple ...
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 ...
0
votes
1answer
1k views

Alternate colors of GeoJSON linestring segments in OpenLayers?

I am rendering a vector linestring via GeoJSON on top of an OpenLayers map. I'd like to alternate the styling between two slightly different shades of blue, such that the colors alternate from one ...
2
votes
2answers
451 views

how we create line between two cordinates on polymap?

I am working on d3 and polymaps, I plot map and create circle on the given latitude and longitude which retrieves from the JSON file but now I want to connect those circles with line. I tried to do it ...
2
votes
4answers
3k views

How to convert SHP into GPX or JSON?

I would like to convert the tree inventory shape files of London (Canada) into a GPX file and if possible into a JSON file. You can download the archive from their Open Data website. It contains the ...
4
votes
1answer
710 views

Why are GeoJSON coordinates different exported from QGIS vs. ogr2ogr?

I have a shapefile with a Google Mercator projection (900913) that I need converted to GeoJSON. I need to do this on a regular basis amongst other things so I wrote a shell script to do it using ...
3
votes
1answer
448 views

Is it valid to have a properties element in an geoJSON featureCollection?

Is it valid to have a properties element with a featureCollection-element as parent? This is, according to geojson.org valid: { "type": "FeatureCollection", "features": [ { "type": ...
4
votes
2answers
1k views

Beginner needs suggestions on map clicks and geojson

I'm a beginner with programming, and javascript. I went to the FOSS4G-NA conference and was very inspired to learn more. I'm trying to learn PostGIS, and have come across a very useful tutorial for ...
2
votes
1answer
406 views

How can I convert geoJSON data to GPX format

I want to know how I can convert geoJSON data to GPX format.
4
votes
3answers
2k views

MySQL to GeoJSON - Formatting Issue

I'm trying to make a select on a mysql table and then write it out to a geojson file. I'm getting close but there are a few issues. Here's what I have so far: <?php require("dbinfo.php"); // ...
1
vote
0answers
45 views

How to load GeoJSON files directly onto QGIS? [duplicate]

Possible Duplicate: Plugin or script to get QGIS to display geoJSON in a layer Is there a way to do this? Or is there a way i can put it onto PostGIS and then load it onto QGIS? I actually ...
2
votes
1answer
1k views

Polymaps Project + Geojson + D3

How are you doing ? I am Mehul Nahar working on a project which is similar to http://www.tableausoftware.com/learning/examples/gpa-analysis. I have used Polymaps platform, where I have used cloudmade ...
8
votes
3answers
2k 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 ...
1
vote
1answer
583 views

Vector layer won't move as window resizes in Chrome

I have a GeoJSON layer that I am treating as a javascript object in my openlayers map. When I use IE or Firefox, everything works fine. However, in Chrome, as I resize the window, the GeoJSON layer is ...
3
votes
1answer
2k views

OpenLayers & GeoJSON files

After some hunting, it seems that if I have an a geojson file, I NEED the data and map to be on a server in order to view this in OpenLayers because of the protocol class. I saw an example where I can ...
1
vote
0answers
130 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? ...
5
votes
1answer
149 views

Representing a TIN in GeoJSON

Regarding the GeoJSON representation of a TIN, are there any specifications or existing implementations I may not be aware of? You could probably hack one together using the multipolygon ...
10
votes
5answers
2k 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
1answer
3k views

OpenLayers - a GeoJSON layer

OpenLayers can parse GeoJSON in order to create an array of features. So, it is possible to create a layer from GeoJSON input by simply parsing it and then adding the features to a new vector layer. ...
1
vote
3answers
2k 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 ...
2
votes
1answer
1k views

Openlayers dynamic filtering/styling of geojson layer

I'm working with Openlayers and overlaying a geojson file representing species type over OSM. I have an HTML form that allows users to select a species type and I then need to filter the geojson layer ...
8
votes
3answers
3k 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 ...
4
votes
1answer
435 views

Is there an XML equivalent to GeoJSON?

In my web application, I am retrieving geospatial data from a server backend (Java) to the browser frontend (JavaScript). I am considering two options of how to serialize the data in this ...
3
votes
4answers
525 views

Can ArcPy's AsShape be used with GeoJSON FeatureCollection of Polygons with Labels?

The AsShape documentation provides examples that work very well. However, I have been given what I believe to be valid GeoJSON that is a FeatureCollection of two polygons each with a Label. It ...
1
vote
2answers
817 views

Convert ArcGIS Javascript api Geometry Object to GeoJson [duplicate]

Possible Duplicate: How to convert ArcGIS Server JSON to GeoJSON? How to convert ArcGIS Javascript api Geometry Object to GeoJson using Javascript?
1
vote
1answer
294 views

Polymaps / Tilestache tiling grid mismatch

I have set up a basic PostGIS / Tilestache / gunicorn / nginx / Polymaps test environment, rendering my dataset from PostGIS to GeoJSON and shipping it out to be rendered in Polymaps. That works ...
4
votes
2answers
1k views

Using QGIS, how can I add a bounding box attribute?

I have a shapefile where I am exporting the features to GeoJSON objects with ogr2ogr based on a simple where clause. One thing that I would like to be included in the GeoJSON object is the 'bbox' ...
0
votes
1answer
2k views

Building Floor Plan map using OpenLayers and json

How to show map of building floor plan using OpenLayers and json. moreover, i want to know that how to change features dynamically with zoom based from json files. Let's take example, Initial the ...
2
votes
3answers
521 views

How to create a efficent linestring out of geography points using postgis

I'm trying to create a linestring out of geography points. At the moment I'm doing it like this: select ST_GeographyFromText(ST_Makeline(a.record_point)) from ( select (record_point::geometry) from ...
2
votes
1answer
967 views

How to render GeoJSON tiles from Tilestream for polymaps?

Have been using polymaps successfully till now. Need to generate GeoJSON tiles for Canada Provinces. Found Tilestream and got it working with Tilemill. Is there a way I can make Tilestream hand ...
7
votes
4answers
6k views

Source for GeoJSON data for the US

Does anyone know of any good sources for US data (counties, congressional districts, etc) in GeoJSON format? Has anyone converted public-domain shapefiles/sources to GeoJSON that they would be willing ...
8
votes
1answer
2k 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 ...
0
votes
1answer
2k views

Data request to GeoServer: “Could not determine geoserver request from http request GET /geoserver/ows?service=WFS HTTP/1.1”

I am using ExtJS ajax to send a data request to geoserver (which is in another domain different from web server), codes are as follows: Ext.Ajax.request({ //send data request url : ...