You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.rst
+92-70Lines changed: 92 additions & 70 deletions
Original file line number
Diff line number
Diff line change
@@ -127,13 +127,6 @@ Link
127
127
:members:
128
128
:undoc-members:
129
129
130
-
LinkType
131
-
~~~~~~~~
132
-
133
-
.. autoclass:: pystac.LinkType
134
-
:members:
135
-
:undoc-members:
136
-
137
130
MediaType
138
131
~~~~~~~~~
139
132
@@ -149,7 +142,7 @@ STAC_IO
149
142
150
143
STAC_IO is the utility mechanism that PySTAC uses for reading and writing. Users of PySTAC can hook into PySTAC by overriding members to utilize their own IO methods.
151
144
152
-
.. autoclass:: pystac.STAC_IO
145
+
.. autoclass:: pystac.stac_io.STAC_IO
153
146
:members:
154
147
:undoc-members:
155
148
@@ -193,17 +186,20 @@ ExtensionError
193
186
Extensions
194
187
----------
195
188
196
-
.. autoclass:: pystac.extensions.Extensions
197
-
:members:
198
-
:undoc-members:
189
+
**TEMPORARILY REMOVED**
190
+
.. .. autoclass:: pystac.extensions.Extensions
191
+
.. :members:
192
+
.. :undoc-members:
199
193
200
194
ExtensionIndex
201
195
~~~~~~~~~~~~~~
202
196
203
-
An ExtensionIndex is accessed through the :attr:`STACObject.ext <pystac.STACObject.ext>` property and is the primary way to access information and functionality around STAC extensions.
197
+
**TEMPORARILY REMOVED**
198
+
199
+
.. An ExtensionIndex is accessed through the :attr:`STACObject.ext <pystac.STACObject.ext>` property and is the primary way to access information and functionality around STAC extensions.
These classes are representations of the `Single File STAC Extension <https://github.com/radiantearth/stac-spec/tree/v1.0.0-beta.2/extensions/single-file-stac>`_.
Copy file name to clipboardExpand all lines: docs/concepts.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,7 @@ are relative to the linking object's file location. For example, if a catalog at
159
159
then that link should resolve to the absolute path ``/some/location/item-id/item-id.json``.
160
160
161
161
Links are set as absolute or relative HREFs at save time, as determine by the root catalog's catalog_type
162
-
:attribute:`~pystac.Catalog.catalog_type`. This means that, even if the stored HREF of the link is absolute,
162
+
:attr:`~pystac.Catalog.catalog_type`. This means that, even if the stored HREF of the link is absolute,
163
163
if the root ``catalog_type=CatalogType.RELATIVE_PUBLISHED`` or ``catalog_type=CatalogType.SELF_CONTAINED``
164
164
and subsequent serializing of the any links in the catalog will produce a relative link,
165
165
based on the self link of the parent object.
@@ -396,7 +396,7 @@ Item Asset properties
396
396
397
397
Properties that apply to Items can be found in two places: the Item's properties or in any of an Item's Assets. If the property is on an Asset, it applies only that specific asset. For example, gsd defined for an Item represents the best Ground Sample Distance (resolution) for the data within the Item. However, some assets may be lower resolution and thus have a higher gsd. In that case, the `gsd` can be found on the Asset.
398
398
399
-
See the STAC documentation on `Additional Fields for Assets <https://github.com/radiantearth/stac-spec/blob/v1.0.0-beta.2/item-spec/item-spec.md#additional-fields-for-assets>`_ and the relevant `Best Practices <https://github.com/radiantearth/stac-spec/blob/v1.0.0-beta.2/best-practices.md#common-use-cases-of-additional-fields-for-assets>`_ for more information.
399
+
See the STAC documentation on `Additional Fields for Assets <https://github.com/radiantearth/stac-spec/blob/v1.0.0-beta.2/item-spec/item-spec.md#additional-fields-for-assets>`_ and the relevant `Best Practices <https://github.com/radiantearth/stac-spec/blob/v1.0.0-beta.2/best-practices.md#common-use-cases-of-additional-fields-for-assets>`__ for more information.
400
400
401
401
The implementation of this feature in PySTAC uses the method described here and is consistent across Item and ItemExtensions. The bare property names represent values for the Item only, but for each property where it is possible to set on both the Item or the Asset there is a ``get_`` and ``set_`` methods that optionally take an Asset. For the ``get_`` methods, if the property is found on the Asset, the Asset's value is used; otherwise the Item's value will be used. For the ``set_`` method, if an Asset is passed in the value will be applied to the Asset and not the Item.
0 commit comments