[mapserver-users] OGR - ArcInfo Coverage Help
Tyler Mitchell
TMitchell at lignum.com
Thu Aug 8 11:33:45 PDT 2002
Are you able to view it as TYPE ANNOTATION?
I know what you are trying to do, but haven't had a lot of success doing it
myself (and it was a while ago).
I've done a lot of OGR stuff though and wonder if you need put some single
quotes in addition to the double quotes around the label item field name.
I had to do this for coverage data that I put into postgresql using
ogr2ogr.
"Hankley, Chip"
<Chip.Hankley at GASAI.Com> To: "MapServer List (E-mail)"
Sent by: <mapserver-users at lists.gis.umn.edu>
owner-mapserver-users at lists. cc:
gis.umn.edu Fax to:
Subject: [mapserver-users] OGR - ArcInfo Coverage Help
08/08/2002 09:39 AM
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