Discussion:
Converting .grd to .dxf or .dwg (AutoCAD)
Juan Diaz-Naveas
2014-07-30 21:28:39 UTC
Permalink
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 ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Joaquim Luis
2014-07-30 22:27:08 UTC
Permalink
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
Post by Juan Diaz-Naveas
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
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 ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Juan Diaz-Naveas
2014-08-01 21:05:00 UTC
Permalink
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
Post by Joaquim Luis
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
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 ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Loading...