Hi, I think there is a bug in io/WKBReader.cpp in the C++ port.
At the line 312, the SRID of the geometry recentrly created by the factory is overwritten by the SRID coming from the WKB data. But if the WKB data does not contains the SRID, its value will be 0 even if the factory defines an other SRID. I propose to patch this with a new condition before overwriting the SRID : the SRID of the factory is keeped if the WKB does not provide a SRID value. Do you agree with this ? If yes, is somebody able to commit the patch ? Hugues Romain RCSmobility - Software for public transport http://www.rcsmobility.com/
WKBReader.patch
Description: Binary data
_______________________________________________ geos-devel mailing list geos-devel@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/geos-devel