[Benchmarking] Plan for handling blank tiles

Alan Boudreault aboudreault at mapgears.com
Mon Aug 23 14:01:34 EDT 2010


I've added the filter_within option in the wms_request script. You may have to 
install python gdal bindings on the server to use it.

Note that to get reasonable script execution time..... you should generalize 
the dataset passed to the filter_within option. Otherwise, the script will be 
extremely slow. 


On August 20, 2010 03:50:22 pm Daniel Morissette wrote:
> Iván Sánchez Ortega wrote:
> > On Wednesday 18 August 2010 23:44:47 Jeff McKenna wrote:
> >>    - Ivan will provide a shapefile that contains the existing extents to
> >> use for the raster data (Ivan can you point me to this shapefile?)
> >
> > This administrative boundary file should do the trick:
> >
> > http://ivan.sanchezortega.es/CCAA.gml.bz2
> FYI Alan is on this. He should have the new script for you by Monday.
> What we're doing is adding a '-filter_within <filename>' option to
> wms_request.py (where filename is CCAA.gml in this case, but any
> supported OGR format will work as filter file).
> The geometry of the first record of this file is loaded and we will
> ensure that all bboxes generated fall 'within' this geometry. If you'd
> prefer an 'intersect' test please let us know... it's not more work.
> The rest of the script will remain unchanged. One caveat is that you'll
> have to ensure that the filter file is in the same SRS as the
> coordinates specified to the '-region minx miny maxx maxy' arg... there
> is no provision for handling SRS in the bbox generator script.
> Oh, and for the rasters I presume we will need another filter file since
> you do not have coverage for the full country, right?

Alan Boudreault

More information about the Benchmarking mailing list