I've posted it a week ago, see my code attached.





"Petra Staub" <[EMAIL PROTECTED]>
Envoyé par : [EMAIL PROTECTED]

13/01/2006 10:12

A
[email protected]
cc
Objet
[Geotools-gt2-users] Cannot render/display GridCoverage






Hi

Can someone help me newbie display my GridCoverage2D, obtained
from a WMS (geoserver)? I am using gt 2.1.1.

- I have a GridCoverage2D containing a world map. If I run for debugging
purposes
 gridCoverage.show(), I actually see the whole map...cool so far...

- From my PostGIS DB I obtain two feature sources

- Create a MapContext and add my GridCoverage and the two feature sources

- Create a MapPane and set the MapContext

- For checking I iterate over mapPane.getRenderer().getLayers() and print
out
 the following:

Layer: SLDRenderedGeometries[z=0] / true / GEOGCS["WGS84", DATUM["WGS84",
SPHEROID["WGS84", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0],
UNIT["degree of angle",0.017453292519943295], AXIS["Geodetic
longitude",EAST], AXIS["Geodetic latitude",NORTH]]

Layer: SLDRenderedGeometries[z=1] / true / GEOGCS["WGS84", DATUM["WGS84",
SPHEROID["WGS84", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0],
UNIT["degree of angle",0.017453292519943295], AXIS["Geodetic
longitude",EAST], AXIS["Geodetic latitude",NORTH]]

Layer: SLDRenderedGeometries[z=2] / true / GEOGCS["WGS84", DATUM["WGS84",
SPHEROID["WGS84", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0],
UNIT["degree of angle",0.017453292519943295], AXIS["Geodetic
longitude",EAST], AXIS["Geodetic latitude",NORTH]]

- Now if I display the MapPane (mapPane.createScrollPane()) I only see my
features,
 but no world data from my GridCoverage.


Can someone point me to the mistake I am making? I think the created
GridCoverage2D
should be fine, as you can see its output with gridCoverage.show(). However,
it
seems, I am doing something wrong with rendering.

Any code examples or references very, very welcome! ;-)

Thanks for any input!

_________________________________________________________________
Umfangreich, essenziell und aktuell! Auf MSN Search werden Sie schnell
fündig! http://search.msn.ch/



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Attachment: WorldImageViaWms.java
Description: Binary data

Reply via email to