[Gdal-dev] OGR Geometry Contains() function

Frank Warmerdam warmerdam at pobox.com
Wed Feb 8 11:10:26 EST 2006


On 2/8/06, Aykut KOÇAK <aykutkocak at superonline.com> wrote:
> Hi there,
>
> In OGR object tree, is there any chance to adjust some kind of treshold
> for Contains() and similar compare functions? I have some data collected
> with GPS which has got 20 - 40 meters difference from my LINESTRINGs and
> I'd like to match these 2 datasets with a accuracy of eg.30 meters.


Aykut,

As Mateusz mentions Buffer is the solution.  The Contains
operator is based on GEOS and does not include thresholds.
Buffer is exposed in Python.

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