CRS_Choice


[Columns] [Composed Of] [Referenced By] [Refers To]

General Information

[Next]
Name CRS_Choice
Entity Type ObjectView
Description PSS 2013.1 CRS_Choice DOV
Submodel Data_Object
Entity Scope Project
Primary Key Id
Natural Key
Generalizations
Specializations


Columns

[Previous] [Next] [Top]
NameValue DomainProperty /
Storage Unit
DescriptionRequired /
Default
Type
ACTIVE_FLAG NUMBER2 NA
_ Yes
NUMBER(2)
AREA_OF_USE STRING2000 NA
_ No
VARCHAR2(2000)
BASE_GEOGRAPHIC_REF_SYS STRING64 NA
_ No
VARCHAR2(64)
CODE STRING64 NA
_ Yes
VARCHAR2(64)
DESCRIPTION STRING2000 NA
_ No
VARCHAR2(2000)
EPSG_ALIAS STRING64 NA
_ No
VARCHAR2(64)
ID STRING64 NA
_ No
VARCHAR2(64)
NAME STRING255 NA
_ No
VARCHAR2(255)
OPENGIS_WELL_KNOWN_TEXT STRING2000 NA
_ No
VARCHAR2(2000)
ORIGINAL_SOURCE STRING255 NA
_ No
VARCHAR2(255)
REVISION_DATE DATE NA
_ No
DATE
SOURCE STRING64 NA
_ No
VARCHAR2(64)
SOURCE_VERSION STRING64 NA
_ No
VARCHAR2(64)
TYPE STRING64 NA
_ Yes
VARCHAR2(64)
UPDATE_DATE DATE NA
_ No
DATE
UPDATE_USER STRING64 NA
_ No
VARCHAR2(64)


View Definition

[Previous] [Top]

CREATE OR REPLACE FORCE VIEW CRS_Choice(ID, ACTIVE_FLAG, CODE, DESCRIPTION, NAME, SOURCE, UPDATE_DATE, UPDATE_USER, AREA_OF_USE, BASE_GEOGRAPHIC_REF_SYS, EPSG_ALIAS, OPENGIS_WELL_KNOWN_TEXT, ORIGINAL_SOURCE, REVISION_DATE, SOURCE_VERSION, TYPE) AS SELECT code AS ID, active_flag, code, description, NAME, SOURCE,
         update_date, update_user, area_of_use, base_geographic_ref_sys,
         epsg_alias, opengis_well_known_text, original_source, revision_date,
         source_version, TYPE
    FROM r_coordinate_ref_system crs
   WHERE crs_namespace = 'ESRI'
     AND SOURCE NOT IN ('OpenSpirit', 'Mentor Mapping')
     AND (   (    crs.TYPE = 'Geographic2D'
              AND (   crs.code IN (
                           SELECT from_geographic_crs
                             FROM r_carto_transform
                            WHERE to_geographic_crs =
                                                    (SELECT storage_crs
                                                       FROM 
project_default))
                   OR crs.code = (SELECT storage_crs
                                    FROM project_default)
                  )
             )
          OR (    crs.TYPE = 'Projected'
              AND (   (   crs.base_geographic_ref_sys IN (
                             SELECT from_geographic_crs
                               FROM r_carto_transform
                              WHERE to_geographic_crs =
                                                    (SELECT storage_crs
                                                       FROM project_default))
                       OR (crs.base_geographic_ref_sys IN (
                              SELECT to_geographic_crs
                                FROM r_carto_transform
                               WHERE from_geographic_crs =
                                                    (SELECT storage_crs
                                                       FROM project_default)
                                 AND 
reversible_flag = 1)
                          )
                      )
                   OR crs.base_geographic_ref_sys = (SELECT storage_crs
                                                       FROM project_default)
                  )
             )
         )
ORDER BY NAME
   


[Seabed Objects] [Entities in Schema Seabed] [Index]

Copyright © 2018 Schlumberger. All rights reserved.