[mapserver-users] LABELANGLEITEM in MS 5.0 using OGR:LabelAngle for annotation layer

2008-06-18 Thread Mike Saunt
Hi All

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

We also found the below in the OGR help but I can't seem to find the correct
syntax

 Special OGR:Label* attributes  Posted by Daniel Morissette at 2007-09-13
07:40
This should probably be added to the docs:

When using CONNECTIONTYPE OGR, there are special attributes called
OGR:LabelText, OGR:LabelAngle and OGR:LabelSize that can be used as
LABELITEM, ANGLE and SIZE in the label definition for your annotation layer.
You can use that as an alternative to using STYLEITEM AUTO.H




Anyone able to help us?

Cheers
Mike
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] LABELANGLEITEM in MS 5.0 using OGR:LabelAngle for annotation layer

2008-06-18 Thread Tamas Szekeres
Hi,

According to
http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT

You have to use in your mapfile something like:

LABEL
  ...
  ANGLE [OGR:LabelAngle]
END

Best regards,

Tamas

2008/6/18 Mike Saunt [EMAIL PROTECTED]:
 Hi All

 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

 We also found the below in the OGR help but I can't seem to find the correct
 syntax

 Special OGR:Label* attributes

 Posted by Daniel Morissette at 2007-09-13 07:40
 This should probably be added to the docs:

 When using CONNECTIONTYPE OGR, there are special attributes called
 OGR:LabelText, OGR:LabelAngle and OGR:LabelSize that can be used as
 LABELITEM, ANGLE and SIZE in the label definition for your annotation layer.
 You can use that as an alternative to using STYLEITEM AUTO.H




 Anyone able to help us?

 Cheers
 Mike


 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users