Multidataset: Difference between revisions
(→) |
(→) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
The multidataset XML (.m6mmultidataset.xml) is used to setup and describe similar type datasets. A dataset is typically produced from the same source data/format. | The multidataset XML (.m6mmultidataset.xml) is used to setup and describe similar type datasets. A dataset is typically produced from the same source data/format. | ||
All entries in this file are treated as hints and may be overridden by the map renderer | All entries in this file are treated as hints and may be overridden by the map renderer. | ||
All limits can be given as zoomlevels since Maria GDK 2.0. Use postfix "L" to parse limits as zoomlevel instead ofmapscale(f.ex. minvisible="15L" maxvisible="6L"). Mapscales will be converted to corresponding zoomlevels. | All limits can be given as zoomlevels since Maria GDK 2.0. Use postfix "L" to parse limits as zoomlevel instead ofmapscale(f.ex. minvisible="15L" maxvisible="6L"). Mapscales will be converted to corresponding zoomlevels. | ||
== Multidataset == | |||
Example: | Example: | ||
Line 24: | Line 26: | ||
<groupsettingtemplates> | <groupsettingtemplates> | ||
<groupsettingtemplate grouppattern="Arealdekke" geotype="area"> | <groupsettingtemplate grouppattern="Arealdekke" geotype="area"> | ||
<groupsetting drawpri="700 | <groupsetting drawpri="700"> | ||
<limits maxvisible="10M"/> | <limits maxvisible="10M"/> | ||
</groupsetting> | </groupsetting> | ||
Line 30: | Line 32: | ||
<groupsettingtemplate grouppattern="Arealdekke" geotype="line"> | <groupsettingtemplate grouppattern="Arealdekke" geotype="line"> | ||
<groupsetting drawpri="400 | <groupsetting drawpri="400" > | ||
<limits maxvisible="10M"/> | <limits maxvisible="10M"/> | ||
</groupsetting> | </groupsetting> | ||
Line 36: | Line 38: | ||
<groupsettingtemplate grouppattern="Roads\Motorvei" geotype="line"> | <groupsettingtemplate grouppattern="Roads\Motorvei" geotype="line"> | ||
<groupsetting drawpri="290 | <groupsetting drawpri="290"> | ||
<limits maxvisible="10M"/> | <limits maxvisible="10M"/> | ||
</groupsetting> | </groupsetting> | ||
Line 42: | Line 44: | ||
<groupsettingtemplate grouppattern="Buildings" geotype="line"> | <groupsettingtemplate grouppattern="Buildings" geotype="line"> | ||
<groupsetting drawpri="150 | <groupsetting drawpri="150"> | ||
<limits maxvisible="10M"/> | <limits maxvisible="10M"/> | ||
</groupsetting> | </groupsetting> | ||
Line 48: | Line 50: | ||
<groupsettingtemplate grouppattern="Navn" geotype="point"> | <groupsettingtemplate grouppattern="Navn" geotype="point"> | ||
<groupsetting drawpri="50 | <groupsetting drawpri="50"> | ||
<limits maxvisible="10M" /> | <limits maxvisible="10M" /> | ||
</groupsetting> | </groupsetting> | ||
Line 57: | Line 59: | ||
</multidataset> | </multidataset> | ||
</source> | </source> | ||
<code><multidataset></code> is the root node of the multidataset-xml. | <code><multidataset></code> is the root node of the multidataset-xml. | ||
Line 70: | Line 70: | ||
| Global settings for multidataset. | | Global settings for multidataset. | ||
| C | | C | ||
|- | |- | ||
| [[#groupsettingtemplates|groupsettingtemplates]] | | [[#groupsettingtemplates|groupsettingtemplates]] | ||
Line 91: | Line 87: | ||
!width="15%"| '''Properties''' | !width="15%"| '''Properties''' | ||
|- | |- | ||
| multidatasetlimits | | [[#Multidatasetlimits|multidatasetlimits]] | ||
| Collection of scale limits that apply globally to this multidataset. | | Collection of scale limits that apply globally to this multidataset. | ||
| O A | | O A | ||
|- | |- | ||
| | | [[#Groupsetting|groupsetting]] | ||
| groupsetting | |||
| Default groupsettings. | | Default groupsettings. | ||
| O C A | | O C A | ||
|- | |- | ||
| resourcereferences | | [[#Resourcereferences|resourcereferences]] | ||
| Collection of style information hints to be used by the map renderer. | | Collection of style information hints to be used by the map renderer. | ||
| A | | A | ||
Line 122: | Line 106: | ||
===== Multidatasetlimits ===== | ===== Multidatasetlimits ===== | ||
Scale/level limits that apply gobally to this multidataset. See [[#limits| | Scale/level limits that apply gobally to this multidataset. See [[#limits|limits]] for further information. Also used for setting overzoom parameter. | ||
Overzoom is used for drawing maps on levels where no data exists. The number of levels specified by the overzoom parameter controls the number of levels the mapservice can search upwards in the maplevel tree for data to draw. The first level encountered to contain data will be used. | Overzoom is used for drawing maps on levels where no data exists. The number of levels specified by the overzoom parameter controls the number of levels the mapservice can search upwards in the maplevel tree for data to draw. The first level encountered to contain data will be used. | ||
Line 135: | Line 119: | ||
| overzoom | | overzoom | ||
| Number of levels. Default value is 0. | | Number of levels. Default value is 0. | ||
| | | | ||
|} | |} | ||
Example: | Example: | ||
<source lang="xml"><multidatasetlimits minvisible="0" maxvisible="256M" simplestyle="256M" | <source lang="xml"> | ||
<multidatasetlimits minvisible="0" maxvisible="256M" simplestyle="256M" label="10M" overzoom="4"/> | |||
</source> | |||
==== Groupsetting ==== | ==== Groupsetting ==== | ||
Line 151: | Line 137: | ||
!width="15%"| '''Properties''' | !width="15%"| '''Properties''' | ||
|- | |- | ||
| [[# | | [[#Limits|limits]] | ||
| Collection of scale limits that apply globally to this multidataset. | | Collection of scale limits that apply globally to this multidataset. | ||
| O A | | O A | ||
|- | |- | ||
| [[# | | [[#Clipborder|clipborder]] | ||
| Layer clip border setting. Used to prevent clipping of large point symbols at tile borders. | | Layer clip border setting. Used to prevent clipping of large point symbols at tile borders. | ||
| O A | | O A | ||
Line 167: | Line 153: | ||
| drawpri | | drawpri | ||
| Layer draw priority. Lower number equals higher priority. Default value is 100. | | Layer draw priority. Lower number equals higher priority. Default value is 100. | ||
| | | | ||
|} | |} | ||
===== Limits ===== | ===== Limits ===== | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 214: | Line 194: | ||
|} | |} | ||
=== | ==== Resourcereferences ==== | ||
Collection of style information hints to be used by the map renderer. | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 244: | Line 202: | ||
!width="15%"| '''Properties''' | !width="15%"| '''Properties''' | ||
|- | |- | ||
| | | styleroot | ||
| | | Root folder for styling. | ||
| | |||
|- | |||
| symbols | |||
| Folder/name of symbols-xml. Location is relative to styleroot. | |||
| | |||
|- | |||
| normal | |||
| Folder/name of scriptcollection-xml. Location is relative to styleroot. | |||
| | | | ||
|- | |- | ||
| | | simple | ||
| | | Folder name of simple scriptcollection-xml. Location is relative to styleroot. | ||
| | | | ||
|- | |- | ||
| | | featuregrouping | ||
| | | Folder/name of featuregrouping-xml. Location is relative to styleroot. | ||
| | | | ||
|} | |} | ||
=== Groupsettingtemplates === | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 272: | Line 230: | ||
! '''Properties''' | ! '''Properties''' | ||
|- | |- | ||
| [[# | | [[#Groupsettingtemplate|groupsettingtemplate]] | ||
| Feature group settings template entry. | | Feature group settings template entry. | ||
| R C A | | R C A | ||
Line 284: | Line 242: | ||
! '''Properties''' | ! '''Properties''' | ||
|- | |- | ||
| [[# | | [[#Groupsetting|groupsetting]] | ||
| Featuregroup settings. | | Featuregroup settings. | ||
| C A | | C A | ||
Line 315: | Line 273: | ||
|- | |- | ||
| filepattern | | filepattern | ||
| Filepattern filter. Used to select | | Filepattern filter. Used to select map data files (mainly .vtiles.sqlite). | ||
| R | | R | ||
|} | |} | ||
[[Category:Map configuration]] | |||
[[Category:Vector maps]] |
Latest revision as of 08:42, 24 September 2019
The multidataset XML (.m6mmultidataset.xml) is used to setup and describe similar type datasets. A dataset is typically produced from the same source data/format.
All entries in this file are treated as hints and may be overridden by the map renderer.
All limits can be given as zoomlevels since Maria GDK 2.0. Use postfix "L" to parse limits as zoomlevel instead ofmapscale(f.ex. minvisible="15L" maxvisible="6L"). Mapscales will be converted to corresponding zoomlevels.
Multidataset
Example:
<multidataset>
<globalsettings>
<multidatasetlimits minvisible="1K" maxvisible="1000000K"
simplestyle="10000K" label="10M"/>
<resourcereferences styleroot="m6msymbols"
symbols="n5000\symbols.xml"
normal="n5000\ScriptCollection.xml"
simple="n5000\ScriptCollection.xml"
featuregrouping="n5000\featuregrouping.xml"/>
<groupsetting drawpri="300">
<limits minvisible="1K" maxvisible="100000K"
simplestyle="10000K" label="10M"/>
</groupsetting>
</globalsettings>
<groupsettingtemplates>
<groupsettingtemplate grouppattern="Arealdekke" geotype="area">
<groupsetting drawpri="700">
<limits maxvisible="10M"/>
</groupsetting>
</groupsettingtemplate>
<groupsettingtemplate grouppattern="Arealdekke" geotype="line">
<groupsetting drawpri="400" >
<limits maxvisible="10M"/>
</groupsetting>
</groupsettingtemplate>
<groupsettingtemplate grouppattern="Roads\Motorvei" geotype="line">
<groupsetting drawpri="290">
<limits maxvisible="10M"/>
</groupsetting>
</groupsettingtemplate>
<groupsettingtemplate grouppattern="Buildings" geotype="line">
<groupsetting drawpri="150">
<limits maxvisible="10M"/>
</groupsetting>
</groupsettingtemplate>
<groupsettingtemplate grouppattern="Navn" geotype="point">
<groupsetting drawpri="50">
<limits maxvisible="10M" />
</groupsetting>
</groupsettingtemplate>
</groupsettingtemplates>
<add filepattern="N5000.m6mindex"/>
</multidataset>
<multidataset>
is the root node of the multidataset-xml.
Child element | Description | Properties |
---|---|---|
Global settings for multidataset. | C | |
Templates for group settings. | O R C | |
Filters used to add data files. | O R A |
Globalsettings
Child element | Description | Properties |
---|---|---|
multidatasetlimits | Collection of scale limits that apply globally to this multidataset. | O A |
groupsetting | Default groupsettings. | O C A |
resourcereferences | Collection of style information hints to be used by the map renderer. | A |
datasetclipborder | Dataset clip border setting. Used to prevent clipping of large point symbols at dataset borders. | O A |
Multidatasetlimits
Scale/level limits that apply gobally to this multidataset. See for further information. Also used for setting overzoom parameter.
Overzoom is used for drawing maps on levels where no data exists. The number of levels specified by the overzoom parameter controls the number of levels the mapservice can search upwards in the maplevel tree for data to draw. The first level encountered to contain data will be used.
Note: overzoom is implemented post version 2.0.1.
Attribute | Description | Properties |
---|---|---|
overzoom | Number of levels. Default value is 0. |
Example:
<multidatasetlimits minvisible="0" maxvisible="256M" simplestyle="256M" label="10M" overzoom="4"/>
Groupsetting
Child element | Description | Properties |
---|---|---|
limits | Collection of scale limits that apply globally to this multidataset. | O A |
clipborder | Layer clip border setting. Used to prevent clipping of large point symbols at tile borders. | O A |
Attribute | Description | Properties |
---|---|---|
drawpri | Layer draw priority. Lower number equals higher priority. Default value is 100. |
Limits
Attribute | Description | Properties |
---|---|---|
minvisible | Minimum scale for rendering layer. Use of scale factors (k/K/m/M) are allowed. | |
maxvisible | Maximum scale for rendering layer. Use of scale factors (k/K/m/M) are allowed. | |
simplestyle | Scale threshold (minimum scale) for showing simple style. | |
label | Scale threshold (maximum scale) for showing label. |
Clipborder
Attribute | Description | Properties |
---|---|---|
value | Clip border value in pixels. |
Resourcereferences
Collection of style information hints to be used by the map renderer.
Attribute | Description | Properties |
---|---|---|
styleroot | Root folder for styling. | |
symbols | Folder/name of symbols-xml. Location is relative to styleroot. | |
normal | Folder/name of scriptcollection-xml. Location is relative to styleroot. | |
simple | Folder name of simple scriptcollection-xml. Location is relative to styleroot. | |
featuregrouping | Folder/name of featuregrouping-xml. Location is relative to styleroot. |
Groupsettingtemplates
Child element | Description | Properties |
---|---|---|
groupsettingtemplate | Feature group settings template entry. | R C A |
Groupsettingtemplate
Child element | Description | Properties |
---|---|---|
groupsetting | Featuregroup settings. | C A |
Attribute | Description | Properties |
---|---|---|
grouppattern | Featuregroup namepattern filter. | |
geotype | Geotype in featuregroup. Valid values are point , line , area and unknown . Default value is unknown .
|
Groupsetting
See paragraph Groupsetting. Values in this groupsetting block overrides the values in the global groupsetting block.
Add
Attribute | Description | Properties |
---|---|---|
filepattern | Filepattern filter. Used to select map data files (mainly .vtiles.sqlite). | R |