[gdal-dev] GEOS geometries SRS not set

Frank Warmerdam warmerdam at pobox.com
Mon Feb 20 13:58:09 EST 2012


On 12-02-20 10:54 AM, Martin Chapman wrote:
> It appears that when new OGR geometries are created using the spatial
> operations features of GEOS via OGR methods like ConvexHull, Buffer, etc… that
> the spatial reference of the newly created OGR geometry is not assigned. Is
> this by design or is it an oversight? If by design, what was the reasoning? I’m
> using 1.8.1.

Martin,

Is it an omission; however, I will caution that the SRS property on
geometries is not taking very seriously in OGR.  Many drivers neglect
to set it, and there are few methods that utilize it.  If you file a
ticket we can try and fixup the GEOS bindings.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://home.gdal.org/warmerda
and watch the world go round - Rush    | Geospatial Software Developer



More information about the gdal-dev mailing list