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.
The bbox2wktpolygon function in the util.py file uses %.2f for formatting coordinates in the resulting WKT Polygon. This formatting limits the number of decimal places in the output, leading to inaccurate representation of coordinates.
Environment
operating system:
Python version: 3.8
pycsw version: 3.0.0-alpha5
source/distribution
[ ] git clone
[ ] DebianGIS/UbuntuGIS
[ ] PyPI
[ ] zip/tar.gz
[ ] other (please specify):
web server
[ ] Apache/mod_wsgi
[ ] CGI
[ ] other (please specify):
Steps to Reproduce
Use the bbox2wktpolygon function with a bounding box input.
Observe the resulting Well-Known Text (WKT) Polygon and note the limited precision in the coordinates.
Additional Information
Expected Behavior:
The bbox2wktpolygon function should represent coordinates with full precision, providing accurate WKT Polygons.
Description
The
bbox2wktpolygon
function in theutil.py
file uses%.2f
for formatting coordinates in the resulting WKT Polygon. This formatting limits the number of decimal places in the output, leading to inaccurate representation of coordinates.Environment
Steps to Reproduce
bbox2wktpolygon
function with a bounding box input.Additional Information
Expected Behavior: The
bbox2wktpolygon
function should represent coordinates with full precision, providing accurate WKT Polygons.