Class CoordinateOperationSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<T>
org.apache.sis.referencing.factory.IdentifiedObjectSet<org.opengis.referencing.operation.CoordinateOperation>
org.apache.sis.referencing.factory.sql.CoordinateOperationSet
- All Implemented Interfaces:
Iterable<org.opengis.referencing.operation.CoordinateOperation>,Collection<org.opengis.referencing.operation.CoordinateOperation>,Set<org.opengis.referencing.operation.CoordinateOperation>,CheckedContainer<org.opengis.referencing.operation.CoordinateOperation>,Localized
final class CoordinateOperationSet
extends IdentifiedObjectSet<org.opengis.referencing.operation.CoordinateOperation>
A lazy set of
CoordinateOperation objects to be returned by the
EPSGDataAccess.createFromCoordinateReferenceSystemCodes(String, String) method.
There is two different ways in which EPSGDataAccess get coordinate operations:
- The coordinate operation may be the conversion from base property of a projected CRS.
Those conversions are obtained by a SQL query like below (note that this query can return at most
one result, because
COORD_REF_SYS_CODEis a primary key): - The coordinate operation may be standalone. This is the case of coordinate transformations having stochastic errors. Those transformations are obtained by a SQL query like below (note that this query can return many results):
projections map.- Since:
- 0.7
- Version:
- 0.8
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe codes ofProjectedCRSobjects for the specifiedConversioncodes.Fields inherited from class org.apache.sis.referencing.factory.IdentifiedObjectSet
factory -
Constructor Summary
ConstructorsConstructorDescriptionCoordinateOperationSet(org.opengis.referencing.AuthorityFactory factory) Creates a new instance of this lazy set. -
Method Summary
Modifier and TypeMethodDescription(package private) final voidaddAuthorityCode(String code, Integer crs) Adds the specified authority code.protected org.opengis.referencing.operation.CoordinateOperationcreateObject(String code) Creates a coordinate operation for the specified EPSG code.protected StringgetAuthorityCode(org.opengis.referencing.operation.CoordinateOperation object) Same as the default implementation in parent class, but avoid to call the costlyEPSGDataAccess.getAuthority()method.Methods inherited from class org.apache.sis.referencing.factory.IdentifiedObjectSet
add, addAuthorityCode, clear, contains, getAuthorityCodes, getElementType, getLocale, isRecoverableFailure, iterator, remove, removeAll, resolve, setAuthorityCodes, sizeMethods inherited from class java.util.AbstractSet
equals, hashCodeMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.Set
addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
Field Details
-
projections
The codes ofProjectedCRSobjects for the specifiedConversioncodes.- Keys a coordinate operation codes.
- Values are coordinate reference system codes. They are usually
ProjectedCRS, but the EPSG database sometimes use this mechanisms for other kind of CRS.
CoordinateOperationSet, but only the ones to be returned by the first SQL query documented in the class Javadoc.
-
-
Constructor Details
-
CoordinateOperationSet
CoordinateOperationSet(org.opengis.referencing.AuthorityFactory factory) Creates a new instance of this lazy set.
-
-
Method Details
-
addAuthorityCode
Adds the specified authority code.- Parameters:
code- the code for theCoordinateOperationto add.crs- the code for the CRS to create instead of the operation, ornullif none.
-
getAuthorityCode
Same as the default implementation in parent class, but avoid to call the costlyEPSGDataAccess.getAuthority()method.- Overrides:
getAuthorityCodein classIdentifiedObjectSet<org.opengis.referencing.operation.CoordinateOperation>- Parameters:
object- the object for which to get the authority code.- Returns:
- the authority code of the given identified object.
-
createObject
protected org.opengis.referencing.operation.CoordinateOperation createObject(String code) throws org.opengis.util.FactoryException Creates a coordinate operation for the specified EPSG code.- Overrides:
createObjectin classIdentifiedObjectSet<org.opengis.referencing.operation.CoordinateOperation>- Parameters:
code- the code for which to create the identified object.- Returns:
- the identified object created from the given code.
- Throws:
org.opengis.util.FactoryException- if the object creation failed.
-