Hi all,
got probs (again) importing a .dxf file into GRASS.
I was trying to import a file called sample.dxf wich i loaded
down from www.english-nature.org.uk/pubs/gis/more.htm
After setting up a location
file: PERMANENT/PROJ_INFO
name: Transverse Mercator
datum: osgb36 (Ordnance Survey of Great Britain Datum 1936 I suppose?)
dx: 368.000000
dy: -120.000000
dz: 425.000000
proj: tmerc
ellps: airy
a: 6377563.3959999997
es: 0.0066705400
f: 299.3249646000
lat_0: 49.0000000000
lon_0: -2.0000000000
k_0: 0.9996012717
x_0: 400000.0000000000
and a mapset:
proj: 99
zone: 0
north: 200000
south: 100000
east: 400000
west: 300000
cols: 100000
rows: 100000
e-w resol: 1
n-s resol: 1
using the whole 100 km quadrangle i tried several commands like v.in.dxf, v.in.dxf.3d and
v.in.dxf.3d.sh with little luck.
Response from GRASS:
GRASS:~ > v.in.dxf /home/heiko/grassdaten/britain/Sample.dxf
CONVERSION OF /home/heiko/grassdaten/britain/Sample.dxf TO DIG FILE: 100%
Following DXF layers found:
GRASS:~ >
So GRASS reads the file but find no content (imho).
Reading the file it shows something like that:
0
SECTION
2
HEADER
9
$ACADVER
1
AC1009
9
$EXTMIN
10
311061.028851
20
133724.001154
30
0.0
9
$EXTMAX
10
318723.716551
20
142576.047282
30
0.0
9
$LIMMIN
10
310677.894466
20
133281.398848
9
$LIMMAX
10
319106.850936
20
143018.649589
As an alternative there are also Mapinfo TAB and/or MIF/MID files and
Microstation DGNs.
Any help very welcome.
Best Regards
Heiko Kehlenbrink
On Fri, 15 Feb 2002, Heiko Kehlenbrink wrote:
Hi all,
got probs (again) importing a .dxf file into GRASS.
I was trying to import a file called sample.dxf wich i loaded
down from www.english-nature.org.uk/pubs/gis/more.htm
Heiko,
I think you found a bug. I set up a location with the specifications you
provided and v.in.dxf failed for me as it did for you. I then managed to
import the same dxf file (Sample.dxf) into two other applications without
trouble. Then I extracted the VERTEX data from Sample.dxf file and
converted that to a dig_ascii file and read that in. That worked and
displayed within the window that you specified.
The dxf file consists of three POLYLINE objects, which in my experience
are little-used; the LWPOLYLINE is more common. I think you came across a
problem with v.in.dxf and POLYLINE objects.
Unfortunately, that doesn't help with your problem.
Roger Miller
Roger Miller wrote:
On Fri, 15 Feb 2002, Heiko Kehlenbrink wrote:
Hi all,
got probs (again) importing a .dxf file into GRASS.
I was trying to import a file called sample.dxf wich i loaded
down from www.english-nature.org.uk/pubs/gis/more.htm
Heiko,
I think you found a bug. I set up a location with the specifications you
provided and v.in.dxf failed for me as it did for you. I then managed to
import the same dxf file (Sample.dxf) into two other applications without
trouble. Then I extracted the VERTEX data from Sample.dxf file and
converted that to a dig_ascii file and read that in. That worked and
displayed within the window that you specified.
The dxf file consists of three POLYLINE objects, which in my experience
are little-used; the LWPOLYLINE is more common. I think you came across a
problem with v.in.dxf and POLYLINE objects.
Unfortunately, that doesn't help with your problem.
Roger Miller
_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5
Well Roger,
thank you for spending time on it.
Will you send a bug report to th bug tracker?
Btw what applications do you use for xtracting the VERTEX data?
Will you pour ma a favour and send me the dig_ascii files you made?
Is it possible that the Sample.dxf is a diffrent (maybe newer) .dxf-version than GRASS could deal with?
have a nice weekend
Heiko Kehlenbrink
On Fri, 15 Feb 2002, Heiko Kehlenbrink wrote:
Well Roger,
thank you for spending time on it.
Will you send a bug report to th bug tracker?
I thought I might try to find the problem before using the bug tracker.
Btw what applications do you use for xtracting the VERTEX data?
It's a small utility that I wrote several years ago. I was able to read
the dxf file with Surfer 6 and with Star Office. I think either of those
applications probably could have been used to re-write a dxf that GRASS
could understand.
Will you pour ma a favour and send me the dig_ascii files you made?
No problem, but under separate cover.
Is it possible that the Sample.dxf is a diffrent (maybe newer)
.dxf-version than GRASS could deal with?
I don't think it's that simple. It may have had something to do with the
fact that the polyline objects weren't closed, or something even more
obscure, like the polylines weren't assigned to a named layer.
Roger Miller