MSSQL vdf problem
Artur Skalski
artur.skalski at ACXIOM.COM
Wed Dec 14 04:30:37 PST 2005
Hi All
I'm trying to display a layer created upon x and y from mssql database.
when I try tu run application, i get following error mesage:
"<!-- PHP Warning: [MapServer Error]: getSymbol(): Parsing error near
(default.ovf):(line 286) in C:\Inetpub\wwwroot\mapserver\framedefs\map.phtml
on line 15 PHP Warning: Failed to open map file default.map in C:
\Inetpub\wwwroot\mapserver\framedefs\map.phtml on line 15 PHP Fatal error:
Call to a member function on a non-object in C:
\Inetpub\wwwroot\mapserver\framedefs\php\default.inc.php on line 868"
I've set up a DSN, it's working
name = pralkajola
user = artur
pass = artur
database name is "str",
table with x y name is "geoxy"
my "default.vfd" file looks like that:
<OGRVRTDataSource>
<OGRVRTLayer name="geoxy">
<SrcDataSource>ODBC:pralkajola</SrcDataSource>
<SrcLayer>geoxy</SrcLayer>
<GeometryType>wkbPoint</GeometryType>
<GeometryField encoding="PointFromColumns" x="x" y="y"/>
</OGRVRTLayer>
</OGRVRTDataSource>
and my map file (default.map) for virtual layer looks like that:
#
LAYER
NAME "virtual"
TYPE POINT
CONNECTIONTYPE OGR
CONNECTIONTYPE "default.ovf"
DATA "geoxy"
STATUS DEFAULT
CLASS
SYMBOL 'point'
SIZE 20
END
END
#
many thaks for any advice!!!
regards
Artur
More information about the MapServer-users
mailing list