Pages

Sunday, October 16, 2016

Cutting a Line Shapefile with a Point Shapefile using Shapely

Shapely works with geometric classes.  Sometimes you want those geometries to come from
shapefiles.  That's where PyShp comes in.  In this example on GIS Stack Exchange, we take a line shapefile and a point shapefile with points on or near the line segments, and split those lines at the location of the nearest point.  At a minimum, the point must be inside the envelope of the line segment:

http://gis.stackexchange.com/questions/214344/split-polyline-shapefile-using-python-with-point-shapefile/214432#214432

Wednesday, October 12, 2016

Reproject a Polygon Shapefile using PyShp and PyProj

Via the blog "Geospatiality": In this post I will use the PyShp library along with the PyProj library to
reproject the local authority boundaries of Ireland, in Shapefile format, from Irish Transverse Mercator to WGS 84 using Python.

https://glenbambrick.com/2016/01/24/reproject-shapefile/

Tuesday, October 4, 2016

3D Multipatch Shapefile in Pure Python

Via GIS StackExchange...

 http://gis.stackexchange.com/questions/212821/pyshp-create-multipatch-cube/

3D cube shown in Esri ArcScene generated using PyShp
and the obscure "MultiPatch" shapefile type in pure Python