Changeset 9655 for trunk/anuga_core/anuga/utilities/spatialInputUtil.py
- Timestamp:
- Feb 10, 2015, 6:31:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/anuga/utilities/spatialInputUtil.py
r9553 r9655 171 171 172 172 ########################################################################### 173 def read_polygon(filename ):173 def read_polygon(filename, close_polygon_shapefiles=False): 174 174 """ 175 175 … … 192 192 # Read as either a polygon or line shapefile 193 193 try: 194 outPol=readShp_1PolyGeo(filename )194 outPol=readShp_1PolyGeo(filename, dropLast = (not close_polygon_shapefiles)) 195 195 assert len(outPol)>1 196 196 except: … … 1170 1170 allBreakLines = {} 1171 1171 for shapefile in fileList: 1172 allBreakLines[shapefile] = read_polygon(shapefile) 1172 allBreakLines[shapefile] = read_polygon(shapefile, 1173 close_polygon_shapefiles=True) 1173 1174 1174 1175 return allBreakLines
Note: See TracChangeset
for help on using the changeset viewer.