Geographic roles have been unified to access 58 world administrative boundaries down to the postal code level. The server has a geographic configuration editor for customizing the list of geographic roles, basemaps, reference layers, and demographic layers. A customized geographic role can reference either an uploaded shapefile or an existing Esri Feature Layer.
Note:
|
|
By default, the server is configured for unified geographic roles. This configuration is controlled by the following settings.
The Change Settings for GEO services page opens, as shown in the following image.
The best practice is to copy the desired. csv file from the _edahome/etc/geomaps folder to the application folder named in this setting, and edit it, changing aliases or adding records with new ones. There are four focexecs named geo_srv_mapkey_<geo_role> that have mandatory parameter ISO2 country name. The following is a request example that reports city names for South Africa sorted by state/province name.
EX geo_srv_mapkey_city ISO2='ZA'
Following is an example of user-created records (based on the obtained report):
"South Africa", "Gauteng", "Johannesburg", "City of Johannesburg" "South Africa", "Western Cape", "Paarl", "Drakenstein"
|
|
The GEO configuration editor provides a tool for editing or adding properties for geographic roles, basemaps, reference layers, and demographic layers. In addition, it enables you to add maps and shapefiles to the configuration.
The GEO configuration editor opens displaying the configured geographic roles, as shown in the following image.
You can select the following objects from the Object drop-down list.
You can edit the properties for a basemap or context layer (reference layer or demographic layer), or add a new one. You cannot edit the properties of a standard geographic role. To add a customized geographic role, you first add an Esri map or a shapefile (WFRS map) and assign the geographic role to the map or shapefile.
The following standard unified geographic roles are configured by default and cannot be changed. These geographic roles create a hierarchy that can be used to drill down or up between levels of administration in maps, reports, or charts.
The following describes columns for geographic roles in the configuration editor.
Is the unique name of the geographic role. It cannot have spaces, but it can have underscores (_).
Next to the name is an indicator of whether the role is a standard role or a customized role.
Is the description of the geographic role that is displayed in reports and in drop-down lists in the WebFOCUS tools.
Is the type of geographic data returned from the map service for rendering on the map.
Valid values include:
The following image shows the GEO configuration editor with the Basemap object selected.
Following is a description of the properties used for basemap configuration.
Is the name of the basemap.
Next to the name is an indicator of whether the basemap is a standard basemap or a customized basemp.
Is the name of the thumbnail for the basemap (for a standard basemap) or the URL to the thumbnail (for a customized basemap) that will appear on the Basemap drop-down list in the WebFOCUS tools or the Change Basemap map widget.
Is a title to display on the Basemap drop-down list in the WebFOCUS tools or the Change Basemap map widget.
Is the URL to the map service that provides the basemap, for a customized basemap. For a standard basemap, the URL is already stored in the server geographic configuration file and is not displayed.
Valid values are tiled and vector.
Specifies additional JSON properties for rendering the map.
To customize the properties of an existing basemap, click the down arrow next to a basemap name or right-click the basemap line and click Customize BASEMAP.
The Customize Basemap dialog box opens, as shown in the following image.
Edit the properties you want to change. If you change the URL, you can click Verify to make sure the map service is valid and accessible.
When you are finished, click OK, then click Save on the GEO configuration editor Basemaps page.
To add a new basemap to the configuration, click Add.
The Create a BASEMAP dialog box opens, as shown in the following image.
Enter a name for the basemap, a URL to the thumbnail, a title to display, and the URL to the map service that provides the basemap, and click Verify.
When you have configured the properties, click OK, then click Save on the GEO configuration editor Basemap page.
The following image shows the GEO configuration editor with the ContextLayer object selected.
Following is a description of the properties used for context layer configuration.
Is the name of the context layer.
Next to the name is an indicator of whether the context layer is a standard context layer or a customized context layer.
Is the type of authentication needed to access this context layer. Valid values are:
Note: For instructions for configuring the Adapter for Esri ArcGIS, see the Adapter Administration manual.
Is the type of context layer. For a cached layer, the layer type is tile. For a layer that is rendered dynamically, the layer type is featurelayer.
Is a title to display on the demographic layer drop-down list in the WebFOCUS tools.
Is the URL to the map service that provides the context layer.
Specifies additional JSON properties needed for rendering the context layer. For example, smartMapping properties define the border styles within the context layer.
To customize the properties of an existing context layer, click the down arrow next to a context layer name or right-click the context layer line and click Customize context layer.
The Customize CONTEXTLAYER dialog box opens, as shown in the following image.
Edit the properties you want to change. If you change the URI, you can click Verify to make sure the map service is valid and accessible.
When you are finished, click OK, then click Save on the GEO configuration editor Context Layers page.
To add a new context layer to the configuration, click Add.
The Create a Customized CONTEXTLAYER dialog box opens, as shown in the following image.
Enter a name for the context layer, the authorization type, a layer type, a title to display, any additional JSON needed for rendering the context layer, and the URI to the map service that provides the context layer, and click Verify.
When you have configured the properties, click OK, then click Save on the GEO configuration editor Context Layer page.
|
|
To add a geographic role to the configuration, you can add a new Esri map or a shapefile hosted by the Server and associate a geographic role with the new map. You can also implement NUTS geographic roles support.
|
|
To add an Esri geographic role, click Add ESRI map on the Geographic Configuration Editor.
The Create a new ESRI map role dialog box opens, as shown in the following image.
Configure the following map service properties.
Is a name for the geographic role.
Is a title to display in the WebFOCUS tools.
Select the type of geometry that is returned from the map service for this role. Valid values are:
Is the URL to the map service that provides the geographic data.
Click Verify after entering the URL to verify that the map service is available by going to the specified URL.
Add as parameters any additional geographic roles needed to identify the exact location of the new role. For example, a city name needs state and country parameters.
The following properties add the WebFOCUS Regions role to the configuration.
Note: The parameter name corresponds to the field name in the FeatureLayer referenced in the following URL:
http://services7.arcgis.com/L95Wwv9OjRQ0tjAs/ArcGIS/rest/services/wfretail_sub_regions/FeatureServer/0
Click OK when you have finished configuring the properties.
The new role is added to the configuration as a customized role, as shown in the following image.
Click Save to save this role to the configuration.
The following request uses the WebFOCUS Regions geographic role in a map request.
DEFINE FILE WF_RETAIL_LITE REGION/A50 (GEOGRAPHIC_ROLE=REGION) = BUSINESS_SUB_REGION; END GRAPH FILE WF_RETAIL_LITE SUM COGS_US BY REGION WHERE COUNTRY_NAME EQ 'United States' ON GRAPH PCHOLD FORMAT JSCHART ON GRAPH SET LOOKGRAPH CHOROPLETH ON GRAPH SET STYLE * TYPE=REPORT, CHART-LOOK=com.esri.map, $ TYPE=DATA, COLUMN=N2, BUCKET=color, $ *GRAPH_JS_FINAL "extensions": { "com.esri.map": { "overlayLayers": [ { "ibiDataLayer": { "map-metadata": { "map_by_field": " REGION" } } } ], "baseMapInfo": { "customBaseMaps": [ { "ibiBaseLayer": "gray" } ] } } } *END ENDSTYLE END
The output is shown in the following image.
|
|
A server-hosted map is based on a shapefile. You must upload the shapefile (.dbf) to an application folder accessible to the server. The server will transform it to ibijson format.
An ESRI shape file is actually a collection of at least four files:
All files must have exactly the same name and to be located in the same directory. If they are not, the shapefile conversion will fail.
When there are several possible keys associated with a geometry, a drop down list of detected key names will be displayed. Select any one of these fields. No selection required when there is a single geometry key.
The shapefile should only be in the GCS_WGS_1984 - World Geodetic System 1984 (decimal degrees) coordinate system.
To add a geographic role for a Server-hosted map, click Add WFRS map on the Geographic Configuration Editor.
The Add WFRS hosted map dialog box opens, as shown in the following image.
Configure the following properties.
Is a name for the geographic role.
Select either POLYGON or POINT from the drop-down list.
Enter the name of the application directory where the shapefile resides, or click the ellipsis (...) to navigate to the application directory. Then select the .dbf file for the role.
Enter the name of the application directory where you want to place the ibijson file, or click the ellipsis (...) to navigate to the application directory.
Quantization is the process of transforming a large set of input values to a smaller set of values. When transforming the shapefile, the server will quantize points that are too close together in order to optimize map rendering performance. Two methods are available for quantization, LINEAR or GRID. The default is LINEAR.
Is the threshold value for the x-axis.
Is the threshold value for the y-axis.
If the map has multiple keys, a drop-down list displays so that you can select one, as shown in the following image.
Click OK when you have finished configuring the properties.
The new role is added to the configuration as a customized role, as shown in the following image.
Click Save to save this role to the configuration.
You can test the role by right-clicking the role in the configuration editor and clicking Test. A sample map will be generated, as shown in the following image.
|
|
Nomenclature of territorial units for statistics (NUTS) are geographic roles specific to the European Union.
To add NUTS geographic roles to the configuration, click Add NUTS support on the Geographic Configuration Editor.
The NUTS geographic roles are added, as shown in the following image.
Click Save to save these roles to the configuration.
|
|
Click Add extended postal codes to add support for Level 1 and Level 2 postal codes used in certain countries.
|
|
For each geographic role, a set of vocabulary rules define how to recognize when a field name should automatically be assigned to that role. If you right-click a role, you can click Customize vocabulary from the context menu.
Elements in a rule are connected by the Boolean logic operation OR (only one needs to be satisfied). Each vocabulary element contains words enclosed with special characters. Words in the rule element are connected by the Boolean logic operation AND (all need to be satisfied).
A word may be prefixed and/or suffixed with the percent character (%), which is a placeholder for any sequence of characters. If an element contains more than one word, each word has to be prefixed by the character plus (+) or minus (-). Plus indicates that the word must be found in the column name. Minus indicates that word must not be found in the column name.
For example, the following are the vocabulary rules for the role COUNTRY.
To add another rule, click Add optional.
When you are finished, click OK.
Click Save to save these rules to the configuration.