using mapserver php 4.2b3 on windows 2000 IIS
having set the environment variable MS_ERRORFILE
getting lines in the error file which say that it is looking for a symbol which
is the text value of the lable field
error file is as follows:
NOTE the second line -- the text "This the the LABEL ext" is what is setup in
mapinfo as the lable text (no symbol just a point lable text) and all the other
numbers in brackets are also lable texts
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (D R I V E):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (This the the LABEL text):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (448):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (474):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (473):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (472):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (471):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (470):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (469):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (468):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (467):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (466):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (465):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (464):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (463):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (461):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (460):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (459):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (458):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (457):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (456):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (455):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (454):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (453):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (452):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (451):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (450):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (449):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (P.U.L.19):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (446):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (445):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (444):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (443):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (442):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (441):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (440):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (439):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (P.U.L. 21):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (BLACK BEAR LANE):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (KODIAK PLACE):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (462):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (476):(line 35)
Wed May 26 10:40:06 2004 - getSymbol(): Symbol definition error. Parsing error
near (477):(line 35)
map file is as follows (NOTE that the symbol path can be set or not -- the only
difference is that the line number reported above refers to the last line of
the symbol file if it is specified):
NAME Whitehorse
STATUS ON
SIZE 500 400
EXTENT 494158.796520 6728966.363272 494448.914754 6729198.777445
UNITS METERS
SHAPEPATH "e:/VariousData/Devel/map_test/data"
FONTSET "e:/VariousData/Devel/map_test/etc/fonts.txt"
IMAGECOLOR 255 255 255
WEB
minscale 5
MAXSCALE 60000000
IMAGEPATH "e:/VariousData/Devel/map_test/tmp/"
IMAGEURL "http://mitch:8888/map_test/tmp/"
template "dummy.html"
END
layer
debug on
name "test case"
connectiontype ogr
connection "CAD_text.TAB"
status on
type annotation
labelitem "TEXT"
styleitem "AUTO"
class
debug true
name "test case"
label
position auto
partials true
angle auto
end
end
end
END
ogrinfo output is as follows (note only the first part of the output is
included the rest is simmilar)
Had to open data source read-only.
INFO: Open of `y:\variousdata\devel\map_test\data\cad_text.tab'
using driver `MapInfo File' successful.
Layer name: cad_text
Geometry: Point
Feature Count: 43
Extent: (494194.373144, 6728980.205539) - (494406.522226, 6729189.422954)
Layer SRS WKT:
PROJCS["unnamed",
GEOGCS["unnamed",
DATUM["North_American_Datum_1983",
SPHEROID["GRS 80",6378137,298.257222101],
TOWGS84[0,0,0,0,0,0,0]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-135],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",0],
UNIT["Meter",1.0]]
DXF_: Integer (0.0)
DXF_ID: Integer (0.0)
X: Real (0.0)
Y: Real (0.0)
OFFSETX: Real (0.0)
OFFSETY: Real (0.0)
HEIGHT: Real (0.0)
SYMBOL: Integer (0.0)
LEVEL: Integer (0.0)
TEXT: String (254.0)
e00_anno_id: Integer (0.0)
e00_text_level: Integer (0.0)
e00_anno_name: String (20.0)
OGRFeature(cad_text):1
DXF_ (Integer) = 7196
DXF_ID (Integer) = 7196
X (Real) = 494216.454229639
Y (Real) = 6729175.54981924
OFFSETX (Real) = 0
OFFSETY (Real) = 0
HEIGHT (Real) = 6.0018
SYMBOL (Integer) = 4
LEVEL (Integer) = 5
TEXT (String) = D R I V E
e00_anno_id (Integer) = 7196
e00_text_level (Integer) = 5
e00_anno_name (String) = DXF
Style = LABEL(t:"D R I V E",a:262.500000,s:4.799023g,c:#000000,p:1,f:"")
POINT (494216.453 6729175.546)
OGRFeature(cad_text):2
DXF_ (Integer) = 7797
DXF_ID (Integer) = 7797
X (Real) = 494295.618794246
Y (Real) = 6729143.73500113
OFFSETX (Real) = 0
OFFSETY (Real) = 0
HEIGHT (Real) = 6
SYMBOL (Integer) = 1
LEVEL (Integer) = 2
TEXT (String) = This the Text Field
e00_anno_id (Integer) = 7797
e00_text_level (Integer) = 2
e00_anno_name (String) = DXF
Style = LABEL(t:"This the the LABEL
text",a:262.500000,s:4.799023g,c:#000000,p:1,f:"")
POINT (494295.622 6729143.732)
OGRFeature(cad_text):3
DXF_ (Integer) = 7798
DXF_ID (Integer) = 7798
X (Real) = 494243.104989713
Y (Real) = 6729109.47795501
OFFSETX (Real) = 0
OFFSETY (Real) = 0
HEIGHT (Real) = 6
SYMBOL (Integer) = 1
LEVEL (Integer) = 2
TEXT (String) = 448
e00_anno_id (Integer) = 7798
e00_text_level (Integer) = 2
e00_anno_name (String) = DXF
Style = LABEL(t:"448",a:262.500000,s:4.799023g,c:#000000,p:1,f:"")
POINT (494243.104 6729109.479)
the php file used is as follows:
<?php
$map_path="e:\\VariousData\\Devel\\map_test\\";
$map = ms_newMapObj( $map_path."TEST_CASE.map" );
$image=$map->draw();
$image_url=$image->saveWebImage();
?>
<IMG SRC=<?php echo $image_url; ?>
mapfile, mapinfo tab file, php script, text.txt (all requried files to reporduce the bug)