diff --git a/shareloc/geomodels/geomodel_template.py b/shareloc/geomodels/geomodel_template.py index 599b406..93e4e7c 100644 --- a/shareloc/geomodels/geomodel_template.py +++ b/shareloc/geomodels/geomodel_template.py @@ -42,6 +42,8 @@ def __init__(self): """ # geomodel type. Set by the subclass self.type: str + # geomodel epsg projection code + self.epsg: int = None # Define GeoModelTemplate functions interface diff --git a/shareloc/geomodels/grid.py b/shareloc/geomodels/grid.py index 2c513c8..3aa704f 100755 --- a/shareloc/geomodels/grid.py +++ b/shareloc/geomodels/grid.py @@ -103,7 +103,6 @@ def __init__(self, geomodel_path: str): self.alts_down = None self.rowmax = None self.colmax = None - self.epsg = 0 # inverse loc predictor attributes self.pred_col_min = None diff --git a/shareloc/geomodels/rpc.py b/shareloc/geomodels/rpc.py index d9c8373..b5085c1 100755 --- a/shareloc/geomodels/rpc.py +++ b/shareloc/geomodels/rpc.py @@ -40,8 +40,6 @@ # Set numba type of threading layer before parallel target compilation config.THREADING_LAYER = "omp" -# pylint: disable=no-member - @GeoModel.register("RPC") class RPC(GeoModelTemplate): @@ -53,7 +51,18 @@ class RPC(GeoModelTemplate): # pylint: disable=too-many-instance-attributes def __init__(self, rpc_params): super().__init__() - self.epsg = None + + self.offset_alt = None + self.scale_alt = None + self.offset_col = None + self.scale_col = None + self.offset_row = None + self.scale_row = None + self.offset_x = None + self.scale_x = None + self.offset_y = None + self.scale_y = None + self.datum = None for key, value in rpc_params.items(): setattr(self, key, value)