<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 01/05/2013 05:46 PM, Paul Meems
wrote:<br>
</div>
<blockquote
cite="mid:CAHNf2YQr+CvnS9AzKTs+7_+z+dK9+qVuQh7zBTybKid37Age2Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi all,<br>
<br>
</div>
As some of you already know we are changing MapWindow
GIS to let it use more OGR/GDAL methods instead of our
own/other libraries.<br>
</div>
Until now we have 'migrated' a lot of functionality and we
are very pleased with it.<br>
<br>
</div>
We still have a few methods left we have not yet migrated,
because I'm having trouble finding the equivalent gdal/ogr
methods.<br>
</div>
So my question is: How can I do the following tasks using
GDAL/OGR.<br>
<br>
</div>
<div>* Convert 3D shapefile to 2D shapefile<br>
</div>
<div>* Clip polygon with a line (shape in a different shapefile)<br>
</div>
<div>* Clip shapefile with polygon (shape in a different
shapefile)</div>
<div>* Erase shapefile with polygon (shape in a different
shapefile)<br>
</div>
</div>
</blockquote>
<br>
For the last two there probably are Layer methods:<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.gdal.org/ogr/classOGRLayer.html">http://www.gdal.org/ogr/classOGRLayer.html</a><br>
<br>
Examples here: <a class="moz-txt-link-freetext" href="http://trac.osgeo.org/gdal/wiki/LayerAlgebra">http://trac.osgeo.org/gdal/wiki/LayerAlgebra</a><br>
<br>
I'm not sure about the 2nd one.<br>
<br>
Ari<br>
<br>
<blockquote
cite="mid:CAHNf2YQr+CvnS9AzKTs+7_+z+dK9+qVuQh7zBTybKid37Age2Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<br>
</div>
<div>We have compiled GDAL with GEOS so we can access those
methods as well.<br>
</div>
<div><br>
</div>
Thanks in advanced.<br>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<br>
Paul<br>
<br>
<div
style="font-size:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif">
<div style="border:1px solid
rgb(229,229,229);background-color:rgb(248,248,248);padding:0.8em
0.8em 0.3em">
<div style="margin:0px 0px 8px">
<p style="margin:0px">
<span><b><img moz-do-not-send="true"
style="float: left; margin-left:
5px; margin-right: 5px;"
src="http://www.bontepaarden.nl/bontepaarden/images/newButton.png"
alt="" height="120" width="160">Paul
Meems </b><br>
<span>Release manager, configuration
manager</span><br>
<span>and forum moderator of MapWindow
GIS.</span><br>
<a moz-do-not-send="true"
href="http://www.mapwindow.org/"
target="_blank"><span>www.mapwindow.org</span></a><br>
<br>
<span>Owner of MapWindow.nl - Support
for</span><br>
<span>Dutch speaking users.</span><br>
<a moz-do-not-send="true"
href="http://www.mapwindow.nl/"
target="_blank"><span>www.mapwindow.nl</span></a><br>
</span></p>
<p style="margin:0px"><b><br>
</b></p>
</div>
</div>
<img moz-do-not-send="true"
src="http://p1.wisestamp.com/pixel.png?p=mozilla&v=3.9.12&t=1322134056890&u=482737fd0c4ca423"
height="1" width="1"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<br>
</body>
</html>