atviriduomenys / spinta

Spinta is a framework to describe, extract and publish data (a DEP Framework).
MIT License
10 stars 4 forks source link

Set WGS84 for geometry type if not given #562

Closed sirex closed 4 months ago

sirex commented 5 months ago

If srid is not given for geometry type, set srid to WGS84 by default on load, as specified in spec:

Jei koordinačių sistemos numeris nenurodytas, tuomet daroma prielaida, kad erdviniai duomenys atitinka 4326 (WGS84) koordinačių sistemą. -- atviriduomenys.readthedocs.io

Geometry.srid must be required:

https://github.com/atviriduomenys/spinta/blob/cd92cc40026a6b50fbc5fb10cda40ea47f5f6c28/spinta/types/geometry/components.py#L8

And all places should assume, that srid is always set. If srid is not set, raise an error.

Related