[GRASS-dev] New DWG import module

Hi! I am working on a replacement for v.in.dwg, since it depends on a proprietary library. I am using LibreDWG, a recent free software library that implements the OpenDWG spec. The module, v.in.redwg, is partially implemented, but I haven’t figured out how to invoke it from GUI or CLI. I’d appreciate if anyone could help me with some information about this.

I think that the following message wasn’t delivered to the list, so I am sending it again.

My best,

Rodrigo Rodrigues da Silva
PoliGNU - Grupo de Estudos de Software Livre da Poli/USP
FSF Associate Member #7788

---------- Forwarded message ----------
From: Rodrigo Rodrigues da Silva <pitanga@members.fsf.org>
Date: 2009/11/27
Subject: Free DWG support library
To: grass-dev@lists.osgeo.org

I ve noticed, from previous messages, that you have offered DWG conversion support as a module since 2003. I also know that you are aware of the legal implications of it. As a developer and maintainer for the project, and assuming you haven’t heard of it yet, I d like to point you to LibreDWG, a free (as in free speech) library to handle DWG files.

We are currently in alpha stage (R13, R14 and R2000 read support only) but we are moving fast and a first test release is coming. Since our project is very recent, besides our testing SVG converter, there is no software using it yet. I would be glad to see GRASS using it in the near future, and offering the users the possibility of importing DWG files without having to download non-free software. If you have any doubts, please let me know.

The project’s website:
http://www.gnu.org/software/libredwg


Rodrigo Rodrigues da Silva
PoliGNU - Grupo de Estudos de Software Livre da Poli/USP
FSF Associate Member #7788

Rodrigo Rodrigues da Silva wrote:

Hi! I am working on a replacement for v.in.dwg, since it depends on a
proprietary library. I am using LibreDWG, a recent free software library
that implements the OpenDWG spec. The module, v.in.redwg, is partially
implemented, but I haven't figured out how to invoke it from GUI or CLI. I'd
appreciate if anyone could help me with some information about this.

First, get to to work from the command-line. This should just be a
matter of installing the executable to $GISBASE/bin.

--
Glynn Clements <glynn@gclements.plus.com>

Rodrigo wrote:

I haven't figured out how to invoke it from GUI or CLI. I'd
appreciate if anyone could help me with some information about this.

see the man page for the g.parser module.

Hamish

There are some preliminary results on the module I've been writing. It
is a DWG file (http://www.naval.com/drawings/dwg/PRA430d.dwg - there's
a PDF too) that we've been using with testSVG, rendered with GRASS's
nviz module. I think that it looks a bit aliased, maybe because GRASS
is tuned for larger orders of magnitude (kilometers) by default, and
not circuit boards (centimeters) -- I'm just wondering, I'm not a
GRASS user nor a SIG specialist. I need to test it with a proper DWG
file or change some configurations.

I'll submit it as soon as I get the INSERTs and BLOCKs working.

Rodrigo.

2009/12/17 Rodrigo Rodrigues da Silva <pitanga@members.fsf.org>:

Hi! I am working on a replacement for v.in.dwg, since it depends on a
proprietary library. I am using LibreDWG, a recent free software library
that implements the OpenDWG spec. The module, v.in.redwg, is partially
implemented, but I haven't figured out how to invoke it from GUI or CLI. I'd
appreciate if anyone could help me with some information about this.

I think that the following message wasn't delivered to the list, so I am
sending it again.

My best,
--
Rodrigo Rodrigues da Silva
PoliGNU - Grupo de Estudos de Software Livre da Poli/USP
FSF Associate Member #7788

---------- Forwarded message ----------
From: Rodrigo Rodrigues da Silva <pitanga@members.fsf.org>
Date: 2009/11/27
Subject: Free DWG support library
To: grass-dev@lists.osgeo.org

I ve noticed, from previous messages, that you have offered DWG conversion
support as a module since 2003. I also know that you are aware of the legal
implications of it. As a developer and maintainer for the project, and
assuming you haven't heard of it yet, I d like to point you to LibreDWG, a
free (as in free speech) library to handle DWG files.

We are currently in alpha stage (R13, R14 and R2000 read support only) but
we are moving fast and a first test release is coming. Since our project is
very recent, besides our testing SVG converter, there is no software using
it yet. I would be glad to see GRASS using it in the near future, and
offering the users the possibility of importing DWG files without having to
download non-free software. If you have any doubts, please let me know.

The project's website:
http://www.gnu.org/software/libredwg

--
Rodrigo Rodrigues da Silva
PoliGNU - Grupo de Estudos de Software Livre da Poli/USP
FSF Associate Member #7788

--
Rodrigo Rodrigues da Silva
PoliGNU - Grupo de Estudos de Software Livre da Poli/USP
FSF Associate Member #7788

(attachments)

grass_libredwg.png

On Thu, Dec 24, 2009 at 10:16 PM, Rodrigo Rodrigues da Silva
<pitanga@members.fsf.org> wrote:

There are some preliminary results on the module I've been writing. It
is a DWG file (http://www.naval.com/drawings/dwg/PRA430d.dwg - there's
a PDF too) that we've been using with testSVG, rendered with GRASS's
nviz module.

(somewhat late answer)
Congratulations to your first results!

I think that it looks a bit aliased, maybe because GRASS
is tuned for larger orders of magnitude (kilometers) by default, and
not circuit boards (centimeters) -- I'm just wondering, I'm not a
GRASS user nor a SIG specialist. I need to test it with a proper DWG
file or change some configurations.

No, GRASS can work with any unit, also nanometers if you want.
The problem must be elsewhere.
For inspection, you can use v.out.ascii to see the vectors in ASCII.

I'll submit it as soon as I get the INSERTs and BLOCKs working.

Rodrigo.

Markus

On 13-03-2010 13:44, Markus Neteler wrote:

On Thu, Dec 24, 2009 at 10:16 PM, Rodrigo Rodrigues da Silva
<pitanga@members.fsf.org> wrote:

There are some preliminary results on the module I've been writing. It
is a DWG file (http://www.naval.com/drawings/dwg/PRA430d.dwg - there's
a PDF too) that we've been using with testSVG, rendered with GRASS's
nviz module.

(somewhat late answer)
Congratulations to your first results!

Sorry I haven't seen your reply before. I have left work on that module behind for a while due to LibreDWG issues. Now the issues seem to be addressed and I plan to get back to work on the module by next week. I was wondering if I could get access to the Addons SVN, and if someone would be wanting to mentor me on that (I've read RFC2). I can publish a tarball before that for evaluation, but I'd like to make it available to the community anyway.

I think that it looks a bit aliased, maybe because GRASS
is tuned for larger orders of magnitude (kilometers) by default, and
not circuit boards (centimeters) -- I'm just wondering, I'm not a
GRASS user nor a SIG specialist. I need to test it with a proper DWG
file or change some configurations.

No, GRASS can work with any unit, also nanometers if you want.
The problem must be elsewhere.
For inspection, you can use v.out.ascii to see the vectors in ASCII.

I'll check it out, thanks.

I'll submit it as soon as I get the INSERTs and BLOCKs working.

Rodrigo.

Markus

--
Rodrigo Rodrigues da Silva
GNU LibreDWG maintainer
FSF Associate Member #7788
PoliGNU - Grupo de Estudos de Software Livre da Poli/USP

Rodrigo,

sorry for the delay.

On Tue, Apr 13, 2010 at 12:04 AM, Rodrigo Rodrigues da Silva
<pitanga@members.fsf.org> wrote:

On 13-03-2010 13:44, Markus Neteler wrote:

On Thu, Dec 24, 2009 at 10:16 PM, Rodrigo Rodrigues da Silva
<pitanga@members.fsf.org> wrote:

There are some preliminary results on the module I've been writing. It
is a DWG file (http://www.naval.com/drawings/dwg/PRA430d.dwg - there's
a PDF too) that we've been using with testSVG, rendered with GRASS's
nviz module.

(somewhat late answer)
Congratulations to your first results!

Sorry I haven't seen your reply before. I have left work on that module
behind for a while due to LibreDWG issues. Now the issues seem to be
addressed and I plan to get back to work on the module by next week. I was
wondering if I could get access to the Addons SVN,

Yes, as soon as ...

and if someone would be
wanting to mentor me on that (I've read RFC2).

.. you also accept it :slight_smile:

Please take a look at
http://trac.osgeo.org/grass/wiki/HowToContribute#WriteaccesstotheGRASS-Addons-SVNrepository
for the formalized procedure.

I can publish a tarball
before that for evaluation, but I'd like to make it available to the
community anyway.

I think that the Addons-SVN is the best way to manage it. Of course you
may post it elsewhere before!

...

Markus

--
Rodrigo Rodrigues da Silva
GNU LibreDWG maintainer
FSF Associate Member #7788
PoliGNU - Grupo de Estudos de Software Livre da Poli/USP