Create Kmz

URL:
https://<root>/kml/createKmz
Methods:
POST
Required Capability:
Access allowed with any authorized privilege
Version Introduced:
10.1

Description

The createKmz operation creates a new KMZ file from the input KML file uploaded to the server. The created KMZ file is available in the server system directory in the uploads folder.

Request parameters

ParameterDescription

kml

The KML file in JSON format.

f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

The following is a sample POST request for the createKmz operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
POST /webadaptor/admin/kml/createKmz HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

kml={
  "kml": "https://earth.google.com/kml/2.2",
  "NetworkLink": {
    "name": "kmzdoc2",
    "flyToView": 0,
    "visibility": 0,
    "description": "KML Document",
    "open": 1,
    "LookAt": {
      "longitude": 16.937705993652344,
      "latitude": 1.2083547307380726,
      "altitude": 0,
      "range": 8716076.470664795,
      "tilt": 0,
      "heading": 0,
      "altitudeMode": "relativeToGround"
    },
    "Link": {
      "href": "https://obie:8399/arcgis/services/Africa/MapServer/KmlServer?Composite=true&compatabilityMode=GoogleEarth",
      "refreshMode": "onChange",
      "refreshInterval": 4,
      "viewRefreshMode": "onStop",
      "viewBoundsScale": 1,
      "viewRefreshTime": 2,
      "viewFormat": "BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth];CAMERA=[lookatLon],[lookatLat],[lookatRange],[lookatTilt],[lookatHeading];VIEW=[horizFov],[vertFov],[horizPixels],[vertPixels],[terrainEnabled]"
    }
  }
}&f=pjson

JSON Response example

Use dark colors for code blocksCopy
1
{"status": "success"}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.