GeoNode/geonode — pull request #473 by tomkralidis (2012-10-26 19:42:05+00:00)
Title: Add support for map export via OGC WMC

This PR provides the ability to export maps as [Web Map Context Documents (WMC)] (http://www.opengeospatial.org/standards/wmc), version 1.1.1. Exporting as WMC allows for other applciations to open the same map view from another application.

Notes:

- since WMC supports only WMS, only layers that are WMS powered will be included
- funny, but we don't set the map's extent anywhere in `geonode.maps.models.Map`, and I believe this is derived in JavaScript on the client. I've added `geonode.maps.models.Map.get_extent()` for now. I think it would be valuable to have `geonode.maps.models.Map` inherit from `geonode.layers.models.ResourceBase`, to leverage the extent we store there. As well, maps then become geospatially searchable via CSW or the front end app