 			sex,
 			scientific_name,
 			IDENTIFIEDBY,
-			case when MINIMUM_ELEVATION is not null then MINIMUM_ELEVATION || '-' || MAXIMUM_ELEVATION || ' ' || ORIG_ELEV_UNITS
-			else ''
-			end altitude
+			 to_meters(MINIMUM_ELEVATION, ORIG_ELEV_UNITS ) min_elev,
+			 to_meters(MAXIMUM_ELEVATION, ORIG_ELEV_UNITS ) max_elev
 		from
 			flat
 		where

		</cfif>
	</cfloop>


	<cfset tmp=tmp & chr(10) & s.sequence_identifier>
	<cfset tmp=tmp & chr(9) & sd.COLLECTORS>
	<cfset tmp=tmp & chr(9) & sd.cdate>
	<cfset tmp=tmp & chr(9) & sd.country>
	<cfset tmp=tmp & chr(9) & sd.identifiedby>
	<cfset tmp=tmp & chr(9) & sd.dll>
	<cfset tmp=tmp & chr(9) & sd.altitude>
	<cfset tmp=tmp & chr(9) & sd.guid>
	<cfset tmp=tmp & chr(9) & host>
	<cfset tmp=tmp & chr(9) & dstg>

	<cfset tmp=tmp & chr(9) & s.tissue>
	<cfset tmp=tmp & chr(9) & s.source_material_id>
	<cfif len(s.source_material_id) gt 0>
		<cfset thenote=listappend(thenote,"tissue-lib (#source_material_id#) is specimen part barcode.","; ")>
	<cfelse>

	</cfif>
	<cfset tmp=tmp & chr(9) & tnt>
	<cfset lnum=lnum+1>
