Hello,

It's not obvious what the problem is from a quick look at your code
but if JMapPane is displaying the map correctly I guess that it's to
do with the CRS for your data and perhaps the fact that you are using
the version of the renderer's paint method that does not have a
transform argument.

If I were you I'd cheat :-)  ie. take advantage of the fact that
JMapPane is handling the data correctly and just get the image from it
with its getBaseImage method.

If that's not appropriate for your use case, try following JMapPane's
handling of the data in your debugger and see if you can spot the
difference between what it is doing and what you are doing.  Note that
JMapPane delegates the actual rendering task to a helper class,
RenderingExecutor, which is where the renderer's paint method is
called.

If all else fails, and it's possible to send a **small** data and code
sample that displays the problem (off list), I'll see if I can spot
the problem.

Michael

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to