[GRASSLIST:5198] Extracting line data & poitn data form a file.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

I have a vect file in which I have both point data (elevation points,
mountain peaks & so on) and line data (equal elevation lines of
topografic map). I would like to separate the two types of data so as to
generate two diffrent files, one holding the point data and the other
the line data. This is because having them in the same file makes a lot
of confusion while having them in two diffrent file make things a bit
clearer.
Thanks in advance for any help.

CHeers

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Per informazioni si veda http://www.gnupg.org

iD8DBQE99P5GIRaQQEznKxURAoZlAKCXRVAXnLsZVIRA7Qdy9yAJ7+HUIQCdHYCv
hTN+xlKwt0qZ8m2f40zV/Dk=
=gyYl
-----END PGP SIGNATURE-----

On Monday 09 December 2002 09:34 pm, Antonio G. - Geotronix wrote:

Hash: SHA1

Hi.

I have a vect file in which I have both point data (elevation points,
mountain peaks & so on) and line data (equal elevation lines of
topografic map). I would like to separate the two types of data so as to
generate two diffrent files, one holding the point data and the other
the line data. This is because having them in the same file makes a lot
of confusion while having them in two diffrent file make things a bit
clearer.
Thanks in advance for any help.

CHeers

Something like:
v.extract type=site list=1-1000000000
v.extract type=line list=1-1000000000

Radim

Hi,

I've got a rastermap with categories 1-84, not labelled. Now if I use mapcalc to find everything smaller or equal than 45 it's oke, only categories 1 thru 45 are there. Now if I want everything bigger than 45 it produces a map with all categories. Is this a bug? BTW I'm using grass5pre3.

greetings Sjors

On Tue, Dec 10, 2002 at 05:52:23PM +0100, sjors wrote:

Hi,

I've got a rastermap with categories 1-84, not labelled. Now if I use
mapcalc to find everything smaller or equal than 45 it's oke, only
categories 1 thru 45 are there. Now if I want everything bigger than 45
it produces a map with all categories. Is this a bug? BTW I'm using
grass5pre3.

Please post what you fed r.mapcalc that produced these results.

--
"...the plural of anecdote is [not?] data." - attrib. to George Stigler

Eric G. Miller wrote:

On Tue, Dec 10, 2002 at 05:52:23PM +0100, sjors wrote:

Hi,

I've got a rastermap with categories 1-84, not labelled. Now if I use mapcalc to find everything smaller or equal than 45 it's oke, only categories 1 thru 45 are there. Now if I want everything bigger than 45 it produces a map with all categories. Is this a bug? BTW I'm using grass5pre3.
   
Please post what you fed r.mapcalc that produced these results.

Hi Eric,

This what I did in mapcalc:

growborder12 = if(growborder4,\
            if(growborder4>=45 && x()<=1899.381324 && x()>=1899.381324+((731.532598-1899.381324)/(sqrt((731.532598-1899.381324)^2+(2571.477126-2465.314883)^2)))*1200,1,0))

result is cat 0-77 because of the X coordinates. Need 45-77.
Well I've worked around by substracting >= 45 cat(0-77) with <=45 (cat 0-45).
Hope it'll give insight,

greetings Sjors