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

Change History (3)

comment:1 by tamas, 16 years ago

Cc: tamas added
Owner: changed from tamas to warmerdam

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.

comment:2 by tamas, 16 years ago

Owner: changed from warmerdam to tamas

Applied the fix for gdal 1.5 and above.

comment:3 by tamas, 16 years ago

Resolution: fixed
Status: newclosed

Closing for now

Note: See TracTickets for help on using tickets.