in2Trans.shpConversion¶

Conversion functions to read/ write Shape files

Functions

SHP2Array

Read shapefile and convert it to a python dictionary

extractFeature

Extract feature nFeature2Extract from featureIn

readLine

Read line from .shp Use SHP2Array to read the shape file.

readPoints

Read points from .shp Use SHP2Array to read the shape file.

readThickness

Read shapefile and fetch info on features’ ids and thickness values

removeFeature

Remove feature number nFeature2Remove from featureIn

writeLine2SHPfile

write a line to shapefile