<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.&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Description of DOUBLE precision coverage anno15b<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
FEATURE CLASSES<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Number of&nbsp; Attribute&nbsp;&nbsp;&nbsp;&nbsp; Spatial<br>
Feature Class&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Subclass&nbsp;&nbsp;&nbsp;&nbsp; Features&nbsp;&nbsp; data (bytes)&nbsp;
Index?<br>
-------------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
--------&nbsp;&nbsp;&nbsp;&nbsp; ---------&nbsp; ------------&nbsp;
-------<br>
ANNOTATIONS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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bsp;&nbsp; C<br><br>
---------------------------------------------------------<br>
Using the following syntax with TYPE=Point:<br><br>
LAYER<br>
&nbsp; NAME anno15<br>
<b>&nbsp; TYPE POINT<br>
</b>&nbsp; CONNECTIONTYPE OGR<br>
&nbsp; CONNECTION &quot;C:\apache\htdocs\gt2\data\anno15b,0&quot;<br>
&nbsp; STATUS default<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp; 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>
&nbsp; NAME anno15<br>
&nbsp; TYPE ANNOTATION<br>
&nbsp; CONNECTIONTYPE OGR<br>
&nbsp; CONNECTION &quot;C:\apache\htdocs\gt2\data\anno15b,0&quot;<br>
&nbsp; STATUS default<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp; END<br>
END<br><br>
Mapserver draws nothing for this layer, but gives no error either.&nbsp;
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>
&nbsp; NAME anno15<br>
&nbsp; TYPE ANNOTATION<br>
&nbsp; CONNECTIONTYPE OGR<br>
&nbsp; CONNECTION &quot;C:\apache\htdocs\gt2\data\anno15b,0&quot;<br>
&nbsp; STATUS default<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp; TEXT &quot;hello&quot;<br>
&nbsp;&nbsp;&nbsp; LABEL<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; 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>
&nbsp; NAME anno15<br>
&nbsp; TYPE ANNOTATION<br>
&nbsp; CONNECTIONTYPE OGR<br>
&nbsp; CONNECTION &quot;C:\apache\htdocs\gt2\data\anno15b,0&quot;<br>
&nbsp; STATUS default<br>
&nbsp; LABELITEM &quot;NAME&quot;<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp; 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>