Street names aren't shown
Tero Alén
tealorama at GMAIL.COM
Tue Mar 28 23:05:49 PST 2006
Hello
I have tried show street names on our map using angle auto definition
and my problem is that the layer won't show. All other layers works
perfectly, but street names won't show.
Street names are on MapInfo file and I think ogrinfo shows the file
properly (part of the output is at end of message - rest of output
looks same and no errors).
I guess the problem is on my map-file, but for me it looks good.
Maybe somebody can help me?
-Tero
map-file layer definition:
LAYER
NAME test
TYPE LINE
STATUS ON
CONNECTIONTYPE OGR
CONNECTION "data/vector/Katunimet_viivat_nimet.TAB"
LABELITEM "Teksti"
TRANSFORM OFF
CLASS
NAME "Katunimet_viivat_nimet"
TEMPLATE "foo"
COLOR 255 0 0
LABEL
TYPE TRUETYPE
ANTIALIAS TRUE
FONT FreeSans
COLOR 0 0 0
OUTLINECOLOR 220 220 220
SIZE 11
ANGLE AUTO
POSITION UC
OFFSET 0 2
buffer 2
END #label
END #class
END # Layer test ends
ogrinfo output (partial):
Had to open data source read-only.
INFO: Open of `Katunimet_viivat_nimet.TAB'
using driver `MapInfo File' successful.
Layer name: Katunimet_viivat_nimet
Geometry: Line String
Feature Count: 629
Extent: (32989.839419, 75140.700172) - (40614.080219, 79934.176527)
Layer SRS WKT:
PROJCS["unnamed",
GEOGCS["unnamed",
DATUM["European_Datum_1950",
SPHEROID["International 1924",6378388,297],
TOWGS84[-87,-98,-121,-0,-0,-0,0]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator_MapInfo_24"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",24],
PARAMETER["scale_factor",1],
PARAMETER["false_easting",-1.6],
PARAMETER["false_northing",-6599998.7],
UNIT["Meter",1.0]]
ID: Integer (0.0)
Laji: Integer (0.0)
Lajin_selitys: String (30.0)
Z1: Real (0.0)
Z2: Real (0.0)
Teksti: String (30.0)
OGRFeature(Katunimet_viivat_nimet):1
ID (Integer) = 1
Laji (Integer) = 0
Lajin_selitys (String) =
Z1 (Real) = 0
Z2 (Real) = 0
enpolku
Style = PEN(w:3px,c:#ff0000,id:"mapinfo-pen-2.ogr-pen-0")
LINESTRING (40265.910588528066
79858.487010750031914,40351.186863225280831 79920.804184913475183)
OGRFeature(Katunimet_viivat_nimet):2
ID (Integer) = 2
Laji (Integer) = 0
Lajin_selitys (String) =
Z1 (Real) = 0
Z2 (Real) = 0
Teksti (String) = Kahakuja
Style = PEN(w:3px,c:#ff0000,id:"mapinfo-pen-2.ogr-pen-0")
LINESTRING (39775.570305631983501
79868.326240636495641,39826.408155332894239 79891.285127554627252)
OGRFeature(Katunimet_viivat_nimet):3
ID (Integer) = 45
Laji (Integer) = 0
Lajin_selitys (String) =
Z1 (Real) = 0
Z2 (Real) = 0
Teksti (String) = Kuusiniemi
Style = PEN(w:3px,c:#ff0000,id:"mapinfo-pen-2.ogr-pen-0")
LINESTRING (40323.308443964415346
79491.141742735941079,40380.705775281661772 79512.460758006345714)
OGRFeature(Katunimet_viivat_nimet):4
ID (Integer) = 44
Laji (Integer) = 0
Lajin_selitys (String) =
Z1 (Real) = 0
Z2 (Real) = 0
Teksti (String) = Kuusiniemi
Style = PEN(w:3px,c:#ff0000,id:"mapinfo-pen-2.ogr-pen-0")
LINESTRING (40452.862824686657405
79468.182684855375555,40454.502793363069941 79532.139901629008818)
--------------8<---
Clip---8<---------------------------------------------------------------
----------------
More information about the MapServer-users
mailing list