CREATE OR REPLACE VIEW public.srid_units AS
SELECT srid, CASE WHEN proj4text LIKE '%+units=%' THEN True 
			ELSE False 
			END AS units_set,
		CASE WHEN proj4text LIKE '%+units=m%'	 THEN 'Meters'
			WHEN proj4text LIKE '%+units=ft%' THEN 'Feet'
			WHEN proj4text LIKE '%+units=us-ft%' THEN 'Feet (US)'
			WHEN proj4text LIKE '%+units=link%' THEN 'Link (Dunno)'
			WHEN proj4text LIKE '%+units=%' THEN 'Set, not caught properly'
			ELSE 'Decimal Degrees'
			END AS units,
		proj4text
	FROM public.spatial_ref_sys
;
