Split, Dissolve and Erase

114 views
Skip to first unread message

Adam Estrada

unread,
May 8, 2012, 10:19:40 PM5/8/12
to geospati...@googlegroups.com
Hi,

I am trying to cut ESRI out of my current workflow and am very limited on what libraries I can use to complete my current project. I was wondering if anyone has rolled any of those geometric operations using pyshp. Split generates a new shapefile from all the unique features in a single shapefile. Dissolve basically merges sets of shapes together and the ESRI erase function subtracts one feature from another. I am trying to gauge a level of effort needed to roll my own using this library...

Any thoughts on this would be great.

Thanks,
Adam

Joel Lawhead

unread,
May 8, 2012, 10:58:57 PM5/8/12
to geospati...@googlegroups.com, geospati...@googlegroups.com
Adam,

Pyshp is just a data library. For geometry operations I suggest one of the following options: Shapely, OGR Python bindings, GeoScript (jython)

Also take a look at QGIS.

There are a few other options out there but the ones above are the best.

- Joel

--
Joel Lawhead, PMP
NVision Solutions Inc.
Phone: 228-242-0014
Fax: 228-242-0013
Cell: 228-342-1891
Email: jlaw...@nvs-inc.com
Web: http://www.nvs-inc.com

Adam Estrada

unread,
May 10, 2012, 7:04:38 AM5/10/12
to geospati...@googlegroups.com
Thanks Joel,

Understand about the options you mentioned but all of them require that they exist (already compiled) on my computer. I can't really do that which is why I was wondering if anyone has already reinvented the wheel with pyshp. I know its a reach but I figured it wouldn't hurt to ask...

Cheers,
Adam

Rich Signell

unread,
May 10, 2012, 7:08:50 AM5/10/12
to geospati...@googlegroups.com
Just FYI, Shapely was just recently added to the Enthought Python
Distribution, which installs on both 32 & 64 versions of Win, Mac &
Linux.
--
Dr. Richard P. Signell   (508) 457-2229
USGS, 384 Woods Hole Rd.
Woods Hole, MA 02543-1598
Reply all
Reply to author
Forward
0 new messages