[GRASS-user] Extracting from 2D to 3D

Hello all,

I have purchased to book, Open Source Grass, the third edition and wanted to experiment with 3D vectors using nviz. I have followed the commands in the book, page 209/210 but can not display the 3D vectors in nviz. Is there an update to the commands or can anyone describe to me what I am doing wrong.

I have set the region according to the book.
GRASS 6.3.0 (nc_spm_07):~ > g.region rural_1m -p
projection: 99 (Lambert Conformal Conic)
zone: 0
datum: nad83
ellipsoid: a=6378137 es=0.006694380022900787
north: 220750
south: 220000
west: 638300
east: 639000
nsres: 1
ewres: 1
rows: 750
cols: 700
cells: 525000

GRASS 6.3.0 (nc_spm_07):~ > nviz elev_lid792_1m col=ortho_2001_t792_1m vect=bldg_resid_3d,bldg_cmcl_3d
Loading Data
building color table
Vector file bldg_resid_3d loaded.
Error: No lines from bldg_resid_3d fall within current region
Total vect memory = 0 Kbytes
Vector file bldg_cmcl_3d loaded.
Error: No lines from bldg_cmcl_3d fall within current region
Total vect memory = 0 Kbytes
recalculating normals...

Any advice as to setting the region for this to work?

Thanks in advance,

charles

Hi,

what does g.region -3 say? maybe you have to adjust your 3D settings
as well (g.region --help tells you more)

jachym

2008/8/23 charles <eriseres@airpost.net>:

Hello all,

I have purchased to book, Open Source Grass, the third edition and wanted to
experiment with 3D vectors using nviz. I have followed the commands in the
book, page 209/210 but can not display the 3D vectors in nviz. Is there an
update to the commands or can anyone describe to me what I am doing wrong.

I have set the region according to the book.
GRASS 6.3.0 (nc_spm_07):~ > g.region rural_1m -p
projection: 99 (Lambert Conformal Conic)
zone: 0
datum: nad83
ellipsoid: a=6378137 es=0.006694380022900787
north: 220750
south: 220000
west: 638300
east: 639000
nsres: 1
ewres: 1
rows: 750
cols: 700
cells: 525000

GRASS 6.3.0 (nc_spm_07):~ > nviz elev_lid792_1m col=ortho_2001_t792_1m
vect=bldg_resid_3d,bldg_cmcl_3d
Loading Data
Loading Data
building color table
Vector file bldg_resid_3d loaded.
Error: No lines from bldg_resid_3d fall within current region
Total vect memory = 0 Kbytes
Vector file bldg_cmcl_3d loaded.
Error: No lines from bldg_cmcl_3d fall within current region
Total vect memory = 0 Kbytes
recalculating normals...

Any advice as to setting the region for this to work?

Thanks in advance,

charles
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

On Wed, Aug 27, 2008 at 7:16 AM, Jachym Cepicky
<jachym.cepicky@gmail.com> wrote:

Hi,

what does g.region -3 say? maybe you have to adjust your 3D settings
as well (g.region --help tells you more)

[ I don't think so since we talk vector data here ]

Charles,
we are investigating on the grass-dev list. There was
some issue in v.extrude and the underlying sampling algorithms.

I'll report here once fixed. However, when writing that book
chapter, it worked (for me). That was 6.3.0preX (don't remember).
In 6.4.svn it failed for me but yesterday some fixes where
submitted. I'll report asap.

Markus

jachym

2008/8/23 charles <eriseres@airpost.net>:

Hello all,

I have purchased to book, Open Source Grass, the third edition and wanted to
experiment with 3D vectors using nviz. I have followed the commands in the
book, page 209/210 but can not display the 3D vectors in nviz. Is there an
update to the commands or can anyone describe to me what I am doing wrong.

I have set the region according to the book.
GRASS 6.3.0 (nc_spm_07):~ > g.region rural_1m -p
projection: 99 (Lambert Conformal Conic)
zone: 0
datum: nad83
ellipsoid: a=6378137 es=0.006694380022900787
north: 220750
south: 220000
west: 638300
east: 639000
nsres: 1
ewres: 1
rows: 750
cols: 700
cells: 525000

GRASS 6.3.0 (nc_spm_07):~ > nviz elev_lid792_1m col=ortho_2001_t792_1m
vect=bldg_resid_3d,bldg_cmcl_3d
Loading Data
Loading Data
building color table
Vector file bldg_resid_3d loaded.
Error: No lines from bldg_resid_3d fall within current region
Total vect memory = 0 Kbytes
Vector file bldg_cmcl_3d loaded.
Error: No lines from bldg_cmcl_3d fall within current region
Total vect memory = 0 Kbytes
recalculating normals...

Any advice as to setting the region for this to work?

Thanks in advance,

charles
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Charles,

On Sat, Aug 23, 2008 at 10:38 PM, charles <eriseres@airpost.net> wrote:

Hello all,

I have purchased to book, Open Source Grass, the third edition and wanted to
experiment with 3D vectors using nviz. I have followed the commands in the
book, page 209/210 but can not display the 3D vectors in nviz. Is there an
update to the commands or can anyone describe to me what I am doing wrong.

indeed, there is an extra step needed: the lines in the DXF files need to
be converted to boundaries and then centroids have to be added.
v.extrude will change otherwise the lines simply to 3D lines.

I have posted a correction at:
http://www.grassbook.org/errata_menu3rd.php

Then nviz shows the 3D house blocks.

Thanks for bringing this up,
Markus

Thanks Markus for the help and all who responded. I will try it.

ch
On Aug 30, 2008, at 12:26 AM, Markus Neteler wrote:

Charles,

On Sat, Aug 23, 2008 at 10:38 PM, charles <eriseres@airpost.net> wrote:

Hello all,

I have purchased to book, Open Source Grass, the third edition and wanted to
experiment with 3D vectors using nviz. I have followed the commands in the
book, page 209/210 but can not display the 3D vectors in nviz. Is there an
update to the commands or can anyone describe to me what I am doing wrong.

indeed, there is an extra step needed: the lines in the DXF files need to
be converted to boundaries and then centroids have to be added.
v.extrude will change otherwise the lines simply to 3D lines.

I have posted a correction at:
http://www.grassbook.org/errata_menu3rd.php

Then nviz shows the 3D house blocks.

Thanks for bringing this up,
Markus