OGR Problem
Dave Mitchell
dave.mitchell at NEWGROVE.COM
Tue Aug 23 09:27:50 EDT 2005
Hi,
I am trying to display point data from a SQL Server Database.
So far all I'm getting is the following error:
"Error rendering Map Image:
a fatal error occured drawing the map."
------------------------------------------
I have the Layer defined in my map file thus:-
LAYER
GROUP "Post Offices"
NAME "podemo"
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION "C:\webmap\chameleon-2.0\samples\map\postoffice.ovf"
DATA "mylayer" # the name of the OGRVrtLayer
STATUS ON
CLASSITEM "GID"
CLASS
EXPRESSION /./
COLOR 0 0 255 # dummy color
OUTLINECOLOR 0 0 0
SYMBOL 4
SIZE 8
END
END
------------------------------------------
This is my ovf file:-
<OGRVRTDataSource>
<OGRVRTLayer name="mylayer">
<SrcDataSource>ODBC:MapServerTest</SrcDataSource>
<SrcLayer>podemo</SrcLayer>
<GeometryType>wkbPoint</GeometryType>
<GeometryField encoding="PointFromColumns" x="XMIN" y="YMIN"/>
</OGRVRTLayer>
</OGRVRTDataSource>
---------------------------------------------
I am running a Chameleon/PHPMapscript under IIS
MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
Can anyone suggest how I might fix this, or at least determine more
accurately what is going wrong.
Best regards,
Dave
More information about the mapserver-dev
mailing list