[Gdal-dev] How to copy a geometry without the spatial reference system ?

Frank Warmerdam warmerdam at pobox.com
Mon Nov 7 08:33:22 EST 2005


On 11/7/05, lky <moon_inwell at 163.com> wrote:
>
> Hello,every one
>
> I want to copy a geometry without the spatial reference system orginal.
>
> How can I do?

Kunyang Li,

The Clone() method on a geometry can be used to make a copy
in memory.  It will also copy the spatial reference if the original
has one.  I'm not sure what you mean by copying "without the
spatial reference".  You can always call assignSpatialReference(NULL)
on the new geometry after cloning it from the original to clear the
spatialreference.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list