Opened 16 years ago

Closed 16 years ago

#1968 closed enhancement (fixed)

OGR GeoJSON Driver

Reported by: Mateusz Łoskot Owned by: Mateusz Łoskot
Priority: normal Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords: driver geojson
Cc: Mateusz Łoskot

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 (1)

gdal-ogr-geojson-20071105.patch (1.8 KB ) - added by Mateusz Łoskot 16 years ago.
Patch with OGR GeoJSON changes to existing GDAL files (does not include ogr\ogrsf_frmts\geojson subdirectory)

Download all attachments as: .zip

Change History (10)

comment:1 by warmerdam, 16 years ago

Owner: changed from warmerdam to Mateusz Łoskot

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.

by Mateusz Łoskot, 16 years ago

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

comment:2 by hobu, 16 years ago

Basics of the driver added in r12632 r12633 and r12634

comment:3 by Mateusz Łoskot, 16 years ago

Cc: Mateusz Łoskot added
Owner: changed from Mateusz Łoskot to hobu

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

comment:4 by hobu, 16 years ago

Better 3d support r12636

comment:5 by Mateusz Łoskot, 16 years ago

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

comment:6 by Mateusz Łoskot, 16 years ago

Started the ogr_geojson.py test script (r12689)

comment:7 by Mateusz Łoskot, 16 years ago

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

comment:8 by Mateusz Łoskot, 16 years ago

Owner: changed from hobu to Mateusz Łoskot
Status: newassigned

comment:9 by Mateusz Łoskot, 16 years ago

Resolution: fixed
Status: assignedclosed

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.