OGR Problem

Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Tue Aug 23 07:56:36 PDT 2005


Does your ovf file work with ogrinfo?

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> Dave Mitchell <dave.mitchell at NEWGROVE.COM> 08/23/05 4:03 pm >>>
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-users mailing list