Hi Malcolm, I recently published a new project called osm4j which can be used to achieve this. The wiki [1] already contains pointers to resources about the project. The tutorial [2] may be helpful as well, espescially the sections about building geometry [3] and about applying polygon operations [3].
Basically the library allows you to build JTS objects from ways and relations (LineString, Polygon and MultiPolygon) and apply the operations from the Geometry [5] class to do intersections with arbitrary polygons. Sebastian [1] http://wiki.openstreetmap.org/wiki/Osm4j [2] http://www.topobyte.de/tutorials/osm4j/index.html [3] http://www.topobyte.de/tutorials/osm4j/building-geometry.html [4] http://www.topobyte.de/tutorials/osm4j/using-polygon-operations.html [5] http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/geom/Geometry.html On Mon, 9 Nov 2015 09:00:28 +0000 Malcolm Herring <[email protected]> wrote: > Are there any tools out there that will properly truncate ways & > multipolygons at bounding box boundaries, keeping closed ways & > mutipolygons as properly formed areas? > > > _______________________________________________ > dev mailing list > [email protected] > https://lists.openstreetmap.org/listinfo/dev _______________________________________________ dev mailing list [email protected] https://lists.openstreetmap.org/listinfo/dev

