Ciao Tam,
if this is going to be an open source plugin (I mean donate to
GeoServer or GeoTools). I might try to spare some time to look into
what your problem is (no promise),
otherwise I won't.

That said, I would suggest to look into how you georeference the
gridcoverage you produce since if there is a misplacement the
reason might be that you reporting a wrong gridtoworld transformation.

Regards,
Simone Giannecchini
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39  333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------


On Fri, Jul 18, 2014 at 5:59 PM, tt5430 <[email protected]> wrote:
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to