@@ -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)
@@ -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))
if gdal_obj is not None:
self._src_data = gdal_obj