[mapserver-users] How use the filteritem with a ogr spatialite db

Andrea Peri aperi2007 at gmail.com
Thu Apr 4 06:26:01 PDT 2013


Hi,

I'm try-ing to apply a filter to a spatialite db by ogr .

I try this

    CONNECTIONTYPE OGR
    CONNECTION "/.../tematici.sqlite"
    DATA "select
PK_UID,ID_ING,ID_GRO,NUMERO,NOME,CODCOM,COMUNE,ANNO,DATA_AGG,SCHEDA,RILIEVO,CGBEST,CGBNORD,GEOMETRY
from SPELEOLOGIA_INGRESSI_GROTTE"
    FILTER "(ID_ING = '%idtpn%' )"
    FILTERITEM 'ID_ING'
    VALIDATION
      'idtpn' '^[a-zA-Z0-9\-_]+$'
    END
    .....
    METADATA
      'default_idtpn' '901707'
       .....

But it don't work.

There is some sample of filter usage with ogr format ?

thx,


-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130404/89baa4f4/attachment.html>


More information about the mapserver-users mailing list