@@ -23,10 +23,10 @@ def path(self, suffix):
2323 @staticmethod
2424 def crop (gpkg_path , geotiff_path , gdal_options , keep_original = True , warp_options = []):
2525 if not os .path .exists (gpkg_path ) or not os .path .exists (geotiff_path ):
26- log .ODM_WARNING ("Either {} or {} does not exist, will skip cropping." .format (gpkg_path , geotiff_path ))
26+ log .WARNING ("Either {} or {} does not exist, will skip cropping." .format (gpkg_path , geotiff_path ))
2727 return geotiff_path
2828
29- log .ODM_INFO ("Cropping %s" % geotiff_path )
29+ log .INFO ("Cropping %s" % geotiff_path )
3030
3131 # Rename original file
3232 # path/to/odm_orthophoto.tif --> path/to/odm_orthophoto.original.tif
@@ -64,7 +64,7 @@ def crop(gpkg_path, geotiff_path, gdal_options, keep_original=True, warp_options
6464 os .remove (original_geotiff )
6565
6666 except Exception as e :
67- log .ODM_WARNING ('Something went wrong while cropping: {}' .format (e ))
67+ log .WARNING ('Something went wrong while cropping: {}' .format (e ))
6868
6969 # Revert rename
7070 os .replace (original_geotiff , geotiff_path )
@@ -131,7 +131,7 @@ def create_bounds_geojson(self, pointcloud_path, buffer_distance = 0, decimation
131131 @return filename to GeoJSON containing the polygon
132132 """
133133 if not os .path .exists (pointcloud_path ):
134- log .ODM_WARNING ('Point cloud does not exist, cannot generate bounds {}' .format (pointcloud_path ))
134+ log .WARNING ('Point cloud does not exist, cannot generate bounds {}' .format (pointcloud_path ))
135135 return ''
136136
137137 # Do decimation prior to extracting boundary information
@@ -143,7 +143,7 @@ def create_bounds_geojson(self, pointcloud_path, buffer_distance = 0, decimation
143143 "--filters.decimation.step={} " .format (pointcloud_path , decimated_pointcloud_path , decimation_step ))
144144
145145 if not os .path .exists (decimated_pointcloud_path ):
146- log .ODM_WARNING ('Could not decimate point cloud, thus cannot generate GPKG bounds {}' .format (decimated_pointcloud_path ))
146+ log .WARNING ('Could not decimate point cloud, thus cannot generate GPKG bounds {}' .format (decimated_pointcloud_path ))
147147 return ''
148148
149149 # Use PDAL to dump boundary information
@@ -188,7 +188,7 @@ def create_bounds_geojson(self, pointcloud_path, buffer_distance = 0, decimation
188188 if tmp .Area () > 0 :
189189 convexhull = tmp
190190 else :
191- log .ODM_WARNING ("Very small crop area detected, we will not smooth it." )
191+ log .WARNING ("Very small crop area detected, we will not smooth it." )
192192
193193 # Save to a new file
194194 bounds_geojson_path = self .path ('bounds.geojson' )
@@ -228,7 +228,7 @@ def create_bounds_gpkg(self, pointcloud_path, buffer_distance = 0, decimation_st
228228 @return filename to Geopackage containing the polygon
229229 """
230230 if not os .path .exists (pointcloud_path ):
231- log .ODM_WARNING ('Point cloud does not exist, cannot generate GPKG bounds {}' .format (pointcloud_path ))
231+ log .WARNING ('Point cloud does not exist, cannot generate GPKG bounds {}' .format (pointcloud_path ))
232232 return ''
233233
234234
0 commit comments