What happend to OGR OVF layers since gdal 1.3.1

Huub Fleuren hfl at HOME.NL
Wed Aug 1 09:06:27 PDT 2007


Hi List,


This is question about different gdal versions working on OVF layers

OGRINFO of any GDAL version gives me the data from such a layer using 
ogrinfo layer.ovf -al
Versions 4.5, 4.8, 4.10.0 4.10.2  of mapserver  compiled against gdal 
1.3.1 work OKE but later GDAL versions give errors

layerdefinition
--------------
  LAYER
    NAME kpxy
    TYPE POINT
    CONNECTIONTYPE OGR
    CONNECTION "<OGRVRTDataSource>
        <OGRVRTLayer name='kpxy'>
            <SrcDataSource>ODBC:admin/admin at anwb</SrcDataSource>
            <SrcSQL>SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, 
w.wegbeheerdercode as wegbeheerdercode, w.onderhoudsinstantiecode as 
onderhoudsinstantiecode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE 
'D') and (w.x > %xmin%) and (w.x < %xmax%) and (w.y > %ymin%) 
and (w.y < %ymax%) and (w.kruispuntnummer = k.kp_nr)</SrcSQL>
            <GeometryType>wkbPoint</GeometryType>
            <LayerSRS>WGS84</LayerSRS>
            <GeometryField encoding='PointFromColumns' x='x' y='y'/>
        </OGRVRTLayer>
    </OGRVRTDataSource>"
    DATA "kpxy" # the name of the OGRVrtLayer

etc.


errors
-------

GDAL 1.3.2

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM 
"http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd">
<ServiceExceptionReport version="1.1.0">
<ServiceException>
msDrawMap(): Image handling error. Failed to draw layer named 
'kpxy'.
msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on 
ExecuteSQL() results.
</ServiceException>
</ServiceExceptionReport>

GDAL 1.4.2

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM 
"http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd">
<ServiceExceptionReport version="1.1.0">
<ServiceException>
msDrawMap(): Image handling error. Failed to draw layer named 
'kpxy'.
msOGRFileNextShape(): OGR error. No column definitions found for table 
'q_getBBoxAbonnement_1', layer not usable
.
</ServiceException>
</ServiceExceptionReport>


I did not find documentation on changes concerning OVF layers. What 
happened?




Regards, Huub



More information about the MapServer-users mailing list