Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort EndDates #19

Open
KathiSchleidt opened this issue May 18, 2019 · 4 comments
Open

Sort EndDates #19

KathiSchleidt opened this issue May 18, 2019 · 4 comments
Assignees

Comments

@KathiSchleidt
Copy link
Collaborator

For most date intervals, we've just been ignoring the end date, only the monitoring facility has been done correctly as follows:

  • Create an additional field in db (date_fin_unknown in example below) with string "unknown" in the case where end position is empty
  • Modify endPosition mapping as in the example below
<AttributeMapping>
	<targetAttribute>eposb:linkingTime/gml:TimePeriod/gml:endPosition</targetAttribute>
	<sourceExpression>
		<OCQL>date_fin</OCQL>
	</sourceExpression>
	<encodeIfEmpty>true</encodeIfEmpty>
	<ClientProperty>
		<name>indeterminatePosition</name>
		<value>date_fin_unknown</value>
	</ClientProperty>
</AttributeMapping>
@KathiSchleidt KathiSchleidt self-assigned this May 18, 2019
@nmco
Copy link

nmco commented May 27, 2019

What's the plan here @KathiSchleidt, this basicly just App-Schema mappings updating, right?

@KathiSchleidt
Copy link
Collaborator Author

@sgrellet: this is mapping cosmetics, up to you if I do this (will the system continue to be used?)
However, if I do, I must also modify the DB views accordingly, provide "unknown" in an additional column for the case where end-date is empty

@KathiSchleidt
Copy link
Collaborator Author

PS: not that relevant for the WFS3 output. In GML, this would provide an error (timePeriod without endPosition), but in JSON the endPosition is just not there...

@sgrellet
Copy link
Contributor

mapping and views will be updated by @spifman when he has all the registries available. From latest discussions, should be available aorund the 26th .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants