A standard way for different geometry libraries in Python to be
interoperable is a `__geo_interface__` for the geometry (see the
specification: https://gist.github.com/sgillies/2217756). This
includes the shapely library, geometries from QGIS, and geometries in
Esri's arcpy libraries for ArcGIS desktop and ArcGIS pro.
To make it easier to generate a georss entry a simple method which
does the conversion (of the supported geometries only) and sets the
appropriate geometry type.
This includes a custom error for the geometry being incompatible and a
custom warning for a polygon with interior holes. This is done to
store the geometries on the exception / warning if required for
debugging.
Originally the georss entry only contained a simple point
specification. Update to include:
- other geometries (line, polygon and box)
- additional properties (featuretypetag, relationshiptag, featurename)
- elevation (elev, floor)
- radius (radius)
This also includes basic type checking with a value error for the
elev, floor and radius tags.
As with media:content, there can be multiple media:thumbnail elements in
an item and in multiple groups. This patch adds the ability to do this
in the same manner as with the content.
Part of #58
One item can have multiple media:content elements which may be located
in multiple media:group element to indicate that content is the same but
for the format.
This patch adds the ability to add multiple content elements and define
the group to which they go belong.
If no group is specified, all elements are located in a `default` group.
If the group is set to None, the content element is directly attached to
the item element.
Part of #58
Using `fe.media.media_content(…)` is quite redundant. iThis patch
changes the name to `fe.media.content(…)`. The same goes for the
thumbnail method.
Part of #58
This patch extends the test coverage of the unit tests. It also enables
python-coverage and coveralls to track unit test coverage.
There are some additional minor issue fixed discovered during the test
creation.
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
This patch makes the feedgen flake8 compatible, fixing some minor issues
along the way. Most noticeable, this switches from tabs to spaces.
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
This patch ensures the compatibility of setting categories for itunes
podcasts even though the new API now supports setting multiple
(sub-)categories.
It also fixes the docs and adjusts them to explicitly mark the old
syntax as deprecated.
Signed-off-by: Lars Kiesow <lkiesow@uos.de>