XML Script WMTS Export

From OCAD Wiki - English
Revision as of 13:43, 6 August 2020 by Admin (talk | contribs)
Jump to navigation Jump to search

This function is available in OCAD Mapping Solution.This function is available in OCAD Orienteering.

OCAD can export map tiles for Leaflet with XML Scirpt.

<?xml version="1.0" encoding="ISO-8859-1"?>
<OcadScript>
  <File.Open>
    <File>S:\O Map ZG\ZG.ocd</File>
  </File.Open>
  <File.ExportWmts>                                        
    <ExportPath>S:\O Map ZG\13_Leaflet\</ExportPath>
    <Format>Leaflet</Format>
    <TileExtent>
      <EastingMin>2480000</EastingMin>
      <EastingMax>2825000</EastingMax>
      <NorthingMin>1075000</NorthingMin>
      <NorthingMax>1300000</NorthingMax>
    </TileExtent>
    <MapExtent>
      <EastingMin>2590000</EastingMin>
      <EastingMax>2640000</EastingMax>
      <NorthingMin>1240000</NorthingMin>
      <NorthingMax>1273000</NorthingMax>
    </MapExtent>
    <MinZoom>0</MinZoom>
    <MaxZoom>10</MaxZoom>
    <PixelSize>0.25</PixelSize>
    <TileSize>1000</TileSize>
  </File.ExportWmts>
 <File.Save>
    <Enabled>false</Enabled>  
  </File.Save>
  <File.Close>
    <Enabled>true</Enabled>  
  </File.Close>
</OcadScript>

WMTSLeaflet.png

OCAD Tiles displayed in Leaflet.

Example: www.mapant.ch