Import/Catalogue/The Department of Environment and Resource Management/Protected Areas Import/Translation
< Import | Catalogue | The Department of Environment and Resource Management/Protected Areas Import(Redirected from Australia/Queensland/The Department of Environment and Resource Management/Protected Areas Import/Translation)
Jump to navigation
Jump to search
""" Translation rules for Queensland National Parks python ogr2osm.py -t qldnationalparks -o ~/MapData/parksShapeToOSM/qldparks.osm -a ~/MapData/IQ_QLD_PROTECTEDAREASBDY_DCDB_A_0/IQ_QLD_PROTECTEDAREASBDY_DCDB_A.shp """ def translateAttributes(attrs): if not attrs: return tags = {} # Use the "ESTATENAME" attribute as the name= tag if attrs['ESTATENAME']: tags = {'name':attrs['ESTATENAME']} # static tags tags.update({'leisure':'nature_reserve'}) tags.update({'source':'Protected Areas of Queensland - Boundaries Dated: 30-09-2010'}) tags.update({'attribution':'State of Queensland (Department of Environment and Resource Management) 2010. Updated data available at http://dds.information.qld.gov.au/dds/'}) tags.update({'governance_type':'government_managed'}) tags.update({'site_ownership':'province'}) tags.update({'source_ref':'http://dds.information.qld.gov.au/dds/'}) tags.update({'website':'http://www.derm.qld.gov.au/parks_and_forests'}) # Depending on the value of the EST_TYPE, set the boundary= tag if attrs['EST_TYPE'] in ['NP','NC','NS','NY']: tags.update({'boundary':'national_park'}) elif attrs['EST_TYPE'] in ['SF','TR','CP','FR','RR']: tags.update({'boundary':'protected_area'}) if attrs['EST_TYPE'] in ['SF','TR']: tags.update({'natural':'forest'}) if attrs['EST_TYPE'] == 'CP': tags.update({'protection_title':'Conservation Park'}) tags.update({'protect_id':'3'}) if attrs['EST_TYPE'] == 'FR': tags.update({'protection_title':'Forest Reserve'}) tags.update({'protect_id':'6'}) if attrs['EST_TYPE'] == 'NC': tags.update({'protection_title':'National Park (Cape York Peninsula Aboriginal Land)'}) tags.update({'protect_id':'2'}) if attrs['EST_TYPE'] == 'NP': tags.update({'protection_title':'National Park'}) tags.update({'protect_id':'2'}) if attrs['EST_TYPE'] == 'NS': tags.update({'protection_title':'National Parks Scientific'}) tags.update({'protect_id':'2'}) if attrs['EST_TYPE'] == 'NY': tags.update({'protection_title':'National Park Recovery'}) tags.update({'protect_id':'2'}) if attrs['EST_TYPE'] == 'RR': tags.update({'protection_title':'Resources Reserve'}) tags.update({'protect_id':'6'}) if attrs['EST_TYPE'] == 'SF': tags.update({'protection_title':'State Forest'}) tags.update({'protect_id':'6'}) if attrs['EST_TYPE'] == 'TR': tags.update({'protection_title':'Timber Reserve'}) tags.update({'protect_id':'6'}) if attrs['CURGAZDATE']: tags.update({'start_date':attrs['CURGAZDATE'].replace('/','-')}) return tags #sys.exit()
Chas66 22:28, 12 March 2011 (UTC)