[Gdal-dev] OGR Geometry Contains() function

Aykut KOÇAK aykutkocak at superonline.com
Wed Feb 8 11:46:30 EST 2006


Thanx to everbody for quick response,

        if (geo_cnt==0):
            buf=geo_ref.Buffer(3.500)
            if ( buf.Contains(pnt) == 1 ):
                pnt_index=i

working fine for now...

BR

Aykut

Frank Warmerdam wrote:

>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
>
>
>
>  
>


-- 
Aykut KOÇAK

 Elektronik Mühendisi
(/Electronics Engineer/)
 
 E-Posta
(/E-Mail/ )

 aykutkocak at superonline.com




More information about the Gdal-dev mailing list