To avoid this kind of monkeypatching to parse the string returned from lyr.describe():
a more pythonic interface to be exposed to a layers datasource.
[springmeyer] essentially I think a list of fields should be exposed, as well as the name/type of the datasource and the encoding.
Further, datasource specific parameters can be exposed in the params object (once we get that working via python #330).
[springmeyer] added in r1121
you can now do:
'FIPS', 'ISO2', 'ISO3', 'UN', 'NAME', 'AREA', 'POP2005', 'REGION', 'SUBREGION', 'LON', 'LAT' ds.field_types()
, , , , , , , , , , ds.name()
[springmeyer] changing milestone... going to be part of 0.6.1 release
[springmeyer] this could use a review before the 0.6.1 release, so re-opening....
[springmeyer] r1162 added/exposed params() methods, also needs review/improvement
[springmeyer] leaving open and moving to 0.6.2 for further review