Opened 12 years ago

Closed 12 years ago

#2081 closed defect (fixed)

bad constant values in OGR C# wrap?

Reported by: markcheyne Owned by: tamas
Priority: normal Milestone: 1.5.0
Component: CSharpBindings Version: 1.5.0 betas/RCs
Severity: normal Keywords:
Cc:

Description

There are many public static readonly string constants exposed in the OSGeo.OSR.Osr class (http://www.gdal.org/ogr/classOGRSpatialReference.html#2016fee7b234666c5e94d528661e6729).

Like SRS_UL_US_FOOT, SRS_UL_US_FOOT_CONV, etc.

I believe the intent is for these to correspond to the #define constants in ogr_srs_api.h (http://www.gdal.org/ogr/ogr__srs__api_8h-source.html).

However, the values of these constants is the NAME of the constant, not its value.

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"

Change History (2)

comment:1 Changed 12 years ago by tamas

Milestone: 1.5.0
Status: newassigned
Version: unspecified1.5.0 betas/RCs

Applied the fix in trunk r13337

comment:2 Changed 12 years ago by hobu

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.