benoitdm-oslandia / pg_featureserv

Apache License 2.0
1 stars 0 forks source link

Feature/crs #162

Closed azarz closed 1 year ago

azarz commented 1 year ago

closes #18 (already implemented, added tests and better error handling) closes #17

github-actions[bot] commented 1 year ago

Code Coverage

Package Line Rate Health
github.com/CrunchyData/pg_featureserv/internal/api 89%
github.com/CrunchyData/pg_featureserv/internal/conf 53%
github.com/CrunchyData/pg_featureserv/internal/cql 67%
github.com/CrunchyData/pg_featureserv/internal/data 63%
github.com/CrunchyData/pg_featureserv/internal/service 67%
github.com/CrunchyData/pg_featureserv/internal/ui 82%
github.com/CrunchyData/pg_featureserv 22%
Summary 69% (6038 / 8749)

Minimum allowed line rate is 60%

github-actions[bot] commented 1 year ago

Code Coverage

Package Line Rate Health
github.com/CrunchyData/pg_featureserv/internal/api 89%
github.com/CrunchyData/pg_featureserv/internal/conf 54%
github.com/CrunchyData/pg_featureserv/internal/cql 67%
github.com/CrunchyData/pg_featureserv/internal/data 63%
github.com/CrunchyData/pg_featureserv/internal/service 68%
github.com/CrunchyData/pg_featureserv/internal/ui 82%
github.com/CrunchyData/pg_featureserv 22%
Summary 69% (6068 / 8769)

Minimum allowed line rate is 60%

azarz commented 1 year ago

LGTM! Just if you can add a test with projection name like with EPSG:2154 or IGNF:LAMB93... this should do the same job!

This would imply a change in the current API, which currently needs a number in the request, corresponding to the SRID in postGIS. An other issue is that the IGNF: SRSs are not available in postGIS... I tried to find a standard definition of the IGNF:LAMB93 as in http://www.opengis.net/def/crs/EPSG/0/2154, IGNF is not even listed in http://www.opengis.net/def/crs/.

One way to tackle this issue would be to accept proj strings, but I don't know if this is a good idea...

benoitdm-oslandia commented 1 year ago

Ok so no need to go further and we will update the documentation accordingly.

azarz commented 1 year ago

We should also document that for POST, PUT and PATCH, the crs is defined by the Content-Crs header. I don't know where to specify that in the openApi definition.

azarz commented 1 year ago

We should also document that for POST, PUT and PATCH, the crs is defined by the Content-Crs header. I don't know where to specify that in the openApi definition.

Done

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 16 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

azarz commented 1 year ago

New review required since I rebased on develop @jmkerloch @benoitdm-oslandia (I didn't change anything)