Ignore:
Timestamp:
Feb 10, 2015, 6:31:03 PM (10 years ago)
Author:
davies
Message:

Allowing polygon shapefiles used as breaklines to keep final point. Also printing more info on structure inlets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/anuga/utilities/spatialInputUtil.py

    r9553 r9655  
    171171           
    172172    ###########################################################################
    173     def read_polygon(filename):
     173    def read_polygon(filename, close_polygon_shapefiles=False):
    174174        """
    175175
     
    192192            # Read as either a polygon or line shapefile
    193193            try:
    194                 outPol=readShp_1PolyGeo(filename)
     194                outPol=readShp_1PolyGeo(filename, dropLast = (not close_polygon_shapefiles))
    195195                assert len(outPol)>1
    196196            except:
     
    11701170        allBreakLines = {}
    11711171        for shapefile in fileList:
    1172             allBreakLines[shapefile] = read_polygon(shapefile)
     1172            allBreakLines[shapefile] = read_polygon(shapefile,
     1173                close_polygon_shapefiles=True)
    11731174
    11741175        return allBreakLines
Note: See TracChangeset for help on using the changeset viewer.