[GRASS-dev] Vect_get_proj_name() question

Markus Neteler neteler at itc.it
Wed May 30 10:40:07 EDT 2007



Hamish-5 wrote:
> 
> Markus Neteler wrote:
>> > Author: hamish
>> > 
>> > Update of /grassrepository/grass6/vector/v.info
>> > In directory doto:/tmp/cvs-serv1706
>> > 
>> > Modified Files:
>> > 	main.c 
>> > Log Message:
>> > try for some formatting improvements. Could probably still use some
>> > more. I notice that Vect_get_proj_name() and _zone() are typically
>> > unset?!
> 
> spearfish e.g.,
> 
> bugsites:
>  Projection: x,y (zone 0)
> 
> roads:
>  Projection: x,y (zone 13)  
> 
> [should be UTM zone 13]
> 
> more importantly new maps are not created correctly,
> v.random out=test_rand_2k n=2000
> v.info test_rand_2k
>  Projection: x,y (zone 0)
> 
> Hamish
> 

My guess is that Radim was thinking of projection on the fly when handling
the proj info per vector map instead of globally as per raster.
Of course it is important to set things correctly.

in lib/vector/Vlib/header.c there is

Vect__read_head (struct Map_info *Map)
{
 ...
    Vect_set_zone ( Map, 0 );  
...
}

but Map->proj is never set AFAIK. However,
Vect_get_proj() is there.

Compare
../../../include/vect/dig_structs.h
-> struct dig_head

Markus
-- 
View this message in context: http://www.nabble.com/Vect_get_proj_name%28%29-question-tf3838669.html#a10875136
Sent from the Grass - Dev mailing list archive at Nabble.com.




More information about the grass-dev mailing list