Hi,
I am using 2.5.x versions of all the Geotools modules and I’m trying to get a map with several data sources displaying. I’ve gone through the ShapeLab tutorial, and I’ve got the shapefiles from my system displaying and I can zoom in, out, and pan. Now I want to add another layer of data—this time from a WMS—underneath the shapefiles, so they are both displaying. I am using JMapPane to display this data, and initializing it with a MapContext. I’m just not sure how to add an image from a WMS into the mix here. I tried the WMS example, and I can request and receive an image. But how do I dynamically request the image given my zoom and extents? Is there a way to add a WMS server to the MapContext so that Geotools can issue requests to the WMS, or do I have to do something like: -determine the CRS and extents so I can request an image that will line up with my shapefiles -prepare and issue a request to the WMS -get the response and somehow put it into the MapContext so that it displays on the screen Am I even thinking about this the right way? I’d really appreciate any direction on this. Thank you very much in advance. Dave Berlin
------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
