Decide how wide you want the cut to be. Buffer the line by half of that amount, so that your line is now a polygon that wide. Use the difference operation to remove that polygon's area from the one you want to split. The result should be a MultiPolygon.
If you don't want to lose any of the polygon's area, you'll need to do something more complicated. On Tue, Nov 16, 2010 at 10:29 PM, Robert Sanson <[email protected]> wrote: > Does anyone have an algorithm to split a polygon using a Linestring using > Shapely? > > Many thanks, > > Robert Sanson > > > This email and any attachments are confidential and intended solely for the > addressee(s). If you are not the intended recipient, please notify us > immediately and then delete this email from your system. > > This message has been scanned for Malware and Viruses by Websense Hosted > Security. www.websense.com > > _______________________________________________ > Community mailing list > [email protected] > http://lists.gispython.org/mailman/listinfo/community > > _______________________________________________ Community mailing list [email protected] http://lists.gispython.org/mailman/listinfo/community
