geost.base.LayeredData.to_collection#
- LayeredData.to_collection(horizontal_reference: str | int | CRS = 28992, vertical_reference: str | int | CRS = 5709)[source]#
Create a collection from this instance of LayeredData. A collection combines header and data and ensures that they remain aligned when applying methods.
- Parameters:
horizontal_reference (str | int | CRS, optional) – EPSG of the target crs. Takes anything that can be interpreted by pyproj.crs.CRS.from_user_input(), by default 28992.
vertical_reference (str | int | CRS, optional) – EPSG of the target vertical datum. Takes anything that can be interpreted by pyproj.crs.CRS.from_user_input(). However, it must be a vertical datum. FYI: “NAP” is EPSG 5709 and The Belgian reference system (Ostend height) is ESPG 5710, by default 5709.
- Returns:
An instance of
Collection
- Return type:
Collection