UDST / spandex

Spatial Analysis and Data Extraction
http://nbviewer.ipython.org/github/synthicity/user_meeting_2014/blob/gh-pages/spandex/spandex_demo.ipynb
BSD 3-Clause "New" or "Revised" License
22 stars 7 forks source link

Reshape (clip) function #23

Closed janowicz closed 9 years ago

janowicz commented 10 years ago

Function to reshape (clip) one geometry by another geometry.

image

A reshape (or clip) operation is used to adjust parcel boundaries in cases where this is appropriate. The most common application of this operation is when part of a parcel is underwater. We are interested in the land associated with parcels, so the underwater portion of parcels should be clipped away.

The main idea is that st_area(parcel.geom) should yield the land area. An example of where this operation would be applied: land parcels in San Mateo county that sit by the bay or ocean, but extend very far out into the bay or ocean.

daradib commented 9 years ago

Renamed to trim because this is the reverse of ESRI clip. Done in #42. May need more extensive testing for correctly handling multiple rows and MultiPolygons. Closing for now.