Opened 8 years ago

Closed 8 years ago

#6627 closed enhancement (fixed)

add SpatialReference.GetTargetLinearUnits

Reported by: kirk Owned by: hobu
Priority: normal Milestone:
Component: SWIG (all bindings) Version: unspecified
Severity: normal Keywords:
Cc:

Description

I could not find a way to get the vertical unit of measure from C# without parsing the WKT on my own. In C++ I use GetTargetLinearUnits("VERT_CS", NULL), but there does not seem to be an entry point for this in the swig bindings.

The attached patch worked for me but I'm reluctant to apply it myself, since swig is not where I normally play and I'm not sure what effects are possible on the other languages.

Attachments (1)

swig_osr_gettargetlinearunits.patch (510 bytes ) - added by kirk 8 years ago.
add SpatialReference.GetTargetLinearUnits

Download all attachments as: .zip

Change History (2)

comment:1 by Even Rouault, 8 years ago

Resolution: fixed
Status: newclosed

In 35228:

SWIG: map osr.GetTargetLinearUnits() (fixes #6627)

Note: See TracTickets for help on using tickets.