MS4W, OGR , MS-Access : Field Type
bino_oetomo
bino at INDOAKSES-ONLINE.COM
Sun Jun 12 20:23:10 PDT 2005
Dear All
My Installation is :
MS version : MS4W
Data Type : Ms-Access mdb
3 Field : x , y and lbl are text type with 10 , 9 , 15 characther width
respectively
Here is my ovf
----Start ovf----
<OGRVRTDataSource>
<OGRVRTLayer name="lokasi">
<SrcDataSource>ODBC:ms4w/ms4w at ms4w</SrcDataSource>
<SrcLayer>loktbl</SrcLayer>
<GeometryType>wkbPoint</GeometryType>
<LayerSRS>WGS84</LayerSRS>
<GeometryField encoding="PointFromColumns" x="x" y="y"/>
</OGRVRTLayer>
</OGRVRTDataSource>
----stop ovf-----
And here is snip of my layer deffinition
----Start layer----
LAYER #Dari MDB
NAME lay-6
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION "lokasi.ovf"
DATA "lokasi"
STATUS DEFAULT
LABELITEM loktbl.lbl
CLASS
SYMBOL 3
SIZE 6
COLOR 255 255 0
LABEL
SIZE MEDIUM
TYPE BITMAP
COLOR 0 255 255
END
END
END
----Stop layer-----
It produces error :
"msDrawMap(): Image handling error. Failed to draw layer named 'lay-6'."
I Tried to comment-out the "LABELITEM", the map showed up but didn't show
the point (only one in the mdb) that I want tobe showed.
A test using ogrinfo.exe agains the ovf file, showed as follow :
-----Start ogr test----
D:\ms4w\tools\gdal-ogr-utils>ogrinfo d:\ms4w\shp\lokasi.ovf lokasi
ERROR 4: Update access not supported for VRT datasources.
Had to open data source read-only.
INFO: Open of `d:\ms4w\shp\lokasi.ovf'
using driver `VRT' successful.
Layer name: lokasi
Geometry: Point
Feature Count: 1
Extent: (110.370970, -7.786270) - (110.370970, -7.786270)
Layer SRS WKT:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]],
AXIS["Lat",NORTH],
AXIS["Long",EAST],
AUTHORITY["EPSG","4326"]]
x: String (10.0)
y: String (9.0)
lbl: String (15.0)
OGRFeature(lokasi):0
x (String) = +110.37097
y (String) = -7.78627
lbl (String) = kita
POINT (110.37097000 -7.78627000)
------stop ogr test----
Kindly please give me any fixing-clue for this problem
Regards
-bino-
"
More information about the MapServer-users
mailing list