[Bug report] Support scientific notation in WKT strings
bug
### Describe the bug
WKT strings using scientific number notation (allowed according to the BNF grammar of WKT) are not supported by the SQLite dialect
### Optional link from https://geoalchemy-2.readthedocs.io which documents the behavior that is expected
_No response_
### To Reproduce
```Python
from geoalchemy2.types.dialects.sqlite import format_geom_type
from shapely import to_wkt, Point
point = Point(-81.26375779833506, 28.42044909697525, -2.5974586606025696e-6)
wkt = to_wkt(point, rounding_precision=-1)
format_geom_type(wkt)
```
### Error
```Python traceback
./.venv/lib/python3.13/site-packages/geoalchemy2/types/dialects/sqlite.py:16: UserWarning: The given WKT could not be parsed by GeoAlchemy2, this could lead to undefined behavior with Z, M or ZM geometries or with incorrect SRID. The WKT string is: POINT Z (-81.26375779833506 28.42044909697525 -2.5974586606025696e-6)
warnings.warn(
```
### Additional context
_No response_
### GeoAlchemy 2 Version in Use
0.18.0
### Python Version
3.13
### Operating system
Linux
关闭于 2025-11-14 0 条评论