From da380595bafe2f96cfa1d2d07ff78a42761f1685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Mesquita?= Date: Fri, 21 Jul 2017 12:41:42 -0300 Subject: [PATCH] Update raster_layers.html The Calculate zonal statistics exemple in the page have a little problem. The variable "feat" of the funtion "zonal_stats" is being overwritten by the line feat = lyr.GetNextFeature(). Please, correct this removing this line of the code! --- raster_layers.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/raster_layers.html b/raster_layers.html index 584248e..f15cc86 100644 --- a/raster_layers.html +++ b/raster_layers.html @@ -487,7 +487,6 @@

Calculate zonal statisticstargetSR = osr.SpatialReference() targetSR.ImportFromWkt(raster.GetProjectionRef()) coordTrans = osr.CoordinateTransformation(sourceSR,targetSR) - feat = lyr.GetNextFeature() geom = feat.GetGeometryRef() geom.Transform(coordTrans) @@ -950,4 +949,4 @@

Navigation

Created using
Sphinx 1.3.1. - \ No newline at end of file +