XML Script WMTS Export: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<PRE> <?xml version="1.0" encoding="ISO-8859-1"?> <OcadScript> <File.Open> <File>S:\O Map ZG\ZG.ocd</File> </File.Open> <File.ExportWmts>...") |
No edit summary |
||
| (8 intermediate revisions by 3 users not shown) | |||
| 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: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_Script|XML Scirpt]]. | |||
<PRE> | <PRE> | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | <?xml version="1.0" encoding="ISO-8859-1"?> | ||
| Line 7: | Line 11: | ||
<File.ExportWmts> | <File.ExportWmts> | ||
<ExportPath>S:\O Map ZG\13_Leaflet\</ExportPath> | <ExportPath>S:\O Map ZG\13_Leaflet\</ExportPath> | ||
<WebmapTitle'>MapAnt</WebmapTitle> // optional | |||
<WmtsTitle'>TITLE</WmtsTitle> // optional | |||
<WmtsUrl'>XXX.XXX</WmtsUrl> // optional | |||
<WmtsIdentifier>IDENTIFIER</WmtsIdentifier> // optional | |||
<WmtsAbstract>ABSTRACT</WmtsAbstract> // optional | |||
<Format>Leaflet</Format> | <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> | <MinZoom>0</MinZoom> | ||
<MaxZoom> | <MaxZoom>10</MaxZoom> | ||
<PixelSize>0.25</PixelSize> | <PixelSize>0.25</PixelSize> | ||
<TileSize>1000</TileSize> | <TileSize>1000</TileSize> | ||
| Line 29: | Line 42: | ||
</OcadScript> | </OcadScript> | ||
</PRE> | </PRE> | ||
[[File:WMTSLeaflet.png]] | |||
''OCAD Tiles displayed in Leaflet.'' | |||
==Example== | |||
[https://www.mapant.ch Auto-generated map from Northwestern Switzerland] | |||
Latest revision as of 10:09, 20 October 2022
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>
<WebmapTitle'>MapAnt</WebmapTitle> // optional
<WmtsTitle'>TITLE</WmtsTitle> // optional
<WmtsUrl'>XXX.XXX</WmtsUrl> // optional
<WmtsIdentifier>IDENTIFIER</WmtsIdentifier> // optional
<WmtsAbstract>ABSTRACT</WmtsAbstract> // optional
<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>
OCAD Tiles displayed in Leaflet.
