[gdal-dev] SRS_UL_US_FOOT etc in C#?
Mark Cheyne
cheynm at yahoo.com
Tue Dec 11 16:53:58 EST 2007
Hello - I am using SpatialReference.SetLinearUnits()
(http://www.gdal.org/ogr/classOGRSpatialReference.html#2016fee7b234666c5e94d528661e6729)
which takes a string identifying the unit, and a
double defining its conversion factor to meters.
in the C# wrap, I see the static readonly strings like
OSGeo.OSR.Osr.SRS_UL_US_FOOT and
OSGeo.OSR.Osr.SRS_UL_US_FOOT_CONV which would seem to
be the sort of thing I want as the arguments to
SetLinearUnits().
But interestingly, the values of these constants is
their NAME, not their VALUE as listed in the #DEFINEs
in ogr_srs_api.h
(http://www.gdal.org/ogr/ogr__srs__api_8h-source.html)
For example, I'd expect
OSGeo.OSR.Osr.SRS_UL_US_FOOT = "U.S. Foot"
but it is
OSGeo.OSR.Osr.SRS_UL_US_FOOT = "SRS_UL_US_FOOT"
huh?
thanks, Mark
Mark Cheyne
(608) 332-2235 (cell)
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
More information about the gdal-dev
mailing list