[GRASS-user] min and max coord values
temiz
temiz at deprem.gov.tr
Thu Jul 19 14:47:20 EDT 2007
Hamish wrote:
> temiz wrote:
>
>> I want to get min and max coord values from of catagorized raster
>> map.
>>
>> something like: r.stats -agn hey6 > gives minx maxx miny maxy
>> is it possible ?
>>
>
>
> do you mean you want the coordinates of the bounding boxes surrounding
> each category?
>
> loop over each CAT (`r.describe`), create a MASK or new map based on
> that cat, then 'g.region -p zoom='.
>
>
> ?
> Hamish
>
>
thank you and other friends
I wrote a script to calculate the coordinates of bounding box of each
category using "g.region -p zoom="
I am wondering if "r.stats -agn" is second alternative ?
My raster map is something like some islands.
if I get coord value of each category , I can calculate most north-
south and, most west- east, and then determine the coords of minimum
bounding box?
As far as I see, g.region gives only perpendicular bounding box.
regards
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the grass-user
mailing list