Ticket #1968 (closed enhancement: fixed)

Opened 8 months ago

Last modified 8 months ago

OGR GeoJSON Driver

Reported by: mloskot Assigned to: mloskot
Priority: normal Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords: driver geojson
Cc: mloskot

Description

Today, on my website I announced usable prototype of new OGR driver to access datasources based on GeoJSON format.

Currently, the driver lives in SVN repository of MOSS4G project:

http://trac.osgeo.org/moss4g/browser/trunk/libs/gdal/extensions/ogr

I'd like to ask if there is an interest in this driver and if it would be possible to add it to the official OGR drivers set.

Attachments

gdal-ogr-geojson-20071105.patch (1.8 kB) - added by mloskot on 11/06/07 21:48:49.
Patch with OGR GeoJSON changes to existing GDAL files (does not include ogr\ogrsf_frmts\geojson subdirectory)

Change History

11/06/07 09:42:14 changed by warmerdam

  • owner changed from warmerdam to mloskot.

Mateusz,

Go ahead and add it, with all appropriate changes. Please make sure at least a small test script is added in gdal autotest, and some modest documentation in the OGR driver style is available.

11/06/07 21:48:49 changed by mloskot

  • attachment gdal-ogr-geojson-20071105.patch added.

Patch with OGR GeoJSON changes to existing GDAL files (does not include ogr\ogrsf_frmts\geojson subdirectory)

11/06/07 23:01:23 changed by hobu

Basics of the driver added in r12632 r12633 and r12634

11/07/07 00:11:46 changed by mloskot

  • owner changed from mloskot to hobu.
  • cc set to mloskot.

I'm passing this ticked to Hobu who offered his help in porting GeoJSON driver to the repo. Big thanks to Hobu!

11/07/07 01:34:25 changed by hobu

Better 3d support r12636

11/07/07 07:00:56 changed by mloskot

Fixed JSON-C parser so it handles numbers in E notation (r12647)

Fixed problems with unsupported or not readable geometries reported by the GeoJSON reader as NULL pointers. So, we still generate features object but with NULL geometries and avoid segfaults (r12468). Now, the driver can successfully access sample GeoServer? datasource using following URL:

http://sigma.openplans.org:8080/geoserver/wfs?request=GetFeature&typeName=topp:states&version=1.0.0&outputformat=json

11/10/07 07:29:48 changed by mloskot

Started the ogr_geojson.py test script (r12689)

11/10/07 08:44:19 changed by mloskot

I added some basic test cases to the ogr_geojson.py script and a bunch of .geojson files (r12690).

11/15/07 07:30:28 changed by mloskot

  • status changed from new to assigned.
  • owner changed from hobu to mloskot.

11/15/07 07:31:10 changed by mloskot

  • status changed from assigned to closed.
  • resolution set to fixed.

I'm closing this ticket and I believe we can consider the GeoJSON driver as successfully incorporated to the GDAL upstream.