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

Add MD_ReferenceSystemTypeCode or document its equivalence #50

Open
desruisseaux opened this issue Sep 10, 2019 · 0 comments
Open

Add MD_ReferenceSystemTypeCode or document its equivalence #50

desruisseaux opened this issue Sep 10, 2019 · 0 comments

Comments

@desruisseaux
Copy link
Contributor

desruisseaux commented Sep 10, 2019

The MD_ReferenceSystemTypeCode code list defined by ISO 19115-1 is currently not transposed in GeoAPI. That code list has been excluded in current draft because the same functionality can be achieved in the Java language with instanceof statements. For example:

Equivalence for MD_ReferenceSystemTypeCode.projected:

crs instanceof ProjectedCRS

Equivalence for MD_ReferenceSystemTypeCode.geodeticGeographic2D:

crs instanceof GeographicCRS &&
crs.getCoordinateSystem().getDimension() == 2

Equivalence for MD_ReferenceSystemTypeCode.compoundProjectedTemporal:

crs instanceof CompoundCRS &&
crs.getComponents().size() == 2 &&
crs.getComponents().get(0) instanceof ProjectedCRS &&
crs.getComponents().get(1) instanceof TemporalCRS

etc. Admittedly those equivalences can become complicated. Despite that equivalences exist, we should probably not rely on them and introduce the missing MD_ReferenceSystemTypeCode. Descriptions of that code list can be seen there:

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

1 participant