Opened 9 months ago

Closed 9 months 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 9 months ago.
add SpatialReference?.GetTargetLinearUnits?

Download all attachments as: .zip

Change History (2)

comment:1 Changed 9 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 35228:

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

Note: See TracTickets for help on using tickets.