Ver Fonte

Fix mask2geojson args

Bobholamovic há 2 anos atrás
pai
commit
8d4fcee937
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      tools/mask2geojson.py
  2. 1 1
      tools/utils/raster.py

+ 1 - 1
tools/mask2geojson.py

@@ -70,4 +70,4 @@ if __name__ == "__main__":
     parser.add_argument("--save_path", type=str, required=True, \
                         help="Path to store the GeoJSON file (the coordinate system is WGS84).")
     args = parser.parse_args()
-    convert_data(args.raster_path, args.geojson_path)
+    convert_data(args.mask_path, args.save_path)

+ 1 - 1
tools/utils/raster.py

@@ -81,7 +81,7 @@ class Raster:
                         raise TypeError("Unsupported data format: {}".format(
                             self.ext_type))
             else:
-                raise ValueError("The path {0} not exists.".format(path))
+                raise ValueError("The path {0} does not exist.".format(path))
         else:
             if gdal_obj is not None:
                 self._src_data = gdal_obj