<html>
Hi,<br><br>
I am trying to draw ArcInfo annotation via OGR, using MapServer v3.6.1
(windows binary) on Windows NT.<br>
I cannot get MapServer to draw the actual annotation text. Is this
possible, have i got a syntax error somewhere.<br><br>
regards<br>
/Matthew<br><br>
Extract from arc DESCRIBE command on cover:<br><br>
Description of DOUBLE precision coverage anno15b<br><br>
FEATURE CLASSES<br><br>
Number of Attribute Spatial<br>
Feature Class
Subclass Features data (bytes)
Index?<br>
-------------
-------- --------- ------------
-------<br>
ANNOTATIONS
SDE
2188
524 Yes<br><br>
Extract from arc ITEMS anno15b.tatsde command on cover:<br><br>
ITEM NAME WIDTH
OUTPUT TYPE<br>
SDE#
4 5 B<br>
SDE-ID
4 5 B<br>
OBJECT_ID
4 10 B<br>
ANNOTYPE
30 30 C<br>
NAME
250 250 C<br><br>
---------------------------------------------------------<br>
Using the following syntax with TYPE=Point:<br><br>
LAYER<br>
NAME anno15<br>
<b> TYPE POINT<br>
</b> CONNECTIONTYPE OGR<br>
CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0"<br>
STATUS default<br>
CLASS<br>
COLOR 0 0 0<br>
END<br>
END<br><br>
Mapserver draws points at the start of where each annotation string
should be.<br><br>
---------------------------------------------------------<br>
Using the following syntax with TYPE=Annotation:<br><br>
LAYER<br>
NAME anno15<br>
TYPE ANNOTATION<br>
CONNECTIONTYPE OGR<br>
CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0"<br>
STATUS default<br>
CLASS<br>
COLOR 0 0 0<br>
END<br>
END<br><br>
Mapserver draws nothing for this layer, but gives no error either.
The rest of the layers still draw.<br><br>
---------------------------------------------------------<br>
Using the following syntax with TYPE=Annotation and with a TEXT fixed
label:<br><br>
LAYER<br>
NAME anno15<br>
TYPE ANNOTATION<br>
CONNECTIONTYPE OGR<br>
CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0"<br>
STATUS default<br>
CLASS<br>
COLOR 0 0 0<br>
TEXT "hello"<br>
LABEL<br>
COLOR 0 0 0<br>
END<br>
END<br>
END<br><br>
Mapserver draws the default text where each annotation string should have
been.<br><br>
---------------------------------------------------------<br>
Using the following syntax with TYPE=Annotation and with a
LABELITEM:<br><br>
LAYER<br>
NAME anno15<br>
TYPE ANNOTATION<br>
CONNECTIONTYPE OGR<br>
CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0"<br>
STATUS default<br>
LABELITEM "NAME"<br>
CLASS<br>
COLOR 0 0 0<br>
END<br>
END<br><br>
MapServer gives the error:<br>
msOGRLayerInitItemInfo(): OGR error. Invalid Field name: NAME<br>
I have tried both NAME,name,Name without success<br><br>
</html>