[Qgis-user] How to perform a little reduction in bounding box

Yasser Said Lopez de Olmos Reyes biolyasser at gmail.com
Fri Aug 16 12:56:37 PDT 2013


Hello all

I've been making use of Lecos' plugin Landscape Ecology Statistics. It
almost works perfectly, but recently I had a problem trying to get "zonal
stats" with a shapefile. The plugin takes polygon features as a zone to
compute zonal statistics, but it says that I have two features outside the
raster bounding box. So I went to the plugin code and noticed it has two
different methods to obtain bounding boxes, one for raster and one for
vectorial. However, when I check the rounding boxes extent, they fit, but I
think is a matter of precsission, because rounding box in shapefile has two
decimals and the raster's one has like seven decimals, all zeros.

So I'm thinking of reducing my shapefile rounding from X.00 to something
like (X-1).999999, sacrificing some precission so I can obtain stats from
two features allegedly out of the bounding box. Is there any easy way to
reduce this bounding box?

-- 
Saludos,

Yasser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130816/8590ee21/attachment.html>


More information about the Qgis-user mailing list