<div dir="ltr"><div><div><div><div><div><div><div><div>Hi List,<br><br></div>We use GEOS with GDAL in our MapWinGIS project (<a href="http://mapwingis.codeplex.com">mapwingis.codeplex.com</a>) and we have some questions about clipping and how it is implemented in GEOS.<br>

<br></div>I have a polyline shapefile with the USA major roads, most roads overlap multiple states.<br></div>I also have a polygon shapefile with USA states.<br><br></div>When I clip the roads with the states I would expect a polyline as a result where a road that crosses a state border is clipped resulting in two polylines. <br>

Is this the expected behavior and which GEOS methods should I use to accomplish this?<br><br></div>Now switching the layers. I clip the states with the roads and when a road crosses the state and starts and ends outside the state the state is divided into two polygons with the road as the new border.<br>

</div>This might be less common, so I wonder if I can expect from GEOS to handle this. And again which GEOS methods should I use if this is possible?<br><br></div>Of course I did some searching for documentation, but couldn't find it.<br>

</div>If the documentation explains my questions please give me the url.<br><div><div><div><div><div><div><div><br></div><div>Thanks,<br>
<br>
Paul</div><div><div><div>
</div></div></div></div></div></div></div></div></div></div>