pycsw is an OGC CSW server implementation written in Python. pycsw fully implements the OpenGIS Catalogue Service Implementation Specification [Catalogue Service for the Web]. Initial development started in 2010 (more formally announced in 2011). The project is certified OGC Compliant, and is an OGC Reference Implementation. pycsw allows for the publishing and discovery of geospatial metadata via numerous APIs (CSW 2/CSW 3, OpenSearch, OAI-PMH, SRU). Existing repositories of geospatial metadata can also be exposed, providing a standards-based metadata and catalogue component of spatial data infrastructures. pycsw is Open Source, released under an MIT license, and runs on all major platforms (Windows, Linux, Mac OS X). Please read the docs at https://pycsw.org/docs for more information.
Fixes the issue of incorrect formatting of coordinates in the bbox2wktpolygon function by updating the coordinate formatting in the return statement.
Related Issue / Discussion
Closes #53
Additional Information
This change modifies the bbox2wktpolygon function in pycsw/core/util.py to use an environment variable with the desired bbox precise digits instead of %.2f for coordinate formatting (in case the env is not provided, the default value will be 2 as source).
Coordinates are now restricting the number of decimal places according to client requirements.
[x] I'd like to contribute [feature X|bugfix Y|docs|something else] to pycsw. I confirm that my contributions to pycsw will be compatible with the pycsw license guidelines at the time of contribution.
[x] I have already previously agreed to the pycsw Contributions and Licensing Guidelines
Overview
Fixes the issue of incorrect formatting of coordinates in the
bbox2wktpolygon
function by updating the coordinate formatting in the return statement.Related Issue / Discussion
Closes #53
Additional Information
bbox2wktpolygon
function inpycsw/core/util.py
to use an environment variable with the desired bbox precise digits instead of%.2f
for coordinate formatting (in case the env is not provided, the default value will be 2 as source).Contributions and Licensing
(as per https://github.com/geopython/pycsw/blob/master/CONTRIBUTING.rst#contributions-and-licensing)