Implements the File Info Extension.
A concrete implementation of FileExtension
on an Asset
that extends the Asset fields to include properties defined in the File Info Extension.
This class should generally not be instantiated directly. Instead, call FileExtension.ext()
on an Asset
to extend it.
If present, this will be a list containing 1 dictionary representing the properties of the owner.
The href
value of the Asset
being extended.
The Asset
fields, including extension properties.
List of allows values for the "file:byte_order"
field defined by the File Info Extension.
A class that can be used to extend the properties of an Asset
or Link
with properties from the File Info Extension.
To create an instance of FileExtension
, use the FileExtension.ext()
method. For example:
>>> asset: pystac.Asset = ... >>> file_ext = FileExtension.ext(asset)
Applies file extension properties to the extended Item.
byte_order – Optional byte order of integer values in the file. One of "big-endian"
or "little-endian"
.
checksum – Optional multihash for the corresponding file, encoded as hexadecimal (base 16) string with lowercase letters.
header_size – Optional header size of the file, in bytes.
size – Optional size of the file, in bytes.
values – Optional list of MappingObject
instances that lists the values that are in the file and describe their meaning. See the Mapping Object docs for an example. If given, at least one array element is required.
Gets or sets the byte order of integer values in the file. One of big-endian or little-endian.
Get or sets the multihash for the corresponding file, encoded as hexadecimal (base 16) string with lowercase letters.
Extends the given STAC Object with properties from the File Info Extension.
Gets the schema URI associated with this extension.
Get or sets the header size of the file, in bytes.
Get or sets a relative local path for the asset/link.
The file:local_path
field indicates a relative path that can be used by clients for different purposes to organize the files locally. For compatibility reasons the name-separator character in paths must be /
and the Windows separator \
is not allowed.
Get or sets the size of the file, in bytes.
Get or sets the list of MappingObject
instances that lists the values that are in the file and describe their meaning. See the Mapping Object docs for an example. If given, at least one array element is required.
Migrate a STAC Object in dict format from a previous version. The base implementation will update the stac_extensions to the latest schema ID. This method will only be called for STAC objects that have been identified as a previous version of STAC. Implementations should directly manipulate the obj dict. Remember to call super() in order to change out the old ‘stac_extension’ entry with the latest schema URI.
A concrete implementation of FileExtension
on an Link
that extends the Link fields to include properties defined in the File Info Extension.
This class should generally not be instantiated directly. Instead, call FileExtension.ext()
on an Link
to extend it.
If present, this will be a list containing 1 dictionary representing the properties of the owner.
The href
value of the Link
being extended.
The Link
fields, including extension properties.
Represents a value map used by assets that are used as classification layers, and give details about the values in the asset and their meanings.
Sets the properties for this MappingObject
instance.
values – The value(s) in the file. At least one array element is required.
summary – A short description of the value(s).
Creates a new MappingObject
instance.
values – The value(s) in the file. At least one array element is required.
summary – A short description of the value(s).
Gets or sets the short description of the value(s).
Gets or sets the list of value(s) in the file. At least one array element is required.
Generalized version of Asset
, Link
,
alias of TypeVar(‘T’, ~pystac.asset.Asset, ~pystac.link.Link)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4