[mapserver-users] OGR - ArcInfo Coverage Help

Hankley, Chip Chip.Hankley at GASAI.Com
Thu Aug 8 09:39:45 PDT 2002


I can't seem to get the annotation layer in a AI coverage to render through
OGR... is this possible? I've included some outputs from OGRINFO as well as
the layer def from my mapfile.

The issue seems to be the specification of LABELITEM for the layer. When I
do this, no image is returned (no error, either).

TIA!

Chip

===================================================================

C:\>ogrinfo bridges
Had to open data source read-only.
INFO: Open of `bridges'
using driver `AVCBin' successful.
1: ARC (Line String)
2: LAB (Point)
3: igds (Point)

... a sampling of

C:\>ogrinfo bridges igds 

OGRFeature(igds):479
  UserId (Integer) = 18555
  Text (String) = NB USH 51 RAMP
  Height (Real) = 17.500002
  Level (Integer) = 51
  POINT (288221.869 179078.766)

OGRFeature(igds):480
  UserId (Integer) = 18569
  Text (String) = EB STH 29
  Height (Real) = 17.500002
  Level (Integer) = 51
  POINT (289595.610 173873.979)

... and the pertinent part of the mapfile.

LAYER
  NAME "Parks_cov"
  TYPE POINT
  CONNECTIONTYPE OGR
  CONNECTION "C:\Inetpub\wwwroot\Wausau\data\DGN_temp\bridges, IGDS"
  STATUS default
  CLASSITEM "UserID"
  LABELITEM "Text" <= this causes something to choke.
  CLASS
    EXPRESSION /./
    LABEL
      TYPE TRUETYPE
      ANTIALIAS TRUE
      FONT ARIAL
      POSITION LC
      SIZE 8
      COLOR 0 0 0
      OUTLINECOLOR 255 255 255
    END
  END
END



More information about the MapServer-users mailing list