#6183 closed defect (fixed)

ogr_srs_api.h has wrong definition for OSRSetAxes

Reported by: oleinik Owned by: warmerdam
Priority: normal Milestone: 2.0.2
Component: OGR_SRS Version: 2.0.1
Severity: normal Keywords:
Cc:

Description

ogr_srs_api.h contains definition

OGRErr CPL_DLL OSRSetAxes( const char *pszTargetKey,
                           const char *pszXAxisName,
                           OGRAxisOrientation eXAxisOrientation,
                           const char *pszYAxisName, 
                           OGRAxisOrientation eYAxisOrientation );

but in ogrspatialreference.cpp this function has prototype

OGRErr OSRSetAxes( OGRSpatialReferenceH hSRS,
                   const char *pszTargetKey, 
                   const char *pszXAxisName, 
                   OGRAxisOrientation eXAxisOrientation,
                   const char *pszYAxisName, 
                   OGRAxisOrientation eYAxisOrientation )

Due to omitted hSRS parameter, this function does not exported properly.

Change History (1)

comment:1 Changed 20 months ago by Even Rouault

Milestone: 2.0.2
Resolution: fixed
Status: newclosed

trunk r31180 and branches/2.0 r31181 "OSR C API: fix declarations of OSRSetAxes() and OSRSetWagner(), and add missing OSRSetHOMAC(), OSRSetMercator2SP() and OSRSetTPED() (#6183)"

Note: See TracTickets for help on using tickets.