[GRASS-user] Importing an small piece of the image using r.in.gdal

Micha Silver micha at arava.co.il
Tue Jun 22 08:36:38 EDT 2010


On 22/06/2010 14:54, Daniel Victoria wrote:
> Katrin,
>
> I don't know if gdalwarp will clip your image, check the man page at
> http://www.gdal.org/gdalwarp.html
>
>    
You might consider gdal_translate first to clip the area you want, then 
gdalwarp for the reprojection. Use the "-projwin" option to select the 
X-Y coordinates of the upper left and lower right corners, and you'll 
get a section of the original.

> I'd recomend you clip the image before reprojecting so you will be
> running gdalwarp in a smaller file
>
> Cheers
> Daniel
>
> On Tue, Jun 22, 2010 at 5:26 AM, katrin eggert
> <katrineggert1980 at gmail.com>  wrote:
>    
>> Greetings
>> THanks Daniel. Since I'm already using gdalwarp, can it be also used to only
>> reproject a small piece of the image?
>> Thanks
>> Best regards,
>> Katrin
>> 2010/6/22 Daniel Victoria<daniel.victoria at gmail.com>
>>      
>>> Check out the gdal_translate utility
>>> http://www.gdal.org/gdal_translate.html
>>>
>>> Actualli, it's not a grass tool but grass relies heavily on gdal tools
>>> for raster import so chances are you have that program installed. Just
>>> open a terminal and type gdal_translate. Use the options -projwin to
>>> clip your image to the desired coordinates
>>>
>>> Cheers
>>> Daniel
>>>
>>> On Mon, Jun 21, 2010 at 1:15 PM, katrin eggert
>>> <katrineggert1980 at gmail.com>  wrote:
>>>        
>>>> Greetings
>>>> I'm working with LandCover global datasets and I need to import only an
>>>> area
>>>> of the dataset since my Region definition will only displays a small
>>>> area
>>>> (e.g. I'm working with European GLobcover and I only want Belgium and my
>>>> Location/Mapset destination region  only displays Belgium). How can I
>>>> only
>>>> import a small region in order to avoid no-needed processing and data
>>>> (because If I import and process European dataset it will take much more
>>>> time than just belgium).
>>>> Thanks
>>>> Best regards,
>>>> Katrin
>>>> _______________________________________________
>>>> grass-user mailing list
>>>> grass-user at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>>>
>>>>
>>>>          
>>
>>      
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
> This mail was received via Mail-SeCure System.
>
>
>    


-- 
Micha Silver
http://www.surfaces.co.il/
Arava Development Co.  +972-52-3665918



More information about the grass-user mailing list