Selon Gabriel Fusca <[email protected]>:

> 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().
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to