Jérémy DE ROYER a écrit :
I'm trying to load geotiff files with the following codes but for both I
get an error :
- java.lang.UnsupportedOperationException: Only Geographic & Projected Systems 
are supported.  (not code 0)

I'm not familiar with the GeoTIFF format. I just had a very quick look at the source code and saw that the expected projection codes are 1 (ModelTypeProjected) or 2 (ModelTypeGeographic), while yours GeoTIFF file seems to contains 0 (undefined).

This code check doesn't seems essential to me, since there is an EPSG code somewhere else in the GeoTIFF file and this EPSG code should be suffisient, regardless of the above-cited ModelTypeGeographic | ModelTypeProjected value. The geotools GeoTIFF code could be modified that way. I don't know if the original GeoTIFF module author still available for this fix. Unfortunatly I can hardly work on the GeoTIFF code myself for the next months (I'm not the author of this module)...

        Martin.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to