Package org.apache.sis.internal.util

Examples of org.apache.sis.internal.util.DefinitionURI

{@section Components or URN}URN begins with {@code "urn:ogc:def:"} (formerly {@code "urn:x-ogc:def:"}) followed by: The object type can be:
Object type Meaning
axis Coordinate system axe definition
axisDirection Axis direction code definition
coordinateOperation Coordinate operation definition
crs Coordinate reference system definition
cs Coordinate system definition
datum Datum definition
dataType Data type definition
derivedCRSType Derived CRS type code definition
documentType Document type definition
ellipsoid Ellipsoid definition
featureType Feature type definition
group Operation parameter group definition
meaning Parameter meaning definition
meridian Prime meridian definition
method Operation method definition
nil Explanations for missing information
parameter Operation parameter definition
phenomenon Observable property definition
pixelInCell Pixel in cell code definition
rangeMeaning Range meaning code definition
referenceSystem Value reference system definition
uom Unit of measure definition
verticalDatumType Vertical datum type code definition
Some example of authorities are:
Authority Purpose
{@code "OGC"} Objects defined by the Open Geospatial Consortium.
{@code "EPSG"} Referencing objects defined in the EPSG database.
{@code "EDCS"} Environmental Data Coding Specification.
{@code "SI"} International System of Units.
{@code "UCUM"} Unified Code for Units of Measure.
{@section Combined URNs}This implementation does not handle combined URNs. An example of combined URN would be {@code "urn:ogc:def:crs,crs:EPSG:6.3:27700,crs:EPSG:6.3:5701"}. @author Martin Desruisseaux (Geomatys) @since 0.4 @version 0.4 @module @see Definition identifier URNs in OGC namespace @see OGC Naming Authority

            throws NoSuchAuthorityCodeException, FactoryException
    {
        ensureNonNull("code", code);
        final String authority;
        final String value;
        final DefinitionURI uri = DefinitionURI.parse(code);
        if (uri != null) {
            final String type = uri.type;
            if (type != null && !type.equalsIgnoreCase("crs")) {
                throw new NoSuchIdentifierException(Errors.format(Errors.Keys.UnknownType_1, type), type);
            }
View Full Code Here


        if (c == null) {
            return null;
        }
        Citation authority = null;
        String version = null, cs = codeSpace;
        final DefinitionURI parsed = DefinitionURI.parse(c);
        if (parsed != null) {
            authority = Citations.fromName(cs); // May be null.
            cs        = parsed.authority;
            version   = parsed.version;
            c         = parsed.code;
View Full Code Here

TOP

Related Classes of org.apache.sis.internal.util.DefinitionURI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.