gvSIG-Desktop 1.11. User manual
Web Map Context (WMC) is another OGC standard (http://www.opengeospatial.org) which can be added to the list of standards of this type supported by gvSIG.
![web-map-context.img/menuExportarAWMC.png](../../../../../../docusr/acceso-editores/funcionalidades/vistas/exportar-a-imagen-y-wmc/web-map-context/web-map-context.img/menuExportarAWMC.png)
It can reproduce a view made up of Web Map Services (WMS) layers on any GIS platform which supports WMC.
![web-map-context-en.img/propiedadesWMC_en.png](../../../../../../docusr/acceso-editores/funcionalidades/vistas/exportar-a-imagen-y-wmc/web-map-context/web-map-context-en.img/propiedadesWMC_en.png)
If your project has a view which contains WMS layers, you can export these layers. The result is an XML file with a specific format and .cml extension which can be imported by another platform on which the view it describes can be reproduced.
Exporting a view to WMC
Exports to WMC are currently limited to WMS type layers, although it is hoped that its functions will extend to all layers that comply with OGC standards in the future.
To obtain a WMC file, open a view in gvSIG and add the WMS layers you require.
Then go to the “View” menu and select “Export” and then “Web Map Context”.
The following dialogue will be shown.
![web-map-context-en.img/propiedadesWMC_en.png](../../../../../../docusr/acceso-editores/funcionalidades/vistas/exportar-a-imagen-y-wmc/web-map-context/web-map-context-en.img/propiedadesWMC_en.png)
N.B.: If you cannot find the "Web Map Context" option in the "Export" option, your project does not contain any WMS layers.
Basic mode only shows the compulsory properties which cannot be taken for granted by the application.
View: This defines which view is going to be exported to the WMC. The view which is currently active is selected by default.
Title: This is the title of the view which will be shown when your .cml file is loaded at a later date. The current title of the view is used by default but this can be changed.
ID: This field is also compulsory and represents a file ID which must be unique.
File: You can search for the place you wish to save the .cml file in from the "Browse" button.
Version: Use this tool to specify the WMC version you wish to use.
The version 1.1.0 is selected by default as it is the most highly developed and the most recommended. However, several applications and geoportals are often limited to a specific version.
gvSIG currently supports Web Map Context in its versions 0.1.4, 1.0.0 and 1.1.0.
Extent: This defines the extension of the map to be exported.
Defined by the view’s extent. This option only exports what we can currently see in the view.
Use full extent. This extension is better to use the full WMS layers depending on how their respective servers define them.
If you click on the “Advanced” button, the advanced configuration dialogue will drop down. This allows you to define more properties to obtain a complete WMC.
![web-map-context-en.img/propiedadesAvanzadasWMC_en.png](../../../../../../docusr/acceso-editores/funcionalidades/vistas/exportar-a-imagen-y-wmc/web-map-context/web-map-context-en.img/propiedadesAvanzadasWMC_en.png)
Abstract: This contains a summary of the view defined by WMC.
Keywords: This list of words allows you to classify and “metadata” the WMC.
URL description: If you have a web site which refers to this WMC, write its link here.
URL logo: If you have an image associated with this WMC, write its link here.
Map size (pixels): This defines the pixel size that the WMC-defined view will have. The current gvSIG view size is used by default but you can customise the size if you wish.
Contact info: Information that allows third parties to contact the WMC author.