Re: Converting .grd to .dxf or .dwg (AutoCAD)

Juan Diaz-Naveas <[email protected]> Fri, 1 Aug 2014 17:05:00 -0400
Newsgroups gmane.comp.gis.gmt.user
Message-ID <CABeNKBnGXzKGKQiVoWMdkxCCDSxqJrJZ0OXcmqbcRfU8gzxkGw@mail.gmail.com>
--20cf307c9ee60bbf4604ff97be6d
Content-Type: text/plain; charset=UTF-8

Dear Joquim,

Thank you very much for the help!

Indeed I was able to produce a .dxf AutoCAD file from the file dumped by
grdcontour (using options -D and -m).

The command was: ogr2ogr -f "DXF" contours.dxf contours.gmt.

According to GDAL documentation, the file dumped by grdcontour MUST have
.gmt extension in order to be recognized, and the order of the files within
the command is also strict.

Now I have to see how to put the borders of the map...

Best wishes

Juan Diaz-Naveas


On Wed, Jul 30, 2014 at 6:27 PM, Joaquim Luis <[email protected]> wrote:

>  Juan,
>
> I don't think that is really possible. ".grd" are grids and dxf (or the
> binary DWG) are vector formats so they cannot represent grids (rasters).
> But perhaps I'm wrong and there is some sort of image capability that had
> been added to those Acad formats (they didn't exist when used autocad long
> time ago).
> That said people in GDAL list sometimes ask questions similar to this and
> turns out that they want to display lines (contours). If that's the case,
> then try GDAL, which has DWG support.
>
> Joaquim
>
>  Dear GMT users,
>
>  I need to transform a GMT .grd file to .dxf or .dwg AutoCAD files.
>
>  To be honest my experience with AutoCAD is very little, but the idea is
> to be able to display "somehow" the grid using AutoCAD.
>
>  Thank you in advance for any help you can provide to me.
>
>  Best wishes
>
>  Juan Diaz-Naveas
>  Mailing list for GMT discussions of all kinds. If you are not sure you
> have found a bug, discuss it here first. To formally report bugs or request
> features, please register and add New Issue on gmt.soest.hawaii.edu To
> unsubscribe, send the message "signoff gmt-help" to
> [email protected] Note: gmt-help will become obsolete on Sept 1,
> 2014 - please use forum on gmt.soest.hawaii.edu instead.
>
>
>

Mailing list for GMT discussions of all kinds.  If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message "signoff gmt-help" to [email protected]
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.

--20cf307c9ee60bbf4604ff97be6d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Dear Joquim,<div><br></div><div>Thank you very much for th=
e help!</div><div><br></div><div>Indeed I was able to produce a .dxf AutoCA=
D file from the file dumped by grdcontour (using options -D and -m).</div>
<div><br></div><div>The command was: ogr2ogr -f &quot;DXF&quot; contours.dx=
f contours.gmt.</div><div><br></div><div>According to GDAL documentation, t=
he file dumped by grdcontour MUST have .gmt extension in order to be recogn=
ized, and the order of the files within the command is also strict.</div>
<div><br></div><div>Now I have to see how to put the borders of the map...<=
/div><div><br></div><div>Best wishes</div><div><br></div><div>Juan Diaz-Nav=
eas</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On W=
ed, Jul 30, 2014 at 6:27 PM, Joaquim Luis <span dir=3D"ltr">&lt;<a href=3D"=
mailto:[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wrote:=
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
 =20
   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000">
    Juan,<br>
    <br>
    I don&#39;t think that is really possible. &quot;.grd&quot; are grids a=
nd dxf (or
    the binary DWG) are vector formats so they cannot represent grids
    (rasters).<br>
    But perhaps I&#39;m wrong and there is some sort of image capability
    that had been added to those Acad formats (they didn&#39;t exist when
    used autocad long time ago).<br>
    That said people in GDAL list sometimes ask questions similar to
    this and turns out that they want to display lines (contours). If
    that&#39;s the case, then try GDAL, which has DWG support.<br>
    <br>
    Joaquim<br>
    <br>
    <blockquote type=3D"cite"><div><div class=3D"h5">
      <div dir=3D"ltr">Dear GMT users,<br>
        <div><br>
        </div>
        <div>I need to transform a GMT .grd file to .dxf or .dwg AutoCAD
          files.</div>
        <div><br>
        </div>
        <div>To be honest my experience with AutoCAD is very little, but
          the idea is to be able to display &quot;somehow&quot; the grid us=
ing
          AutoCAD.</div>
        <div><br>
        </div>
        <div>Thank you in advance for any help you can provide to me.</div>
        <div><br>
        </div>
        <div>Best wishes</div>
        <div><br>
        </div>
        <div>Juan Diaz-Naveas</div>
      </div></div></div>
      Mailing list for GMT discussions of all kinds. If you are not sure
      you have found a bug, discuss it here first.
      To formally report bugs or request features, please register and
      add New Issue on <a href=3D"http://gmt.soest.hawaii.edu" target=3D"_b=
lank">gmt.soest.hawaii.edu</a>
      To unsubscribe, send the message &quot;signoff gmt-help&quot; to <a h=
ref=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
awaii.edu</a>
      Note: gmt-help will become obsolete on Sept 1, 2014 - please use
      forum on <a href=3D"http://gmt.soest.hawaii.edu" target=3D"_blank">gm=
t.soest.hawaii.edu</a> instead.
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div></div>
Mailing list for GMT discussions of all kinds.  If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message &quot;signoff gmt-help&quot; to <a href=3D"mailto:[email protected]">[email protected]</a>
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.

--20cf307c9ee60bbf4604ff97be6d--