[GRASSLIST:5750] Re: vector export to GMT->simplify vectors

Dylan Beaudette dylan at iici.no-ip.org
Sat Feb 12 19:07:01 EST 2005


Bit of an update,

On the GMT list someone was kind enough to send a simple C program for 
directly converting shapefiles into GMT-friendly X,Y ascii.

here is a link to the source code:
http://169.237.35.250/~dylan/grass_user_group/shape.tar.gz

Cheers,

Dylan


On Friday 04 February 2005 06:59 pm, Dylan Beaudette wrote:
> Sorry about replying to my original post... but I have a bit more
> information to refine my problem:
>
> the 18 "boundaries" are actually 18 line segments that make up the 2 real
> boundaries.
>
> Thus, the question would then be:
>
> is it possible to convert a set of line segments into a single line...?
>
> thanks!
>
> On Friday 04 February 2005 06:48 pm, Dylan Beaudette wrote:
> > Greetings!
> >
> > I have a simple vector that is composed of 2 areas:
> > http://169.237.35.250/~dylan/gmt/ptuff.png
> >
> > v.info reports:
> > |   Number of points:       0               Number of areas:      2
> > |   Number of lines:        0               Number of islands:    2
> > |   Number of boundaries:   18              Number of faces:      0
> > |   Number of centroids:    2               Number of kernels:    0
> >
> > I am interested in exporting the boundaries that represent the 2 areas in
> > this vector with v.out.asci, for useage in GMT...
> >
> > However, when i run v.out.ascii format=standard ....
> >
> > I am left with an ascii file that describes all 18 boundaries that exist
> > in the vector ptuff.... resulting in a file that is of little use in
> > GMT... see the result (blue polygon is the problem one...):
> > http://169.237.35.250/~dylan/gmt/geology.png
> >
> >
> > Where do all 18 boundaries come from? How can I only export the ones
> > associated with the 2 areas?
> >
> > Any ideas?
> >
> > PS I am using GRASS6
> >
> > Thanks,

-- 
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341




More information about the grass-user mailing list