bugfixes in geos and spatialite
Merge pull request #3026 from andreacremaschi/master

bugfixes in geos and spatialite