Difference between revisions of "XML Script WMTS Export"

From OCAD Wiki - English
Jump to navigation Jump to search
Line 1: Line 1:
[[File:Mas40px.png|This function is available in OCAD Mapping Solution.|link=https://www.ocad.com/en/products/ocad-for-cartography]]
+
[[File:Mas40px.png|This function is available in OCAD Mapping Solution.|link=https://www.ocad.com/en/products/ocad-for-cartography]][[File:Ori40px.PNG|This function is available in OCAD Orienteering.|link=https://www.ocad.com/en/products/ocad-for-orienteering]]
  
 
OCAD can export map tiles for Leaflet with XML Scirpt.
 
OCAD can export map tiles for Leaflet with XML Scirpt.

Revision as of 11:53, 3 July 2020

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>
    <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.