nlsfi / hakunapi

OGC API Features Java server
https://github.com/nlsfi/hakunapi
MIT License
12 stars 3 forks source link

Initial implementation for JSONFG output format #73

Closed nls-jajuko closed 11 months ago

nls-jajuko commented 1 year ago

hakunapi-jsonfg module

First steps to support JSON-FG https://docs.ogc.org/DRAFTS/21-045.html

nls-jajuko commented 1 year ago

Some notes, questions and todos:

jampukka commented 1 year ago

"geometry" is reprojected within output format writer

I'm thinking we should probably add a default function to either HakunaFeature or HakunaGeometry which would provide the "lesser geometry" to be used as the value for geometry (like a simplified footprint or centroid of a building). The default implementation would return the actual geometry as-is, but we could expand on that so that sources could provide simplified CRS84-ready versions of the geometry.

nls-jajuko commented 1 year ago

https://github.com/nlsfi/hakunapi/blob/main/src/hakunapi-simple-servlet-javax/src/main/java/fi/nls/hakunapi/simple/servlet/javax/GlobalFQueryParamFilter.java

I think GlobalFQueryParamFilter clashes with custom output formats

jampukka commented 11 months ago

Looks good to me. An example json which unit tests would match against would've been great but not necessary.

nls-jajuko commented 11 months ago

first steps towards validating JSONFG output - should find out a source for the jsonfg json-schemas https://docs.ogc.org/DRAFTS/21-045.html#schema-feature-collection some schemas https://beta.schemas.opengis.net/json-fg/

nls-jajuko commented 11 months ago

Added a generic validation test for feature collection writer