- Timestamp:
- Jun 6, 2007, 5:27:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/geospatial_data/geospatial_data.py
r4513 r4535 24 24 from anuga.utilities.anuga_exceptions import ANUGAError 25 25 from anuga.config import points_file_block_line_size as MAX_READ_LINES 26 27 DEFAULT_ATTRIBUTE = 'elevation' 26 28 27 29 class Geospatial_data: … … 53 55 of lists (or arrays) of length M. In the latter case the keys 54 56 in the dictionary represent the attribute names, in the former 55 the attribute will get the default name " attribute".57 the attribute will get the default name "elevation". 56 58 57 59 geo_reference: Object representing the origin of the data … … 208 210 if not isinstance(attributes, DictType): 209 211 #Convert single attribute into dictionary 210 attributes = { 'attribute': attributes}212 attributes = {DEFAULT_ATTRIBUTE: attributes} 211 213 212 214 #Check input attributes … … 514 516 attributes = {} 515 517 if file_name[-4:]== ".xya": 516 msg = 'Text file format is moving to comma seperated .txt files.' 517 warn(msg, DeprecationWarning) 518 # Maybe not phase-out, so we can load in geo-ref info 519 #msg = 'Text file format is moving to comma seperated .txt files.' 520 #warn(msg, DeprecationWarning) 518 521 try: 519 522 if delimiter == None:
Note: See TracChangeset
for help on using the changeset viewer.