[MapProxy] Spatialite coverage

Oliver Tonnhofer olt at omniscale.de
Wed Jan 23 06:05:06 PST 2013


On 22.01.2013, at 16:09, Martin Kokeš wrote:
> I'm thinking about replacing coverage SHP file with Spatialite database. My Spatialite database is "mydb.sqlite", table with Geometry column is called "mytable".
> 
> What would be correct datasource/where syntax for coverage according to http://mapproxy.org/docs/1.5.0/coverages.html?

Never tested, but checkout the PostGIS example and the OGR docs:
http://mapproxy.org/docs/1.5.0/coverages.html#mapproxy-seed
http://www.gdal.org/ogr/drv_sqlite.html


Maybe this will work?

coverages:
  germany:
    datasource: "mydb.sqlite"
    where: "select * from mytable where country='germany'"
    srs: 'EPSG:900913'


Regards,
Oliver

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.com
http://mapproxy.org | https://github.com/olt    | @oltonn









More information about the MapProxy mailing list