Somehow the mailing list fell out of the cc... sorry.

Yes, I know about gdal, but I wanted a fully automated solution within 
geotools.
Hence, asking if it is possible to read in only a part of a geoTiff (or 
any other source of coverage).
I assume a somehow similar mechanism must work behind tiled data sources 
(I did not used tiled tiffs with a shapefile index in my geotools code 
yet, hints welcome)
I have my own workaround for the moment.

Cheers
M.

On 5/4/2010 5:42 PM, [email protected] wrote:
> I think this one http://www.gdal.org/gdal_translate.html will be your 
> friend.
>
> Quoting Martin Tomko <[email protected]>:
>
>> Yeah, I have a single geoTiff, but huge - these are SRTM tiles for
>> europe. I need to run a batch on many small areas (avg about 20*20
>> pixels, in random locations), so I don't really want to pre-process.
>> Unless I could read in a virtual - tiled model... How do you go about 
>> it?
>>
>> My thinking was that I would  check for clusters and clip out only the
>> areas that will be used.
>> In general, I think it would be a nice function - just checking its
>> possibility.
>>
>> Cheers,
>> Martin
>>
>> On 5/4/2010 4:43 PM, [email protected] wrote:
>>> A possibility would be to use gdal_retile.py to create smaller tiles.
>>>
>>> Quoting Martin Tomko <[email protected]>:
>>>
>>>> Hi All,
>>>> just a question - is it possible to read only a part of a geoTiff 
>>>> into a
>>>> GridCoverage2D? I have tiles that are rather large, and storgin 
>>>> them in
>>>> memory seems like an overkill if I know I will only need small-ish 
>>>> bits.
>>>> I know the bounding bouxo f the are I am interested in, and I could
>>>> easily create a (referenced) envelope. Is there any way to read in 
>>>> bits
>>>> of the coverage within the area of interest? A comment in the Javadoc
>>>> seems to indicate that the AbstractGridCoverage from which the GeoTIFF
>>>> reader inherits does not allow this.
>>>>
>>>> Cheers
>>>> Martin
>>>>
>>>> ------------------------------------------------------------------------------
>>>>   
>>>> _______________________________________________
>>>> Geotools-gt2-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>>>
>>>
>>>
>>>
>>> ----------------------------------------------------------------
>>> This message was sent using IMP, the Internet Messaging Program.
>>>
>>>
>>>
>>>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
>


-- 
Martin Tomko
Postdoctoral Research Assistant

Geographic Information Systems Division
Department of Geography
University of Zurich - Irchel
Winterthurerstr. 190
CH-8057 Zurich, Switzerland

email:  [email protected]
site:   http://www.geo.uzh.ch/~mtomko
mob:    +41-788 629 558
tel:    +41-44-6355256
fax:    +41-44-6356848


------------------------------------------------------------------------------
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to