ciao adnila, can you show us more code? Aside, a self contained test case along with some sample data would be also helpful :)
Simone. ------------------------------------------------------- Ing. Simone Giannecchini GeoSolutions S.A.S. Founder - Software Engineer Via Carignoni 51 55041 Camaiore (LU) Italy phone: +39 0584983027 fax: +39 0584983027 mob: +39 333 8128928 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.linkedin.com/in/simonegiannecchini http://twitter.com/simogeo ------------------------------------------------------- On Tue, May 25, 2010 at 5:07 PM, Adnila <[email protected]> wrote: > > hey guys, > sorry for being so annoying today. > but I have some further problems and I have no glue what to do. It looks > like a problem with reprojecting (maybe downsampling): > > For example: > I want to resample and reproject an .asc file. > 1. import a gridcoverage > http://osgeo-org.1803224.n2.nabble.com/file/n5098885/test1.jpg > 2. resample gridcoverage to 10.000m > http://osgeo-org.1803224.n2.nabble.com/file/n5098885/test2.jpg > 3. reproject gridcoverage to ETRS89-LAEA ("3035") (with some reference data > from europe in INSPIRE-ETRS89-LAEA format) > http://osgeo-org.1803224.n2.nabble.com/file/n5098885/test3.jpg > > my code for resampling looks like this: > public GridCoverage2D gridReproject(GridCoverage2D gc2D) { > try { > crs_ETRS89_LAEA = CRS.decode("EPSG:3035", true); > // convert GridCoverage2D to ETRS89_LAEA > gc2Dreproject = (GridCoverage2D) > Operations.DEFAULT.resample(gc2D, > crs_ETRS89_LAEA); > } catch (NoSuchAuthorityCodeException e) { > // auto-generated catch block > e.printStackTrace(); > } catch (FactoryException e) { > // auto-generated catch block > e.printStackTrace(); > } > > has anybody a idea what happend here? I looks very strange. > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Reprojection-tp5098885p5098885.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------------ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
