locationtech-labs / geopyspark

GeoTrellis for PySpark
Other
179 stars 59 forks source link

GeoTrellis Types Representation #654

Closed jbouffard closed 6 years ago

jbouffard commented 6 years ago

This PR changes some of the GeoTrellis types from namedtuples to sub-classes of namedtuples. The reason for this is because of how they're represented in the documentation. For example, the GlobalLayout section of the API docs does not have any of the type's docstrings https://geopyspark.readthedocs.io/en/latest/docs/geopyspark.geotrellis.html#geopyspark.geotrellis.GlobalLayout because Sphinx don't know how to include docstrings to a namedtuple. Whereas LocalLayout is a sub-class of namedtuple, and its docstrings are visible in the docs https://geopyspark.readthedocs.io/en/latest/docs/geopyspark.geotrellis.html#geopyspark.geotrellis.LocalLayout