Hi,
Is there a way I could report the geometry information for a Grass
vector without calling 'v.build option=build' (the default), ie.
without re-builidng it each time when I need to only check it?
Is the information that the 'v.build option=build' prints, like:
Number of nodes : 319
Number of primitives: 435
Number of points : 0
Number of lines : 0
Number of boundaries: 318
Number of centroids : 117
Number of areas : 117
Number of isles : 1
maybe stored somewhere?
Maciek
Hallo,
On Sun, Sep 24, 2006 at 11:56:33AM +0200, Maciej Sieczka wrote:
Hi,
Is there a way I could report the geometry information for a Grass
vector without calling 'v.build option=build' (the default), ie.
without re-builidng it each time when I need to only check it?
Is the information that the 'v.build option=build' prints, like:
Number of nodes : 319
Number of primitives: 435
Number of points : 0
Number of lines : 0
Number of boundaries: 318
Number of centroids : 117
Number of areas : 117
Number of isles : 1
maybe stored somewhere?
Maciek
sorry, if i'm answaring to something else, but v.info prints this basic
informations too
+----------------------------------------------------------------------------+
| Layer: cr Organization: CZECH free map |
| Mapset: PERMANENT Source Date: 2003 |
| Location: cr-wgs84 Name of creator: radim
| Database: /home/jachym/grassdata |
| Title: statni hranice CR
| Map Scale: 1:2400
| Map format: native
|----------------------------------------------------------------------------|
| Type of Map: Vector (level: 2)
|
| Number of points: 0 Number of areas: 1
| Number of lines: 0 Number of islands: 1
| Number of boundaries: 60 Number of faces: 0
| Number of centroids: 1 Number of kernels: 0
|
| Map is 3D: 0
| Number of dblinks: 1
|
| Projection: Lat/Lon (zone 0)
| N: 51.056 S: 48.554
| E: 18.864 W: 12.096
| B: 0.000 T: 0.000
|
| Digitize threshold: 0.00000
| Comments:
| atributy z TopoGuide CZ
+----------------------------------------------------------------------------+
hmm, except for nodes, primitives
hope, it helps
jachym
--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507
Jachym Cepicky wrote:
Hallo,
On Sun, Sep 24, 2006 at 11:56:33AM +0200, Maciej Sieczka wrote:
Hi,
Is there a way I could report the geometry information for a Grass
vector without calling 'v.build option=build' (the default), ie.
without re-builidng it each time when I need to only check it?
Is the information that the 'v.build option=build' prints, like:
Number of nodes : 319
Number of primitives: 435
Number of points : 0
Number of lines : 0
Number of boundaries: 318
Number of centroids : 117
Number of areas : 117
Number of isles : 1
maybe stored somewhere?
Maciek
sorry, if i'm answaring to something else, but v.info prints this basic
informations too
Thanks, indeed. However, the problem is that it is missing the number
of nodes.
Another problem with v.info's output is also that it is hardly
parsable. A -g flag would be a very nice addition to v.info.
Just for the record, also the number of primitives would be usefull. I
know it's a summary of all the primitives present
(centroids+boundaries+lines+points), but it wouldn't do harm to mention
it too, and it could be usefull.
Cheers,
Maciek
hallo,
On Sun, Sep 24, 2006 at 12:38:55PM +0200, Maciej Sieczka wrote:
Thanks, indeed. However, the problem is that it is missing the number
of nodes.
Another problem with v.info's output is also that it is hardly
parsable. A -g flag would be a very nice addition to v.info.
Just for the record, also the number of primitives would be usefull. I
know it's a summary of all the primitives present
(centroids+boundaries+lines+points), but it wouldn't do harm to mention
it too, and it could be usefull.
Cheers,
Maciek
v.info is allready there:
v.info -g cr
north=51.05623489
south=48.55409865
east=18.86354686
west=12.09596872
top=0.000000
bottom=0.000000
which is corresponding to g.region -g and r.info -g
I added option -t (for "topology") - could you test this patch (for
main.c), please?
One problem: maybe, I'm missing something, but I can not find out how to
get number of nodes for vector file 
thanks
Jachym
--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507
(attachments)
v.info.patch (2.61 KB)
Jachym Cepicky wrote:
hallo,
On Sun, Sep 24, 2006 at 12:38:55PM +0200, Maciej Sieczka wrote:
Thanks, indeed. However, the problem is that it is missing the number
of nodes.
Another problem with v.info's output is also that it is hardly
parsable. A -g flag would be a very nice addition to v.info.
Just for the record, also the number of primitives would be usefull. I
know it's a summary of all the primitives present
(centroids+boundaries+lines+points), but it wouldn't do harm to mention
it too, and it could be usefull.
Cheers,
Maciek
v.info is allready there:
v.info -g cr
north=51.05623489
south=48.55409865
east=18.86354686
west=12.09596872
top=0.000000
bottom=0.000000
which is corresponding to g.region -g and r.info -g
I added option -t (for "topology") - could you test this patch (for
main.c), please?
Thanks very much! Not bad. Buts:
1. if -g and -t flags used together, -t is ignored; could they work
together?
2. what you meant as propably "nlines", got "nalines"
3. the number of primitives should come before "is map3d"
4. I think the 'n' prefix is not necessary at all
One problem: maybe, I'm missing something, but I can not find out how to
get number of nodes for vector file 
Hmm, maybe v.build provides a hint?
Maciek
Jachym,
The general order of features listing should be like this:
nodes (if possible)
points
lines
boundaries
centroids
areas
islands
faces
kernels
primitives
map3d
so that we start from simplest features, related 2d features come
together and 3d features don't mix with 2d. IMO this is more logical.
Best,
Maciek
at your service
On Sun, Sep 24, 2006 at 03:04:39PM +0200, Maciej Sieczka wrote:
Jachym,
The general order of features listing should be like this:
nodes (if possible)
points
lines
boundaries
centroids
areas
islands
faces
kernels
primitives
map3d
so that we start from simplest features, related 2d features come
together and 3d features don't mix with 2d. IMO this is more logical.
Best,
Maciek
jáchym
--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507
(attachments)
v.info2.patch (4.15 KB)