| org.vfny.geoserver.wms.servlets.WMService org.vfny.geoserver.wms.servlets.KMLReflector
KMLReflector | public class KMLReflector extends WMService (Code) | | This class takes in a simple WMS request, presumably from Google Earth, and
produces a completed WMS request that outputs KML/KMZ. To map a request to
this, simple pass a "layers=myLayer" parameter to "wms/kml_reflect":
http://localhost:8080/geoserver/wms/kml_reflect?layers=states
No extra information, such as styles or EPSG code need to be passed.
A request to kml_reflect will return a network link for each layer
passed in. Each network layer makes a full WMS request with these
default values:
- smart KMZ output (vector or raster output)
- KMScore value of 30
- Image size of 1024x1024
- Full attribution on vector features
- WMS version 1.0.0
- Transparent
author: Brent Owensorg.vfny.geoserver.wms.responses.map.kml.KMLReflector |
KMATTR | final boolean KMATTR(Code) | | |
KMSCORE | final int KMSCORE(Code) | | |
REFRESH | final int REFRESH(Code) | | |
TRANSPARENT | final boolean TRANSPARENT(Code) | | |
KMLReflector | public KMLReflector()(Code) | | |
doGet | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code) | | This will create a with , one network link
for each layer.
The only mandatory parameter is "layers" with the layer names.
Styles is optional, and so are all other parameters such as:
KMScore
KMAttr
Version
Width
Height
SRS
The result is written to the buffered output stream.
|
|
|