[Mapserver-users] Mapserver using MSSQL

bartvde at xs4all.nl bartvde at xs4all.nl
Tue Jun 1 03:27:40 PDT 2004


Hi,

1. can ogrinfo read the ovf file successfully?

2. which version of Mapserver are you using (try 4.2 beta3 from
http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html).

3. are you using a System DSN?

One thing which is incorrect for sure but I don't know if this is fatal,
your <LayerSRS>LAYER_1</LayerSRS>. You can probably use your EPSG code for
this.

Best regards,
Bart

> Dear all,
>
> Today, I am trying run MapServer under windows using MSSQL 2000. I have
> read previous thread/mails and try to follow every step but I got error
> like below :
>
> msDrawMap(): Image handling error. Failed to draw layer named 'LAYER_1'.
> msOGRFileOpen(): OGR error. Open failed for OGR connection `layer1.ovf'.
> File not found or unsupported format.
>
> My Layer code :
>
> LAYER
>   NAME LAYER_1
>   TYPE POLYGON
>   STATUS DEFAULT
>   CONNECTIONTYPE OGR
>   CONNECTION "layer1.ovf"
>   DATA "layer1"
>   CLASS
>     NAME 'My City'
>     OUTLINECOLOR 128 128 128
>     COLOR 225 225 185
>     TEMPLATE "layer1.html"
>   END
>   HEADER "layer_1_header.html"
>   FOOTER "layer_1_footer.html"
>   METADATA
>     WMS_TITLE "My City"
>     WMS_ABSTRACT "Layer Shapefile."
>     WMS_SRS "EPSG:26915"
>   END
> END
>
> and my layer1.ovf :
>
> <OGRVRTDataSource>
>     <OGRVRTLayer name="LAYER_1">
>         <SrcDataSource>ODBC:sa/kalpin at mstest</SrcDataSource>
>   <SrcLayer>River</SrcLayer>
>  <GeometryType>wkbPoint</GeometryType>
>         <LayerSRS>LAYER_1</LayerSRS>
>  <GeometryField encoding="PointFromColumns" x="x" y="y"/>
>     </OGRVRTLayer>
> </OGRVRTDataSource>
>
>
> Help me please
>
>
>
> Thank you
>
>
>
> Kalpin Erlangga Silaen






More information about the MapServer-users mailing list