[Featureserver] PostGis w/o OGR

Christopher Schmidt crschmidt at metacarta.com
Tue Dec 11 13:40:06 EST 2007


On Tue, Dec 11, 2007 at 10:16:30AM -0800, Josh Livni wrote:
> I recently had the need to remove the OGR dependency from PostGIS.py, 
> which is nice if you want to run FeatureServer with PostGIS on a box 
> where installing OGR could be a hassle.
> 
> If anyone else would find this simple modification helpful, please feel 
> free to make use of the attached patch.
> 
> Note:  I've tested the patch with simple and multi geometries, on tables 
> with mixed simple and multi geometries.  As far as I can tell I've got 
> it so it returns the same thing it used to (eg it strips out all but the 
> first geometry in a multigeometry situation), however it's extremely 
> possible that I missed a case in there somewhere. 
> 
> If anyone else wants to test this patch so Chris might feel extra 
> comfortable committing it (as he noted, it could be considered a 
> regression going from OGR parsing to kludgy string manipulation), please 
> test away and post results.  Either way, hopefully someone finds it useful.

I hope to be able to write some test cases for this and integrate this
myself at some point, but additional feedback from other users will
accelerate the process. Dropping the OGR dependancy for PostGIS
datasources would be a big win if we can do it.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Featureserver mailing list