File tree Expand file tree Collapse file tree 4 files changed +0
-31
lines changed Expand file tree Collapse file tree 4 files changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -180,13 +180,6 @@ def get_format_id(cls) -> str:
180180 for example "zarr" or "geojson".
181181 """
182182
183- @classmethod
184- @abstractmethod
185- def get_file_extensions (cls ) -> List [str ]:
186- """Get the possible filename extensions for the format,
187- for example "tif" or "geotiff".
188- """
189-
190183 def get_delete_data_params_schema (self , data_id : str = None ) -> JsonObjectSchema :
191184 return JsonObjectSchema (
192185 properties = dict (
Original file line number Diff line number Diff line change @@ -149,10 +149,6 @@ class DatasetZarrFsDataAccessor(DatasetFsDataAccessor):
149149 def get_format_id (cls ) -> str :
150150 return "zarr"
151151
152- @classmethod
153- def get_file_extensions (cls ) -> List [str ]:
154- return [".zarr" ]
155-
156152 # noinspection PyUnusedLocal,PyMethodMayBeStatic
157153 def get_open_data_params_schema (self , data_id : str = None ) -> JsonObjectSchema :
158154 return self .add_storage_options_to_params_schema (ZARR_OPEN_DATA_PARAMS_SCHEMA )
@@ -246,10 +242,6 @@ class DatasetNetcdfFsDataAccessor(DatasetFsDataAccessor):
246242 def get_format_id (cls ) -> str :
247243 return "netcdf"
248244
249- @classmethod
250- def get_file_extensions (cls ) -> List [str ]:
251- return [".nc" ]
252-
253245 def get_open_data_params_schema (self , data_id : str = None ) -> JsonObjectSchema :
254246 return self .add_storage_options_to_params_schema (NETCDF_OPEN_DATA_PARAMS_SCHEMA )
255247
@@ -331,10 +323,6 @@ class DatasetGeoTiffFsDataAccessor(DatasetFsDataAccessor):
331323 def get_format_id (cls ) -> str :
332324 return "geotiff"
333325
334- @classmethod
335- def get_file_extensions (cls ) -> List [str ]:
336- return ["geotiff" , ".tiff" , ".tif" ]
337-
338326 def get_open_data_params_schema (self , data_id : str = None ) -> JsonObjectSchema :
339327 return GEOTIFF_OPEN_DATA_PARAMS_SCHEMA
340328
Original file line number Diff line number Diff line change @@ -81,10 +81,6 @@ class GeoDataFrameShapefileFsDataAccessor(GeoDataFrameFsDataAccessor):
8181 def get_format_id (cls ) -> str :
8282 return "shapefile"
8383
84- @classmethod
85- def get_file_extensions (cls ) -> List [str ]:
86- return [".shp" ]
87-
8884 @classmethod
8985 def get_driver_name (cls ) -> str :
9086 return "ESRI Shapefile"
@@ -97,10 +93,6 @@ class GeoDataFrameGeoJsonFsDataAccessor(GeoDataFrameFsDataAccessor):
9793 def get_format_id (cls ) -> str :
9894 return "geojson"
9995
100- @classmethod
101- def get_file_extensions (cls ) -> List [str ]:
102- return [".geojson" ]
103-
10496 @classmethod
10597 def get_driver_name (cls ) -> str :
10698 return "GeoJSON"
Original file line number Diff line number Diff line change @@ -44,10 +44,6 @@ def get_data_type(cls) -> DataType:
4444 def get_format_id (cls ) -> str :
4545 return "levels"
4646
47- @classmethod
48- def get_file_extensions (cls ) -> List [str ]:
49- return [".levels" ]
50-
5147 def open_data (self , data_id : str , ** open_params ) -> MultiLevelDataset :
5248 assert_instance (data_id , str , name = "data_id" )
5349 fs , fs_root , open_params = self .load_fs (open_params )
You can’t perform that action at this time.
0 commit comments