Ticket #1968 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

OGR GeoJSON Driver

Reported by: mloskot Owned by: 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 Download (1.8 KB) - added by mloskot 4 years ago.
Patch with OGR GeoJSON changes to existing GDAL files (does not include ogr\ogrsf_frmts\geojson subdirectory)

Change History

Changed 4 years ago 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.

Changed 4 years ago by mloskot

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

Changed 4 years ago by hobu

Basics of the driver added in r12632 r12633 and r12634

Changed 4 years ago by mloskot

  • cc mloskot added
  • owner changed from mloskot to hobu

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

Changed 4 years ago by hobu

Better 3d support r12636

Changed 4 years ago 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

Changed 4 years ago by mloskot

Started the ogr_geojson.py test script (r12689)

Changed 4 years ago by mloskot

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

Changed 4 years ago by mloskot

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

Changed 4 years ago 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.

Note: See TracTickets for help on using tickets.