### GetCapabilities Request Example
Source: https://www.politerm.com/zuluserver/webhelp/wmswfs.html
Use this URL to request an XML file containing the parameters of published WMS data from the server. Ensure the service URI and version are correct for your setup.
```http
http://zs.zulugis.ru:6473/ws?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
```
--------------------------------
### Example NetToolsTaskGetOutput Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/NetToolsTaskGetOutput.html
An example XML request to fetch calculation logs. Specify TaskHandle, LineNum for starting line, and MaxCount for the number of lines.
```xml
A6E0BABE-A01D-4BAE-8EF3-3AA901B6BFD71410
```
--------------------------------
### WMS Service Request Example
Source: https://www.politerm.com/zuluserver/webhelp/zsws_uri.html
This example demonstrates how to construct a request to the default WMS service by specifying the 'ws' URI. This applies to both GET and POST requests.
```APIDOC
## WMS Service Request
### Description
This example shows how to make a request to the WMS service by including the 'ws' URI. This is crucial for the server to correctly route the request to the WMS service.
### Method
GET (or POST)
### Endpoint
`http://localhost:6473/ws?service=WMS&version=1.1.1&request=GetCapabilities`
### Parameters
#### Query Parameters
- **service** (string) - Required - Specifies the service type (WMS).
- **version** (string) - Required - Specifies the service version (e.g., 1.1.1).
- **request** (string) - Required - Specifies the WMS request type (e.g., GetCapabilities).
### Request Example
```
http://localhost:6473/ws?service=WMS&version=1.1.1&request=GetCapabilities
```
### Response
#### Success Response (200)
Details of the WMS capabilities.
```
--------------------------------
### LayerBatchEdit Request Example
Source: https://www.politerm.com/zuluserver/webhelp/zws/LayerBatchEdit.html
An example demonstrating how to structure a batch editing request.
```json
```
--------------------------------
### Example GetZMMapList Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/GetZMMapList.html
An example XML request to retrieve the list of Zulu maps from the server.
```xml
```
--------------------------------
### Example NetToolsTaskStop Response
Source: https://www.politerm.com/zuluserver/webhelp/zws/NetToolsTaskStop.html
Example XML response indicating the status of the NetToolsTaskStop operation.
```xml
A6E0BABE-A01D-4BAE-8EF3-3AA901B6BFD70
```
--------------------------------
### Example NetToolsSelectSubNetwork Response
Source: https://www.politerm.com/zuluserver/webhelp/zws/NetToolsSelectSubNetwork.html
An example XML response indicating the successful completion of the NetToolsSelectSubNetwork operation.
```xml
0
```
--------------------------------
### Example TrackingGetInfoByXY Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/TrackingGetInfoByXY.html
An example XML request to the Zulu Server Web Service for tracking information.
```xml
People8380626.773378058.700.14EPSG:3857
```
--------------------------------
### Example GetZMMapList Response
Source: https://www.politerm.com/zuluserver/webhelp/zws/GetZMMapList.html
An example XML response containing a list of Zulu maps with their names and IDs.
```xml
6
```
--------------------------------
### GetLayerList Response Example
Source: https://www.politerm.com/zuluserver/webhelp/zws/GetLayerList.html
This is an example of a successful response from the GetLayerList operation, detailing the layers available on the server.
```xml
riga:housesbuve 1riga:teploKreisajsmo:voВодоотведениеmo:tsТепловая сетьmo:regionРайоны МОkr:admАдминистративное деление6
```
--------------------------------
### LayerBatchEdit Response Example
Source: https://www.politerm.com/zuluserver/webhelp/zws/LayerBatchEdit.html
An example illustrating the expected response format for batch editing operations.
```json
```
--------------------------------
### Example TrackingGetLayerList Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/TrackingGetLayerList.html
An example of an XML request to retrieve the list of tracking layers using the ZWS protocol.
```xml
```
--------------------------------
### Example GetLayerThemes Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/GetLayerThemes.html
An example XML request to retrieve thematic colorings for the 'riga:teplo' layer.
```xml
riga:teplo
```
--------------------------------
### Example NetworkAnalyzeSwitch Response
Source: https://www.politerm.com/zuluserver/webhelp/zws/NetworkAnalyzeSwitch.html
An example XML response from the NetworkAnalyzeSwitch command, showing the state of analyzed elements.
```xml
19980off19998off20000off20002off44
```
--------------------------------
### Example NetworkAnalyzeSwitch Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/NetworkAnalyzeSwitch.html
An example XML request to the NetworkAnalyzeSwitch command, specifying a layer and elements for analysis.
```xml
riga:teplo237922
```
--------------------------------
### Example TrackingGetInfoByXY Response
Source: https://www.politerm.com/zuluserver/webhelp/zws/TrackingGetInfoByXY.html
An example XML response from the Zulu Server Web Service containing tracking element details.
```xml
Tracking object UserId: 555970541 Name: Ivanov S.V.
Device: MI 8 Speed: 0.33 Alt: 43.70 Time: 19.02.2020 7:43:05
55597054130.3456176000000,59.914049500000033
```
--------------------------------
### Example NetToolsSelectSubNetwork Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/NetToolsSelectSubNetwork.html
An example XML request to select a subnetwork, specifying the layer, model, and element ID.
```xml
2:teplosamthermo15
```
--------------------------------
### Example TrackingSetPosition Response
Source: https://www.politerm.com/zuluserver/webhelp/zws/TrackingSetPosition.html
An example XML response to the TrackingSetPosition command, indicating a successful operation with RetVal 0.
```xml
0
```
--------------------------------
### Complete WMS Module Configuration Example
Source: https://www.politerm.com/zuluserver/webhelp/wmsxml.html
An example demonstrating the full structure of a wms-module, including service details, contact information, and logging configuration. This serves as a template for setting up a WMS service.
```xml
Вебсервер ООО Политерм
WMS сервер
Официальный геосервер ООО Политерм
ГИСИнженерные задачиТеплогидравлические расчеты
Иванов
ООО Политерм
Вед. специалист
ул.Ворошилова 33 лит а3
СПБ
Ленинградская область
192007
Россия
812 7670352
812 7670352
politerm@politerm.com
NONE
1
```
--------------------------------
### GetLayerList GET Request Example
Source: https://www.politerm.com/zuluserver/webhelp/zws/GetLayerList.html
This is an example of a GET request to the GetLayerList operation. The endpoint includes the server address and the specific operation.
```http
http://zs.zulugis.ru:6473/zws/getlayerlist
```
--------------------------------
### GetLayerUpdateCount Example Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/GetLayerUpdateCount.html
An example of an XML request to get the update count for the 'riga:teplo' layer.
```xml
riga:teplo
```
--------------------------------
### ZuluServer Configuration File Example
Source: https://www.politerm.com/zuluserver/webhelp/zscommon.html
This is a comprehensive example of the ZuluServ.cfg file, illustrating various configuration options for ZuluServer. Each option should be on a new line. Restart ZuluServer after making changes.
```ini
# General Settings
# Номер порта
Port: 6473
# «Сообщения сервера в окне монитора»
monitor: on
# Access Rights
# Файл прав доступа на директорию
RuleFile: .zsaccess
# Файл списка пользователей
UserFile: .\.zsusers
# Основной файл прав доступа
AccessConf: .\Access.cfg
# Корневая папка данных
RootDir: .\Data
# «Разрешить редактирование анонимным пользователям»
AnonReadWrite: on/off
# «Опрос сетевой лицензии ZuluServer»
NetHasp: on/off
«Опрос сетевой лицензии ZuluNetTools»
WebNetToolsNetHasp:
# «Авторизация Windows»
WinAuth: on/off
# _Режим безопасности_
AccessMode: public/secured/strict
# Шифрование паролей пользователей
PasswordEncrypt: none/gost/sha512
# Минимальная длина пароля (число от 0 до 15)
PasswordLength: 8
# Срок действия пароля - количество дней.
# Значение по умолчанию — 180. Работает только в режиме повышенной безопасности - AccessMode: strict
PasswordExpires: 90
# Глубина истории паролей. Указывается количество хранимых в истории паролей от 0 до 20.
# Если указан 0 — отключает историю паролей. Работает только в режиме повышенной безопасности - AccessMode: strict
PasswordHistory: 20
# Максимальное количество попыток авторизации. Значение по умолчанию 0 — не ограничено.
LoginAttempts: 0
# Время блокировки клиента в минутах. Значение по умолчанию — 10.
LoginAttemptsDelay: 10
# Блокировка системного аккаунта администратора — _sa_.
LockRootAccount: on/off
# «Ведение собственного журнала событий (лога)»
_# Ведение журнала работы .log_
LogWrite: on/off
_# Время хранения журнала (дней)_
LogDays: 90
_# Папка для файлов журнала_
LogDir: C:\Program Files (x86)\Zulu 8.0\Logs
_# Протоколирование в журнале добавляемых, удаляемых, изменяемых объектов_
LogEditActions: add delete modify
_# Указание даты в логе для каждой команды_
LogDateForEachCommand: on/off
# «Ведение журнала веб-служб»
_# Запись в лог http-запросов к ZuluServer_
LogWebRequest: on/off
_# Запись в лог http-ответов ZuluServer_
LogWebResponse: on/off
_# Запись в log бинарных данных (фото, документов)_
LogWebBinaryResponse: on/off
_#Запись в лог отладочной информации (используется только диагностики ошибок)_
LogDebug: on/off
# Логирование используемой памяти
LogMemory: on/off
_# «Контроль версии клиента»_
ClientVersionExpired: 14
_# «Отрисовка (перестроение) изображения клиента»_
NotifyToRedrawAll: on/off
_# «Сжатие данных»_
PackMethod: deflate
_# «Ограничение соединений»_
_# Максимальное время бездействия пользователя в минутах_
IdleTime: 45
_# Максимальное количество соединений с одного IP-адреса_
MaxConnPerIp: 5
_# Максимальное количество соединений на имя пользователя (на login)_
MaxConnPerUser: 3
_# «Работа через proxy-сервер»_
_# Параметр работы через http proxy-сервер_
UseProxy: on/off
_# IP адрес proxy-сервера_
ProxyAddress: адрес_прокси
_# Номер порта proxy-сервера_
ProxyPort: порт_прокси
_# Данные авторизации proxy_
ProxyAuth: логин_пароль_в_зашифрованном_виде
_# «Путь к каталогу тайлов»_
_# Папка хранения кэша тайл серверов (По-умолчанию C:\ProgramData\Zulu)_
TilesCacheDir:
_# Папка, для хранения нарезанных тайлов_
TilesDir:
# Язык по-умолчанию интерфейса веб-приложения ZuluGIS Online
ZuluWebLang: ru/en
# Использовать авторизацию Windows для доступа веб-клиентов
HttpWinAuth: on/off
# Кеширование плиток для ZWS
ZWSCache: on/off
# «Фильтрация опубликованных ZWS слоев»
ZWSLayerListFilter: on/off
# «Пространственный фильтр для ZWS слоев»
ZWSUseRestrictedArea: on/off
# «Запуск гидравлических расчетов в ZuluGIS Online»
WebNetTools: on/off
# «Режим работы HTTP-клиента»
HttpClient: 0 или 1
# «Графика»
Render: 0
# Сжатие HTTP-ответов
WebZipResponse: on/off
# «Формат полей даты и времени для "тонких" клиентов»
ZWSTimeFormat: 1
```
--------------------------------
### Example of Layer Publishing and Descriptor Creation
Source: https://www.politerm.com/zuluserver/webhelp/zspublish_layer.html
Illustrates the input parameters and the resulting output file for publishing a layer. Shows the source layer path, the destination directory for the descriptor, and the content of the generated `.zl` file.
```text
Пример:
Каталог для записи: D:\ZuluData\SPB
Исходный слой: d:\RU-SPB\building-polygon.b00
Созданный файл описатель:
D:\ZuluData\SPB\building-polygon.zl
Содержание файла описателя:
Path: d:\RU-SPB\building-polygon.b00
```
--------------------------------
### Example NetToolsTaskGetStatus Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/NetToolsTaskGetStatus.html
An example XML request to get the status of a task. The TaskHandle is a unique identifier for the task.
```xml
A6E0BABE-A01D-4BAE-8EF3-3AA901B6BFD7
```
--------------------------------
### Detailed Layer Configuration in wms.xml
Source: https://www.politerm.com/zuluserver/webhelp/wmsxml.html
This example demonstrates the detailed configuration of a single layer within the wms.xml file, including its namespace, resource path, and specific settings for WMS, WFS, and ZWS.
```xml
Seti
Seti
E:\Moskow\electrostal\vodootvedenie.b00
Drain
Drain
1
1
1
2
seti_db
база Drain
EPSG:4326
hydro
hydro
```
--------------------------------
### Map Publishing Example 2 (With Subdirectory)
Source: https://www.politerm.com/zuluserver/webhelp/zspublish_map.html
Demonstrates map publishing when the 'Place layers in map subdirectory' option is enabled. Layer descriptors are created in a subdirectory named after the map.
```text
Example 2:
Catalog for writing: D:\ZuluData
Option "Place layers in map subdirectory": enabled
Source map: d:\RU-SPB\SPB.zmp
Layer 1 of map: d:\RU-SPB\building-polygon.b00
Layer 2 of map: d:\RU-SPB\highway-line.b00
Created map file:
D:\ZuluData\SPB.zmp
Layer 1 descriptor:
D:\ZuluData\SPB\building-polygon.zl
Layer 2 descriptor:
D:\ZuluData\SPB\highway-line.zl
```
--------------------------------
### LayerAddSymbol Response Example
Source: https://www.politerm.com/zuluserver/webhelp/zws/LayerAddSymbol.html
An example XML response after adding a symbol to a layer.
```xml
75798
```
--------------------------------
### Example TrackingRegisterDevice Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/TrackingRegisterDevice.html
An example of an XML request to register a device. Ensure all required fields like Layer, DeviceID, and Description are correctly populated.
```xml
People123456Ivanov S.V.
```
--------------------------------
### LayerAddSymbol Request Example
Source: https://www.politerm.com/zuluserver/webhelp/zws/LayerAddSymbol.html
An example XML request to add a symbol to a layer.
```xml
riga:teplo2256.9624.03EPSG:38570
```
--------------------------------
### Map Publishing Example 1 (No Subdirectory)
Source: https://www.politerm.com/zuluserver/webhelp/zspublish_map.html
Demonstrates map publishing when the 'Place layers in map subdirectory' option is disabled. Layer descriptors are created in the same directory as the map file.
```text
Example 1:
Catalog for writing: D:\ZuluData\SPB
Option "Place layers in map subdirectory": disabled
Source map: d:\RU-SPB\SPB.zmp
Layer 1 of map: d:\RU-SPB\building-polygon.b00
Layer 2 of map: d:\RU-SPB\highway-line.b00
Created map file:
D:\ZuluData\SPB\SPB.zmp
Layer 1 descriptor:
D:\ZuluData\SPB\building-polygon.zl
Layer 2 descriptor:
D:\ZuluData\SPB\highway-line.zl
```
--------------------------------
### Install HASP Driver via Command Line
Source: https://www.politerm.com/zuluserver/webhelp/hasp_driver.html
Use this command to install the HASP driver from the command line. Ensure you are in the correct directory containing 'haspdinst.exe'.
```bash
Hinstall\haspdinst.exe /i
```
--------------------------------
### GetZMMap Example Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/GetZMMap.html
An example of a GetZMMap request XML, specifying the map ID.
```xml
1cf221d3-fd7e-4c2d-a2cf-15b39d5868ac
```
--------------------------------
### LayerDeleteNode Response Example
Source: https://www.politerm.com/zuluserver/webhelp/zws/LayerDeleteNode.html
An example of an XML response after a successful LayerDeleteNode command execution.
```xml
0
```
--------------------------------
### GetLayerList POST Request Example
Source: https://www.politerm.com/zuluserver/webhelp/zws/GetLayerList.html
This is an example of a POST request to the GetLayerList operation. Ensure the service and version attributes are correctly set.
```xml
```
--------------------------------
### LayerMoveElement Response Example
Source: https://www.politerm.com/zuluserver/webhelp/zws/LayerMoveElement.html
An example XML response indicating a successful LayerMoveElement operation.
```xml
0
```
--------------------------------
### Example LayerMoveNode Response
Source: https://www.politerm.com/zuluserver/webhelp/zws/LayerMoveNode.html
An example of an XML response received after executing the LayerMoveNode command.
```xml
0
```
--------------------------------
### GetLayerUpdateCount Example Response
Source: https://www.politerm.com/zuluserver/webhelp/zws/GetLayerUpdateCount.html
An example of an XML response containing the update count for a layer.
```xml
372
```
--------------------------------
### Example NetToolsCreateNetwork Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/NetToolsCreateNetwork.html
An example XML request to create a 'hydro' model network layer named 'fromapi'. Ensure all parameters like Model, Name, UserName, and Path are correctly specified.
```xml
hydrofromapifromapi:
```
--------------------------------
### Example UpdateElemAttributes Response
Source: https://www.politerm.com/zuluserver/webhelp/zws/UpdateElemAttributes.html
An example XML response indicating the successful execution of the UpdateElemAttributes command.
```xml
0
```
--------------------------------
### Example NetToolsTaskStop Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/NetToolsTaskStop.html
Example XML request to stop a calculation task using its TaskHandle.
```xml
A6E0BABE-A01D-4BAE-8EF3-3AA901B6BFD7
```
--------------------------------
### DataSrc.cfg File Fragment Example
Source: https://www.politerm.com/zuluserver/webhelp/zsdatasrc_cfg.html
This snippet shows a sample configuration fragment from the DataSrc.cfg file, illustrating various data source definitions and their parameters.
```ini
#Фрагмент файла DataSrc.cfg
# To pass authorization info to DBMS transitively
#Передавать учетные сведения на сервер СУБД
dbms-auth-pass: all
Используемая СУБД по умолчанию
local-dbms: sqlite
#Ограничение запросов на изменение
restrict-changeto: no
#Версия SQL Server LocalDB по умолчанию
localdb: v11
name: ODBC_SQL_system
type: odbc/dsn
dsn: ODBC_SQL_con
require: valid-user
name: ODBC_File_DSN_SQL
type: odbc/file
file: C:\ZuluGIS\file_conn\File_DSN.dsn
login: zu
pswd: $zs2$mcmUz8WR7rEOtnfcBDh9G.
bulk-dir: C:\Logs
name: ODBC_SQL_str
type: odbc/connstr
connstr: DSN=ODBC_SQL_con;Trusted_Connection=No;APP=ZuluGIS 2021;WSID=DIMA-E;DATABASE=Zulu_test;
login: zu
pswd: $zs2$mcmUz8WR7rEOtnfcBDh9G.
name: SQLite_all_layers
type: sqlite
path: C:\ZuluGIS\file_conn\all_layers.sqlite
name: Native_PostgreSQL_1
type: postgresql/connstr
connstr: host=localhost;port=5432;dbname=zulu;schema=myscheme
login: zulu
pswd: $zs2$1eaUGwCQUX9rISXYUl7CC1
```
--------------------------------
### ZuluNetTools Configuration File Example
Source: https://www.politerm.com/zuluserver/webhelp/webcalculations_setup.html
This XML file is generated after successful registration and configuration of ZuluNetTools. It stores account credentials and settings like the number of threads.
```xml
saWY11W/HfAuQ=1
```
--------------------------------
### LayerDeleteNode Request Example
Source: https://www.politerm.com/zuluserver/webhelp/zws/LayerDeleteNode.html
An example of an XML request to delete a node using the LayerDeleteNode command.
```xml
riga:teplo7580302
```
--------------------------------
### Example LayerDeleteElement Response
Source: https://www.politerm.com/zuluserver/webhelp/zws/LayerDeleteElement.html
An example of an XML response indicating successful deletion of a layer element.
```xml
0
```
--------------------------------
### Example GetLayerCapabilities Request
Source: https://www.politerm.com/zuluserver/webhelp/zws/GetLayerCapabilities.html
An example XML request to retrieve capabilities for a specific layer. The Layer element must be in the format 'namespace:layername'.
```xml
example:DOMA
```