XML Script WMTS Export

From OCAD Wiki - English
Revision as of 11:39, 3 July 2020 by ANK (talk | contribs)
Jump to navigation Jump to search

This function is available in OCAD Mapping Solution.

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>
    <PartOfMap>  
      <Enabled>true</Enabled>
      <Coordinates>m</Coordinates>
      <L>2600000</L>
      <R>2610000</R>
      <B>1200000</B>
      <T>1210000</T>
    </PartOfMap>  
    <MinZoom>0</MinZoom>
    <MaxZoom>6</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.