[gdal-dev] OGR functionality to remove holes?
lhomme.xavier at gmail.com
Mon Jan 20 12:48:12 PST 2014
3D engine doesn't like hole in a polygone.
A way to render such polygon is to link the outer ring and the inner ring.
(But it's better to use tesselation.)
for example if you have a rectangle ABCD and a triangle describing the hole
( EFG) , you can create a polygone ABCDAEFGA
It's how I understand the question. I don't think you will find such
function in GEOS (or JTS)
2014/1/20 Even Rouault <even.rouault at mines-paris.org>
> Le lundi 20 janvier 2014 21:27:18, agerrius a écrit :
> > Hi all,
> > Does OGR have any build in functionality to convert features with holes
> > into features without holes? I don't mean delete the inner rings, but
> > change the geometry so that it covers the same area with only the outer
> > ring.
> I'm afraid not to understand what you mean. What is the difference between
> deleting inner rings and "changing the geometry so that it covers the same
> area with only the outer ring" ?
> There's no one-line invocation for such functionnality. But it can be done
> with the OGR API and a few dozains lines of code.
> > I know GlobalMapper has such a function, but it would be useful if I
> > perform it in my code directly with the OGR library.
> > Thanks,
> > Arno
> > --
> > View this message in context:
> > 99099.html Sent from the GDAL - Dev mailing list archive at Nabble.com.
> > _______________________________________________
> > gdal-dev mailing list
> > gdal-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
> Geospatial professional services
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev