MarkLogic Server 11.0 Product Documentation
admin:appserver-set-coordinate-systemadmin:appserver-set-coordinate-system(
$config as element(configuration),
$appserver-id as xs:unsignedLong,
$value as xs:string
) as element(configuration)
Summary
Set the default geospatial coordinate system for an App Server.
Parameters |
config |
A configuration specification, typically as returned from one of
the Admin module functions.
|
appserver-id |
The ID of the App Server. Typically, this is the result
of an admin:appserver-get-id
call.
|
value |
The canonical name of a supported geospatial coordinate system, such
as wgs84/double , etrs89 ,
etrs89/double , raw , or raw/double .
|
Required Privileges
This operation requires at least one of the following privileges:
http://marklogic.com/xdmp/privileges/admin/app-server
http://marklogic.com/xdmp/privileges/admin/app-server/{id}
http://marklogic.com/xdmp/privileges/admin/group
http://marklogic.com/xdmp/privileges/admin/group/{id}
Usage Notes
The name of the coordinate system also specifies the default point
coordinate value precision. For example, "wgs84" implicitly specifies
single precision, while "wgs84/double" specifies double precision.
You can generate the canonical name for a coordinate system/precision
combination using
geo:coordinate-system-canonical.
Example
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
at "/MarkLogic/admin.xqy";
let $config := admin:get-configuration()
let $groupid := admin:group-get-id($config, "Default")
return
admin:appserver-set-coordinate-system(
$config,
admin:appserver-get-id($config, $groupid, "MyAppServer"),
"raw")
(: returns the new configuration element -- use admin:save-configuration
to save the changes to the configuration or pass the configuration
to other Admin API functions to make other changes. :)
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.