Opened 16 years ago
Closed 16 years ago
#2656 closed defect (fixed)
LABELANGLEITEM in MS 5.0 using OGR:LabelAngle for annotation layer
Reported by: | mikesaunt | Owned by: | tamas |
---|---|---|---|
Priority: | high | Milestone: | 5.2 release |
Component: | OGR Support | Version: | 5.0 |
Severity: | major | Keywords: | LabelAngle |
Cc: | tamas |
Description
We're trying to get an annotation layer from MapInfo format (text only now lines, points etc to follow) to render but to use the angle stored in the MapInfo feature (not from an attribute column) - we used to be able to use LABELANGLEITEM "OGR:LabelAngle" in v4 but v5 seems to have us stumped as the bindings seem to only work against fields names
Note:
See TracTickets
for help on using tickets.
After inspecting this issue the problem should be dedicated to a change in the OGR implementation that have been committed in: http://trac.osgeo.org/gdal/changeset/12686
It seems that in ogrfeaturestyle.cpp the created CPLString is destoyed after the OGRStyleTool::GetParamStr function returns, and therefore and empty string is passed back to mapserver.
return CPLString().Printf("%f",sStyleValue.dfValue);
I reassign this bug to Frank and reopen the corresponding ticket.
http://trac.osgeo.org/gdal/ticket/1979
I volunteer to make a test if the problem have been fixed.