Hi Simone,

Thanks for you response.  The problem is most like caused by the jdk version
that I used to build the plugin jar.  I built the jar using jdk 1.7 but the
JDK on the CentOS machine is 1.6.  Anyway, I will take care of that later. 
Right now I just try to make it work.  When I previewed my data on the Layer
Preview, I saw the image returned from my code does not align correctly with
the background image which is the world image.  I did some debugging and
found out that the PlanarImage returned from my code is actually correct but
somehow when input it to make the GridCoverage2D, it was distorted.  I don't
really understand the internal of Geoserver and therefore I need help from
you.  I saw you are the author of most Geoserver plug-ins and hope that you
can help me.  I attached the source code of my plugin for you to look at and
hopefully you can tell me what was wrong.  Look at the following line in the
loadRequestedTiles of the VistaMapCacheReader class where I where I generate
the BufferedImage.  Let me know if you need more information.
                BufferedImage bi = 
VistaMapCacheUtil.serviceMapRequest(mapLayer, bbox,
dim.width, dim.height, true, Color.blue);
                        ImageIO.write(bi, "png", new 
File("/tmp/vistamapcache.png"));

geoserver-vistamapcache-plugin.zip
<http://osgeo-org.1560.x6.nabble.com/file/n5151803/geoserver-vistamapcache-plugin.zip>
  

Regards,
Tam



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Geoserver-extension-plugin-problem-when-deployed-on-different-platfrom-tp5151351p5151803.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to