Customizing SRS Mapping Customizing WMS GetCapabilities Responses

Introduction to MapViewer 1-33 To register a nonspatial data provider, use the ns_data_provider element, as shown in the following example: ns_data_provider id=testProvider class=com.mycorp.GetSalesData parameters parameter name=bi_database value=stadb32.mycorp.com parameter name=sid value=bidata parameters ns_data_provider The id attribute uniquely identifies a nonspatial data provider. Use this id value in any map request that involves the provider. The class attribute specifies the name of the class that implements the nonspatial data provider. The parameters element specifies a set of initialization parameters that are used by the nonspatial data provider during its initialization process.

1.5.2.11 Customizing SRS Mapping

You can use the srs_mapping element to specify an SDO to EPSG SRID mapping file, which define mappings between Oracle Spatial SDO_SRID values and EPSG codes. As explained in Section E.1.3 , each line in the specified mapping file must contain an SDO_SRID value and the corresponding EPSG code. The srs_mapping element can be used with WMS and WFS themes. The following example uses the srs_mapping element to specify an SDO to EPSG SRID mapping file: srs_mapping sdo_epsg_mapfile ..configepsg_srids.properties sdo_epsg_mapfile srs_mapping

1.5.2.12 Customizing WMS GetCapabilities Responses

MapViewer can be used as an Open Geospatial Consortium WMS Web Map Server 1.1.1 compliant server. As such, a WMS client can send MapViewer the GetCapabilities request. In response, MapViewer will send back the list of themes that it hosts and other important information, such as the data provider’s name and a list of keywords, that might of interest to the requesting client. You can use the wms_config element to customize the descriptive information sent back to the client as part of the GetCapabilities response, as shown in the following example: wms_config host=www.my_corp.com port=80 protocol=http default_datasource=dsrc1 public_datasources=dsrc1,dsrc2 title WMS 1.1 interface for Oracle Application Server 10g MapViewer title abstract This WMS service is provided through Oracle MapViewer. abstract keyword_list keywordbirdkeyword keywordroadrunnerkeyword keywordambushkeyword 1-34 Oracle Fusion Middleware Users Guide for Oracle MapViewer keyword_list sdo_epsg_mapfile ..configepsg_srids.properties sdo_epsg_mapfile wms_config The host attribute specifies the host part of the service request URL that the client should use for future WMS requests made to this MapViewer server. The port attribute specifies the port part of the service request URL that the client should use for future WMS requests made to this MapViewer server. The protocol attribute specifies the protocol part of the service request URL that the client should use for future WMS requests made to this MapViewer server. The default_datasource attribute specifies the base data source used to retrieve the capabilities response. If this attribute is not defined, the data source WMS is used, and that data source must exist in this MapViewer server. The public_datasources attribute specifies which data source contents are to be listed in the GetCapabilities response. If this attribute is not defined, all data source contents will be listed. The title element specifies the service title to be included as part of the response. The abstract element specifies the abstract to be included as part of the response. The keyword_list element specifies a list of keywords that best describe the types of layers served by this MapViewer server. The sdo_epsg_mapfile element specifies a text file that defines mappings from Oracle Spatial SDO SRID values to the corresponding EPSG SRID values that are typically used in most WMS requests and responses. For information about this mapping file, see Section E.1.3 .

1.5.2.13 Configuring the Map Tile Server for Oracle Maps