OpenLayers OpenLayers

Ticket #915 (closed feature: fixed)

Opened 9 months ago

Last modified 9 months ago

GeoJSON Format Class

Reported by: crschmidt Assigned to: tschaub
Priority: major Milestone: 2.5 Release
Component: Format Version: 2.4
Keywords: Cc:
State:

Description

Add a new format class for saving to GeoJSON.

This was established as a priority for 2.5 by camptocamp during the IRC meeting, and has been asked for a number of times by different people. Using JSON callbacks to obtain data, parsing JS objects can be much faster than GML/KML/etc.

Attachments

geojson.patch (57.2 kB) - added by crschmidt on 08/22/07 23:46:02.
patch against trunk for geojson format
geojson.2.patch (63.8 kB) - added by tschaub on 08/23/07 12:22:57.
GeoJSON patch

Change History

08/22/07 23:46:02 changed by crschmidt

  • attachment geojson.patch added.

patch against trunk for geojson format

08/22/07 23:47:45 changed by crschmidt

  • keywords set to review.

Attached patch has:

  • Tests -- 66 for GeoJSON class, 7 for JSON.
  • Format classes for JSON, GeoJSON

No example, since that will probably come in when Tim brings in more of the vector formats from the xml branch.

Please review.

08/23/07 12:22:57 changed by tschaub

  • attachment geojson.2.patch added.

GeoJSON patch

08/23/07 12:25:01 changed by tschaub

Huge thanks for the tests and the bug fixes Chris.

I've added a GeoJSON example - I'll replace this with a more generic vector formats example after we get GML changes in.

I've also made a number of doc changes - to make the ndoc output nicer.

All tests pass in IE and FF.

I'll happily commit if the changes look good.

08/23/07 12:40:08 changed by tschaub

  • keywords deleted.
  • status changed from new to closed.
  • resolution set to fixed.

in w/ r3994