[Gdal-dev] ogr geometry intersection

Frank Warmerdam warmerdam at pobox.com
Mon May 29 11:27:08 EDT 2006


Didrik Pinte wrote:
> Hi,
> 
> Reading the doc, I'm wondering what's the behaviour of the
> OGRGeometry.Intersection method.
> 
> When two polygons intersects, will the resulting object be a Polygon or
> a MultilineString ? 
> Is there a way to be sure that the result of the intersection is a line
> and not a surface ?
> 
> I can explain my problem in more details if needed.
> 
> Anyway, thank you in advance for the help,

Didrik,

GEOS is used to implement the intersection so you would really need to
dig into the GEOS (or perhaps even JTS) docs to find out how this is
implemented.  Or, of course, you could experiment.

My expectation is that an intersection between abutting polygons would
result in either a linestring, or a multilinestring.  but I'm not too sure
about it.

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    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list