[mapserver-users] Using spatialite with mapserver

Paolo Corti pcorti at gmail.com
Thu Aug 2 14:32:55 PDT 2012


On Thu, Aug 2, 2012 at 10:03 PM, Andrea Peri <aperi2007 at gmail.com> wrote:
> Hi,
> I'm try-ing to use spatialite with mapserver.
>
> is this mapfile configuration ok for spatialite ?
>
>     CONNECTIONTYPE OGR
>     CONNECTION '/..path-to../spatialite_file.sqlite'
>     DATA 'SELECT field1, field2, field3, geometry from table'
>
> It seem don't work.
>

I think you just need to select the geometry field in the DATA
parameter (at least this is the case for PostGIS and Oracle Spatial),
so  for your case try:

DATA 'SELECT geometry from table'

cheers
p

-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti



More information about the MapServer-users mailing list