Pratap, Obviously only the first of the five polygons should be identified. I tested with postgis using geos with version "3.4.2-CAPI-1.8.2 r3921".
So, the issue is probably not with geos. Please tell me if you find any solution to the issue. On Thu, Jul 31, 2014 at 1:51 PM, Pratap Chelamilla <pratap.chelami...@amigooptima.in> wrote: > Hi Chaitanya, > > 82.4626 23.0721 0.00202492 > > > geometry->exportToWkt(&aftertrans) > > aftertrans POLYGON ((82.123893241937822 > 23.126845863962984,82.381596352429924 23.475093310573939,82.646264411854261 > 23.259179893675146,82.715913901176449 22.813423162013123,82.388561301362145 > 22.820388110945341,82.388561301362145 22.820388110945341,82.123893241937822 > 23.126845863962984)) > > > geometry->exportToWkt(&aftertrans) > > aftertrans POLYGON ((83.516883028381642 > 22.653229336572082,83.886025321789262 22.778598417352029,84.192483074806901 > 22.096033421994552,83.844235628195946 22.033348881604581,83.816375832467074 > 22.054243728401239,83.516883028381642 22.653229336572082)) > > > geometry->exportToWkt(&aftertrans) > > aftertrans POLYGON ((83.379917111984923 > 23.359672759378359,83.685680326555683 23.373847213033955,83.701879702162074 > 23.361697681329158,83.560135165606098 23.16933009600319,83.333343907116543 > 23.140981188691995,83.379917111984923 23.359672759378359)) > > > geometry->exportToWkt(&aftertrans) > > aftertrans POLYGON ((82.748141463335443 > 22.592227340025289,83.064029287660176 22.772445393646457,83.185524604708164 > 22.569953198566491,83.084278507168179 22.357336393732528,82.729917165778232 > 22.367461003486525,82.748141463335443 22.592227340025289)) > > > geometry->exportToWkt(&aftertrans) > > aftertrans POLYGON ((82.814963887711826 > 23.064034154561607,83.185524604708164 23.151105798445993,83.213873512019362 > 22.991136964332821,82.997206863283793 22.962788057021626,82.997206863283793 > 22.962788057021626,82.814963887711826 23.064034154561607)) > > > selected Feature 5 > > > > If i select any feature it is selecting the last created feature i.e feature > 5. > > > > > > > > > > > > > > On Thu, Jul 31, 2014 at 11:42 AM, Chaitanya kumar CH > <chaitanya...@gmail.com> wrote: >> >> Pratap, >> Provide the EWKT of a set of geometry(after transform) and geom that are >> failing. >> >> >> On Thu, Jul 31, 2014 at 11:14 AM, Pratap Chelamilla >> <pratap.chelami...@amigooptima.in> wrote: >>> >>> Hi Chaitanya, >>> >>> yes, this is happening for every data source, >>> >>> >>> OGRFeature* feature = poLayer->GetFeature(shapeList[loop]); >>> OGRGeometry* geometry = feature->GetGeometryRef(); >>> if (cordinateTransform) >>> geometry->transform(cordinateTransform); >>> OGRGeometry* geom = point->Buffer(tDelta); >>> >>> if(geometry->Contains(geom)|| geometry->Intersects(geom)|| >>> geometry->Equals(geom)) >>> { >>> identifiedRecordIndex = feature->GetFID(); >>> } >>> >>> >>> It is working with the earlier version of gdal,After checking the >>> condition it is not going in. >>> >>> >>> >>> On Thu, Jul 31, 2014 at 10:26 AM, Chaitanya kumar CH >>> <chaitanya...@gmail.com> wrote: >>>> >>>> Pratap, >>>> >>>> Can you provide a code snippet? Is this happening for every data source? >>>> How far is the other feature? Is the distance consistent? >>>> >>>> >>>> On Wed, Jul 30, 2014 at 5:58 PM, pratap chelamilla >>>> <pratap.chelami...@amigooptima.in> wrote: >>>>> >>>>> Hi , >>>>> >>>>> Unable to identify feature at selected Position,Earlier Version of gdal >>>>> 1.9 >>>>> with geos-3.1.1 Working fine, But I have build the newer version >>>>> gdal-1.11 >>>>> with geos-.3.4.2, It is identifying the feature but not exactly at the >>>>> same >>>>> place, it is showing feature from different position. >>>>> >>>>> >>>>> There's some special thing I should be doing? I'd appreciate any help. >>>>> >>>>> Thank you very much in advance. >>>>> >>>>> GDAL_VER='1.11.0' >>>>> GDAL_VERSION_MAJOR='1' >>>>> GDAL_VERSION_MINOR='11' >>>>> GDAL_VERSION_REV='0' >>>>> GEOS_CFLAGS='-I/d/gdal/geos-3.4.2_build/include' >>>>> GEOS_CONFIG='/d/gdal/geos-3.4.2_build/bin/geos-config' >>>>> GEOS_LIBS='-L/d/gdal/geos-3.4.2_build/lib -lgeos_c' >>>>> >>>>> >>>>> >>>>> -- >>>>> Regards, >>>>> Pratap. >>>>> >>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://osgeo-org.1560.x6.nabble.com/Unable-to-identify-feature-at-selected-position-with-gdal-1-11-with-geos-3-4-2-tp5154190.html >>>>> Sent from the GDAL - Dev mailing list archive at Nabble.com. >>>>> _______________________________________________ >>>>> gdal-dev mailing list >>>>> gdal-dev@lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev >>>> >>>> >>>> >>>> >>>> -- >>>> Best regards, >>>> Chaitanya kumar CH. >>>> >>>> +91-9494447584 >>>> 17.2416N 80.1426E >>> >>> >>> >>> >>> -- >>> Regards, >>> Pratap. >> >> >> >> >> -- >> Best regards, >> Chaitanya kumar CH. >> >> +91-9494447584 >> 17.2416N 80.1426E > > > > > -- > Regards, > Pratap. -- Best regards, Chaitanya kumar CH. +91-9494447584 17.2416N 80.1426E _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev