[Mapserver-users] Another TAB files problem
Jeff McKenna
jmckenna at dmsolutions.ca
Wed Jun 16 15:29:20 PDT 2004
Ernesto,
You need a LABEL object to display the street names. I think you would
use "Street" as your LABELITEM to tell mapserver which field to use for
your labels. Here's an example of a layer showing labelled city points:
LAYER
NAME Communities
TYPE POINT
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "data/base/places.TAB"
LABELITEM "Name"
CLASS
NAME "Communities"
SYMBOL "mapinfo-sym-33"
COLOR 0 0 0
SIZE 6
LABEL
FONT "fritqat-italic"
TYPE TRUETYPE
COLOR 0 0 0
SIZE 10
POSITION auto
END
END
END # Layer
jeff
Ernesto Vega wrote:
> Hi. I have a Mapserver installation running on linux and i have a tab file
> to describe my unique layer, named "muestra".
>
> ogrinfo tells me that the geometry for layer muestra( the one named before)
> is "Line String". I was able to get the extents for my Map file definition.
>
> Also, defining my layer muestra, as type of vector or type of line, and
> defining a class named "Calle", mapserver renders the image but not the
> street names,
> as describe by ogrinfo, that shows records like this one:
>
> ###########################
>
> OGRFeature(muestra):2
> Street (String) = STO DOMINGO <------ Don't know how to define this
> FromLeft (Integer) = 1097
> ToLeft (Integer) = 1019
> FromRight (Integer) = 1088
> ToRight (Integer) = 1022
> DIG (Integer) = 0
> Class (String) = CALLE
> direccion (Integer) = 0
> Style = PEN(w:1px,c:#000000,id:"mapinfo-pen-130.ogr-pen-0")
> LINESTRING (-70.65271000 -33.43634800,-70.65134200 -33.43619400)
>
> #########################
>
>
> my layer definition is this:
>
> #############
>
> LAYER
>
> NAME muestra
> TYPE VECTOR
> STATUS ON
> CONNECTIONTYPE OGR
> CONNECTION "all/muestra.TAB"
> DEBUG ON
> CLASS
> NAME "Calle"
> DEBUG ON
> COLOR 79 53 181
> END
>
> END # Layer
>
> #########
>
>
> any ideas why ???
>
> Ernesto Vega
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
--
Jeff McKenna
GIS Specialist
DM Solutions Group Inc.
http://www.dmsolutions.ca
More information about the MapServer-users
mailing list