[postgis-users] Convert .dxf or .dwf files to .shp by command line
Wojciech Wawrzyniak
d124130 at op.pl
Fri Jan 13 05:49:34 PST 2006
>> I'm newbie in postgis and i have some questions.
>> Is it possible to convert any of autocad files to shape files?. I read
>> many
>> of topics about converting this files... and I have found only two way by
>> VB
>> script application , and second it is possible to save by autodesk map to
>> shp files. But I would like to find another way which will give me
>> opportunity to use only command line. I know that some peoples tried to
>> do
>> it before and I will be grateful for replay.
.>
>
>Hi, you should have a look at OGR library and ogr2ogr programs
>(http://gdal.maptools.org/ogr/index.html)
>It allows format conversion using command line and allows loading
>vector data directly into Postgis
>
>Nicolas
I take a look at ogr2ogr right now but I'm affraid this conversion isn't
support. I have found following information
http://lists.maptools.org/pipermail/gdal-dev/2006-January/007565.html and
here i see that is possibility only to write dxf files by ogr2ogr.
Right now I have managed to convert file from dxf file to csv file and next
I had sent it to postgis. But the problem is the way of representing data in
this new creaeted table. I have many of column:
ogc_fid| wkb_geometry | field_1 | field_2 | field_3 | field_4 |
field_5 | field_6 | field_7 | field_8 | field_9 | field_10 | field_11 |
field_12 | field_13 | field_14
1| | # | 0-ENTITY | 1-VALUE | 2-NAME |
5-HANDLE | 8-LAYER | 10-X | 20-Y | 30-Z | 40-RADIUS | 41-SZ_X |
42-SZ_Y | 43-SZ_Z |
but the wkb_geometry column is empty... Of course i can try to take
information from x,y,z but it is a little bit complicated.
Also on the second page http://scratchcomputing.com/projects/uber-converter/
i haven't found the solution of my problem.
..sum up I think there is still no solution for it. The interesting
information i get also from
http://lists.maptools.org/pipermail/gdal-dev/2005-July/006008.html
but thanks for willingness!
regards
Wojciech,
_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list