[gdal-dev] Problems with OGRGeometry Intersects

Gabriel Fusca gabrielfusca at suremptec.com.ar
Wed Sep 5 08:52:28 PDT 2012


Hi,

Thanks Even! This solves the problem!



2012/9/5 Even Rouault <even.rouault at mines-paris.org>

> Selon Gabriel Fusca <gabrielfusca at suremptec.com.ar>:
>
> > Hi,
> >
> > Thanks for the answer.
> >
> > > OGRPoint querypoint = OGRPoint(Point.x_, Point.y_);
> > > querypoint.assignSpatialReference(new
> OGRSpatialReference(SrWkt.c_str()));
> >
> > It is not necessary to transform the query point because the Point is at
> > the same spatial reference system.
>
> Good.
>
> >
> > > pgeometry->Intersects(pquerypoly)
> >
> > Intersects perform a transformation to verify the intersection of the
> > geometries?
>
> No. The geometries passed to Intersects (and all other methods that take 2
> geometries as input) must be in the same SRS. So you have to transform one
> of
> them to the SRS of the other with TransformTo().
>



-- 
Gabriel Fusca
SUR Emprendimientos Tecnológicos

Perú 345  Piso 5to Oficina "B" (C1067AAG)
Ciudad de Buenos Aires, Argentina
Tel. +54 (11) 4342-2976/84
gabrielfusca at suremptec.com.ar
http://www.suremptec.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120905/4edc9d5f/attachment.html>


More information about the gdal-dev mailing list