[gdal-dev] Problems with OGRGeometry Intersects

2012-09-04 Thread Gabriel Fusca
Hi, I'm using Gdal 1.9. I have a function that has to perform a intersection of a geometry based on the click that is made on the screen. The raster file (Geotiff) that has a projected reference system (WGS 84 / UTM zone 21S) and the geometry a georeferenced system (EPSG - 4326 WGS84). The cli

Re: [gdal-dev] Problems with OGRGeometry Intersects

2012-09-04 Thread Gabriel Fusca
Sorry, I forget to say that I built Gdal with GEOS 2012/9/4 Gabriel Fusca > Hi, > > I'm using Gdal 1.9. > > I have a function that has to perform a intersection of a geometry based > on the click that is made on the screen. > > The raster file (Geotiff) that has a projected reference system (WGS

Re: [gdal-dev] Problems with OGRGeometry Intersects

2012-09-04 Thread Even Rouault
Le mardi 04 septembre 2012 23:04:16, Gabriel Fusca a écrit : > Hi, > > I'm using Gdal 1.9. > > I have a function that has to perform a intersection of a geometry based on > the click that is made on the screen. > > The raster file (Geotiff) that has a projected reference system (WGS 84 / > UTM z

Re: [gdal-dev] Problems with OGRGeometry Intersects

2012-09-05 Thread Gabriel Fusca
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. > pgeometry->Intersects(pquer

Re: [gdal-dev] Problems with OGRGeometry Intersects

2012-09-05 Thread Even Rouault
Selon Gabriel Fusca : > 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

Re: [gdal-dev] Problems with OGRGeometry Intersects

2012-09-05 Thread Gabriel Fusca
Hi, Thanks Even! This solves the problem! 2012/9/5 Even Rouault > Selon Gabriel Fusca : > > > Hi, > > > > Thanks for the answer. > > > > > OGRPoint querypoint = OGRPoint(Point.x_, Point.y_); > > > querypoint.assignSpatialReference(new > OGRSpatialReference(SrWkt.c_str())); > > > > It is not n