[mapserver-users] How use the filteritem with a ogr spatialite db
Lime, Steve D (MNIT)
Steve.Lime at state.mn.us
Thu Apr 4 07:44:53 PDT 2013
Filter should look like:
FILTER (ID_ING = '%idtpn%' )
If MapServer is to execute it, or:
FILTER "WHERE ID_ING = '%idtpn%' "
If OGR is to execute it.
Steve
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andrea Peri
Sent: Thursday, April 04, 2013 8:26 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] How use the filteritem with a ogr spatialite db
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/7b3cf092/attachment.htm>
More information about the MapServer-users
mailing list