Parcourir la source

r.in.wms: add png8 format option

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57023 15284696-431f-4ddb-bdfa-cd5b030d7da7
Štěpán Turek il y a 11 ans
Parent
commit
426470130b
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      scripts/r.in.wms/r.in.wms.py
  2. 2 2
      scripts/r.in.wms/wms_base.py

+ 1 - 1
scripts/r.in.wms/r.in.wms.py

@@ -52,7 +52,7 @@ This program is free software under the GNU General Public License
 #% key: format
 #% type: string
 #% description: Image format requested from the server
-#% options: geotiff,tiff,jpeg,gif,png
+#% options: geotiff,tiff,jpeg,gif,png,png8
 #% answer: geotiff
 #% guisection: Request
 #%end

+ 2 - 2
scripts/r.in.wms/wms_base.py

@@ -532,10 +532,10 @@ class WMSDriversInfo:
         """
 
         # format labels
-        self.f_labels = ["geotiff", "tiff", "png", "jpeg", "gif"]
+        self.f_labels = ["geotiff", "tiff", "png", "jpeg", "gif", "png8"]
 
         # form for request
-        self.formats = ["image/geotiff", "image/tiff", "image/png", "image/jpeg", "image/gif"]
+        self.formats = ["image/geotiff", "image/tiff", "image/png", "image/jpeg", "image/gif", "image/png8"]
 
         self.srs = ("epsg", "crs")