Hello,
I'm getting a bit confused about map-based visualisations with GeoTools.
What I'm trying to do is fetch an image from a WMS and display it in a
web-based map by embedding it into a JSP page. As I understood, the work
flow is as follows:
- get the map from the WMS
- create the MapContext and add the map layer
- render and paint the map
- display the image
However, this procedure raises several questions:
1.) How is the WMS request sent? Do I have to create a "Response" object
by e.g. (whereby "request" is of type "GetMapRequest")
InputStream is = null;
Response response = null;
try {
response = request.createResponse("image/png", is);
}
2.) To add a layer to the MapContext, I need an object of type
"MapLayer", which again needs a FeatureCollection or a FeatureSource in
its constructor. From the WMS, I should receive an image, can this be
"converted" to a FeatureSource somehow? Or is there another way to add a
WMS layer to the map context?
3.) How can I embed the map into the JSP page? The
StreamingRenderer.paint() method produces a BufferedImage object. How
can that be displayed? Do I have to use an HTML frame and/or a MapPane?
4.) Are standard controls (zoom, pan, etc.) already implemented and
available?
Thanks very much already in advance,
Bernd.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users