ASCII Grids don't store their projection so you will need to set it
manually if you know what it is.
Ian
On 22 March 2016 at 13:50, Mark Prins <[email protected]> wrote:
> 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 <[email protected]>:
>
>> 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
>> [email protected]
>> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
--
Ian Turton
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users