Difference between revisions of "XML Script WMTS Export"

From OCAD Wiki - English
Jump to navigation Jump to search
Line 12: Line 12:
 
     <ExportPath>S:\O Map ZG\13_Leaflet\</ExportPath>
 
     <ExportPath>S:\O Map ZG\13_Leaflet\</ExportPath>
 
     <Format>Leaflet</Format>
 
     <Format>Leaflet</Format>
     <PartOfMap>
+
     <TileExtent>
       <Enabled>true</Enabled>
+
       <EastingMin>2480000</EastingMin>
       <Coordinates>m</Coordinates>
+
       <EastingMax>2825000</EastingMax>
       <L>2600000</L>
+
       <NorthingMin>1075000</NorthingMin>
       <R>2610000</R>
+
       <NorthingMax>1300000</NorthingMax>
       <B>1200000</B>
+
    </TileExtent>
       <T>1210000</T>
+
    <MapExtent>
     </PartOfMap>
+
      <EastingMin>2590000</EastingMin>
 +
      <EastingMax>2640000</EastingMax>
 +
       <NorthingMin>1240000</NorthingMin>
 +
       <NorthingMax>1273000</NorthingMax>
 +
     </MapExtent>
 
     <MinZoom>0</MinZoom>
 
     <MinZoom>0</MinZoom>
     <MaxZoom>6</MaxZoom>
+
     <MaxZoom>10</MaxZoom>
 
     <PixelSize>0.25</PixelSize>
 
     <PixelSize>0.25</PixelSize>
 
     <TileSize>1000</TileSize>
 
     <TileSize>1000</TileSize>

Revision as of 13:42, 6 August 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>
    <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.