do you have a referencing jar as a dependency in your pom? see:
http://docs.geotools.org/latest/userguide/library/referencing/index.html

2016-03-22 14:15 GMT+01:00 <yared...@yahoo.com>:

> Hi all,
>
> I'm trying to read esri ascii file (using ArcGridReader), and write to
> geotiff (using GeoTiffWriter). However, the reader could not find the crs
> and hence used the default crs, and at the end, when i write the geotiff, I
> get an error:
>
> Caused by: org.geotools.coverage.grid.io.imageio.geotiff.GeoTiffException:
> GEOTIFF Module Error Report
> The supplied grid coverage uses an unsupported crs! You are allowed to use
> only projected and geographic coordinate reference systems
> ModelPixelScaleTag: NOT AVAILABLE
> ModelTiePointTag: NOT AVAILABLE
> ModelTransformationTag: NOT AVAILABLE
>
> The question is, how can I set the crs of the coverage that I get from the
> reader?
>
> PS: The ascii file supposed to have UTM20 projection.
>
> I really appreciate any help!
> Yared
> -----------------------------------------------------------------
> PhD Research Fellow in Urban Water Systems
> Environmental Engineering and Water Technology Department
> UNESCO-IHE Institute for Water Education
> Westvest 7 - P.O.Box 3015
> 2601 DA Delft, The Netherlands
>
>
>
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>


-- 
Disclaimer;
This message is just a reflection of what I thought at the time of sending.
The message may contain information that is not intended for you or that
you don't understand.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to