[GRASSLIST:31] v.in.dxf

Hi
I`m using grass61 on windows and would like to import dxf and dwg files,
but it is only possible with dgn files using v.in.ogr.
Is there any other possibility to do an import for AutoCad files?

thanks
Stefan Gasser

Stefan Gasser stefang@dnet.it wrote:


Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.

Stefan, you might want to take a look at OrbisCAD (please search
Google, I don't remember the URL, but I know it is in Sourceforge).
According do the authors, it can read DXF and export shapefiles.

Hope this helps

Carlos

On 3/13/06, RAVI KUMAR <ravivundavalli@yahoo.com> wrote:

Stefan Gasser <stefang@dnet.it> wrote:

Hi
I`m using grass61 on windows and would like to import dxf and dwg files, but
it is only possible with dgn files using v.in.ogr.
Is there any other possibility to do an import for AutoCad files?

v.in.dwg requires OpenDWG toolkit. To get this toolkit you must become at
least "Associ! ate Member" of OpenDWG Alliance (http://www.opendwg.org), it
is free-of-charge (you have to fill one form).
Then unpack library and copy to this directory:
ad2.a ad2.h odio.h adinit.dat
and compile this module.

Ravi Kumar

thanks
Stefan Gasser

________________________________
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Sorry for the cross-post, but I'm trying to do almost exactly the opposite. That is, export a (raster) DEM to dxf. I was browsing the diverse grass modules, and the problem is I couldn't find a way to convert a raster DEM to a vector "surface" or "3d" file. So I can later export it using v.out.dxf. I tried r.to.vect with horrible(and maybe simply "not applicable") results.
I found some (non- free) programs that seem to do this (r2v, from ablesoft, by example) but it intrigues me if it can actually be done with grass(or with free software).

Thanks,

Mauro

Carlos "Guâno" Grohmann wrote:

Stefan, you might want to take a look at OrbisCAD (please search
Google, I don't remember the URL, but I know it is in Sourceforge).
According do the authors, it can read DXF and export shapefiles.

Hope this helps

Carlos

On 3/13/06, RAVI KUMAR <ravivundavalli@yahoo.com> wrote:

Stefan Gasser <stefang@dnet.it> wrote:

Hi
I`m using grass61 on windows and would like to import dxf and dwg files, but
it is only possible with dgn files using v.in.ogr.
Is there any other possibility to do an import for AutoCad files?

v.in.dwg requires OpenDWG toolkit. To get this toolkit you must become at
least "Associ! ate Member" of OpenDWG Alliance (http://www.opendwg.org), it
is free-of-charge (you have to fill one form).
Then unpack library and copy to this directory:
ad2.a ad2.h odio.h adinit.dat
and compile this module.

Ravi Kumar

thanks
Stefan Gasser

________________________________
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.

--
+-----------------------------------------------------------+
             Carlos Henrique Grohmann - Guano
Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

So you're trying to to export a "mesh", like a 3D vector grid of your surface?

On 3/13/06, Mauro Lacy <mauro@lacy.com.ar> wrote:

Sorry for the cross-post, but I'm trying to do almost exactly the
opposite. That is, export a (raster) DEM to dxf. I was browsing the
diverse grass modules, and the problem is I couldn't find a way to
convert a raster DEM to a vector "surface" or "3d" file. So I can later
export it using v.out.dxf. I tried r.to.vect with horrible(and maybe
simply "not applicable") results.
I found some (non- free) programs that seem to do this (r2v, from
ablesoft, by example) but it intrigues me if it can actually be done
with grass(or with free software).

Thanks,

Mauro

Carlos "Guâno" Grohmann wrote:

>Stefan, you might want to take a look at OrbisCAD (please search
>Google, I don't remember the URL, but I know it is in Sourceforge).
>According do the authors, it can read DXF and export shapefiles.
>
>Hope this helps
>
>Carlos
>
>
>
>On 3/13/06, RAVI KUMAR <ravivundavalli@yahoo.com> wrote:
>
>
>>Stefan Gasser <stefang@dnet.it> wrote:
>>
>>
>>Hi
>>I`m using grass61 on windows and would like to import dxf and dwg files, but
>>it is only possible with dgn files using v.in.ogr.
>>Is there any other possibility to do an import for AutoCad files?
>>
>>
>>
>>v.in.dwg requires OpenDWG toolkit. To get this toolkit you must become at
>>least "Associ! ate Member" of OpenDWG Alliance (http://www.opendwg.org), it
>>is free-of-charge (you have to fill one form).
>>Then unpack library and copy to this directory:
>>ad2.a ad2.h odio.h adinit.dat
>>and compile this module.
>>
>>Ravi Kumar
>>
>>
>>
>>thanks
>>Stefan Gasser
>>
>>
>>
>> ________________________________
>>Yahoo! Mail
>> Bring photos to life! New PhotoMail makes sharing a breeze.
>>
>>
>>
>>
>
>
>--
>+-----------------------------------------------------------+
> Carlos Henrique Grohmann - Guano
> Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
>Linux User #89721 - carlos dot grohmann at gmail dot com
>+-----------------------------------------------------------+
>_________________
>"Good morning, doctors. I have taken the liberty of removing Windows
>95 from my hard drive."
>--The winning entry in a "What were HAL's first words" contest judged
>by 2001: A SPACE ODYSSEY creator Arthur C. Clarke
>
>
>

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

(cc'ing to list)
Carlos "Guâno" Grohmann wrote:

So you're trying to to export a "mesh", like a 3D vector grid of your surface?

Exactly. I can see that nviz generates this "mesh"(let's call it the "Wire" nviz Surface/Grid Surface Panel mode). But I don't know how to generate an equivalent vector map with this, from inside grass.

Mauro

On 3/13/06, Mauro Lacy <mauro@lacy.com.ar> wrote:

Sorry for the cross-post, but I'm trying to do almost exactly the
opposite. That is, export a (raster) DEM to dxf. I was browsing the
diverse grass modules, and the problem is I couldn't find a way to
convert a raster DEM to a vector "surface" or "3d" file. So I can later
export it using v.out.dxf. I tried r.to.vect with horrible(and maybe
simply "not applicable") results.
I found some (non- free) programs that seem to do this (r2v, from
ablesoft, by example) but it intrigues me if it can actually be done
with grass(or with free software).

Thanks,

Mauro

Carlos "Guâno" Grohmann wrote:

Stefan, you might want to take a look at OrbisCAD (please search
Google, I don't remember the URL, but I know it is in Sourceforge).
According do the authors, it can read DXF and export shapefiles.

Hope this helps

Carlos

On 3/13/06, RAVI KUMAR <ravivundavalli@yahoo.com> wrote:

Stefan Gasser <stefang@dnet.it> wrote:

Hi
I`m using grass61 on windows and would like to import dxf and dwg files, but
it is only possible with dgn files using v.in.ogr.
Is there any other possibility to do an import for AutoCad files?

v.in.dwg requires OpenDWG toolkit. To get this toolkit you must become at
least "Associ! ate Member" of OpenDWG Alliance (http://www.opendwg.org), it
is free-of-charge (you have to fill one form).
Then unpack library and copy to this directory:
ad2.a ad2.h odio.h adinit.dat
and compile this module.

Ravi Kumar

thanks
Stefan Gasser

________________________________
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.

--
+-----------------------------------------------------------+
            Carlos Henrique Grohmann - Guano
Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

--
+-----------------------------------------------------------+
             Carlos Henrique Grohmann - Guano
Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Mauro Lacy wrote:

(cc'ing to list)
Carlos "Guâno" Grohmann wrote:

So you're trying to to export a "mesh", like a 3D vector grid of your surface?

Exactly. I can see that nviz generates this "mesh"(let's call it the "Wire" nviz Surface/Grid Surface Panel mode). But I don't know how to generate an equivalent vector map with this, from inside grass.

Mauro

Hi,
Maybe you could try r.to.vect in point mode, v.delaunay then v.out.dxf.

Laurent

On 3/13/06, Mauro Lacy <mauro@lacy.com.ar> wrote:

Sorry for the cross-post, but I'm trying to do almost exactly the
opposite. That is, export a (raster) DEM to dxf. I was browsing the
diverse grass modules, and the problem is I couldn't find a way to
convert a raster DEM to a vector "surface" or "3d" file. So I can later
export it using v.out.dxf. I tried r.to.vect with horrible(and maybe
simply "not applicable") results.
I found some (non- free) programs that seem to do this (r2v, from
ablesoft, by example) but it intrigues me if it can actually be done
with grass(or with free software).

Thanks,

Mauro

Carlos "Guâno" Grohmann wrote:

Stefan, you might want to take a look at OrbisCAD (please search
Google, I don't remember the URL, but I know it is in Sourceforge).
According do the authors, it can read DXF and export shapefiles.

Hope this helps

Carlos

On 3/13/06, RAVI KUMAR <ravivundavalli@yahoo.com> wrote:

Stefan Gasser <stefang@dnet.it> wrote:

Hi
I`m using grass61 on windows and would like to import dxf and dwg files, but
it is only possible with dgn files using v.in.ogr.
Is there any other possibility to do an import for AutoCad files?

v.in.dwg requires OpenDWG toolkit. To get this toolkit you must become at
least "Associ! ate Member" of OpenDWG Alliance (http://www.opendwg.org), it
is free-of-charge (you have to fill one form).
Then unpack library and copy to this directory:
ad2.a ad2.h odio.h adinit.dat
and compile this module.

Ravi Kumar

thanks
Stefan Gasser

________________________________
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.

--
+-----------------------------------------------------------+
            Carlos Henrique Grohmann - Guano
Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

--
+-----------------------------------------------------------+
             Carlos Henrique Grohmann - Guano
Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Sorry for the cross-post, but I'm trying to do almost exactly the
opposite. That is, export a (raster) DEM to dxf. I was browsing the
diverse grass modules, and the problem is I couldn't find a way to
convert a raster DEM to a vector "surface" or "3d" file. So I can
later export it using v.out.dxf. I tried r.to.vect with horrible(and
maybe simply "not applicable") results.
I found some (non- free) programs that seem to do this (r2v, from
ablesoft, by example) but it intrigues me if it can actually be done
with grass(or with free software).

Sounds like you want a TIN. see:

http://baron.flightgear.org/pipermail/terragear-devel/2004-November/001087.html

or v.3Dtin
http://www.fle.czu.cz/~jachym/programs/grass.html
http://grass.gdf-hannover.de/twiki/bin/view/GRASS/GrassAddOns

Hamish

We need someone willing to write a dxf in/out module for GRASS. Using OpenDWG libraries is only a partial solution.

Michael

______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

-----Original Message-----
From: Mauro Lacy [mailto:mauro@lacy.com.ar]
Sent: Mon 3/13/2006 12:11 PM
To: "Carlos \"Guâno\" Grohmann"; grasslist@baylor.edu
Subject: [GRASSLIST:51] Re: v.in.dxf

Sorry for the cross-post, but I'm trying to do almost exactly the
opposite. That is, export a (raster) DEM to dxf. I was browsing the
diverse grass modules, and the problem is I couldn't find a way to
convert a raster DEM to a vector "surface" or "3d" file. So I can later
export it using v.out.dxf. I tried r.to.vect with horrible(and maybe
simply "not applicable") results.
I found some (non- free) programs that seem to do this (r2v, from
ablesoft, by example) but it intrigues me if it can actually be done
with grass(or with free software).

Thanks,

Mauro

Carlos "Guâno" Grohmann wrote:

Stefan, you might want to take a look at OrbisCAD (please search
Google, I don't remember the URL, but I know it is in Sourceforge).
According do the authors, it can read DXF and export shapefiles.

Hope this helps

Carlos

On 3/13/06, RAVI KUMAR <ravivundavalli@yahoo.com> wrote:

Stefan Gasser <stefang@dnet.it> wrote:

Hi
I`m using grass61 on windows and would like to import dxf and dwg files, but
it is only possible with dgn files using v.in.ogr.
Is there any other possibility to do an import for AutoCad files?

v.in.dwg requires OpenDWG toolkit. To get this toolkit you must become at
least "Associ! ate Member" of OpenDWG Alliance (http://www.opendwg.org), it
is free-of-charge (you have to fill one form).
Then unpack library and copy to this directory:
ad2.a ad2.h odio.h adinit.dat
and compile this module.

Ravi Kumar

thanks
Stefan Gasser

________________________________
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.

--
+-----------------------------------------------------------+
             Carlos Henrique Grohmann - Guano
Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Hamish wrote:

Sorry for the cross-post, but I'm trying to do almost exactly the opposite. That is, export a (raster) DEM to dxf. I was browsing the diverse grass modules, and the problem is I couldn't find a way to convert a raster DEM to a vector "surface" or "3d" file. So I can
later export it using v.out.dxf. I tried r.to.vect with horrible(and
maybe simply "not applicable") results.
I found some (non- free) programs that seem to do this (r2v, from ablesoft, by example) but it intrigues me if it can actually be done with grass(or with free software).
    
Sounds like you want a TIN. see:

http://baron.flightgear.org/pipermail/terragear-devel/2004-November/001087.html
  

This looks promising. But seems to be work in progress:
http://www.bowdoin.edu/~ltoma/research.html
(see r.refine)
And as far as I can tell, no source code is available.

or v.3Dtin
http://www.fle.czu.cz/~jachym/programs/grass.html
http://grass.gdf-hannover.de/twiki/bin/view/GRASS/GrassAddOns
  

This works! (altough v.delaunay is _extremely_ memory consuming)
After some minor corrections to v.3Dtin perl code, I was able to generate a 3D-vector TIN (altough maybe it should be more appropiately called a TRN).
I'm now stuck with the DXF file. v.out.dxf generates a valid DXF file, but it looks like 2d, not 3d.
Probably is just me :slight_smile: I'm displaying it in qcad (I don't have Autocad at hand now). And maybe I just don't know how to display it in 3D.

Regards,

Mauro

Hamish