Hi Guglielmo

I found the QGIS dxf2shp plugin works with Dassault's DraftSight version of dxf.

One needs to run an unexploded version of dxf - once for polyline and again for polygon.

For text and accompanying points an exploded version of the dxf file needs to be selected.

I then use FWTools to import the shapefiles into Postgis.

QGIS is written in VC++ of which I am not acquainted. Perhaps this will help you.

It would be of help to have a standalone version that imports all of the dxf information directly into Postgis with one click.

Bob

-----Original Message----- From: Guglielmo Raimondi
Sent: Monday, December 19, 2011 11:48 AM
To: PostGIS Users Discussion
Subject: Re: [postgis-users] DXF to Postgis using ogr

Hi Bob,
sorry for delay in answering.
Yes, Dxf2PostGis manage blocks like points and I don't plan (for the
moment) to develop extra code to do it in different way.
I'm not expert user of Org2org (I remember also a different name
"ogr2ogr") and I can't help you, sorry.
I can suggest you to explode blocks before use Dxf2PostGIS, if this is
compatible with your requirements.
In any case, good luck!
Please, tell me if you find a workaround to the trouble.
Guglielmo

2011/12/17 Bob Pawley <[email protected]>:
Hi Guglielmo

I tried it a couple of weeks ago but it didn't import the block geometries
nor the block text. It worked well with the non-block text and geometries.

I've managed to, with Org2org, import the whole DXF file but for some reason
it appears to turn the block text into linestrings.

Bob

-----Original Message----- From: Guglielmo Raimondi
Sent: Saturday, December 17, 2011 1:26 AM
To: PostGIS Users Discussion
Subject: Re: [postgis-users] DXF to Postgis using ogr


Have you try to use "dxf2postgis"?
It's a tool for Windows environment that convert DXF files (R11 and
R12 version) in SQL scripts for PostgreSQL+PostGIS.
In detail, text are converted in points with special attibutes (text,
size, rotation, font, etc.) that you can use to replay the AutoCad
graphic aspect in a desktop GIS like QGis.
This is a link:

http://www.glasic.it/dxf2postgis.html

Regards,
Guglielmo Raimondi

2011/12/16 Bob Pawley <[email protected]>:

I have imported a dxf file into Postgis using the following command line -

set DXF_INLINE_BLOCKS=FALSE&set DXF_MERGE_BLOCK_GEOMETRIES=FALSE&set
PGCLIENTENCODING=LATIN1&&ogr2ogr -f "PostgreSQL" PG:"host=localhost
user=postgres dbname=dbname password=pass"  W_Works.dxf -nln Import_PID
-overwrite –skipfailures

All geometries are intact.

However, the text is part of the Linestring layer and not in the text
column
of the Postgresql table.

Is this to be expected?

Is there some way of screening out the text as text and point geometry?

Bob


_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users




--
----------------------------------------------
Ing. Guglielmo R. Raimondi
[email protected]

c/o MiPAAF - Ministero delle Politiche Agricole, Alimentari e Forestali
Gestione Commissariale ex Agensud
Via Venti Settembre 98/G
00187 Roma
www.agensud.it
tel.: (+39) 06 488887 55
------------------------------------------------
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users



--
----------------------------------------------
Ing. Guglielmo R. Raimondi
[email protected]

c/o MiPAAF - Ministero delle Politiche Agricole, Alimentari e Forestali
Gestione Commissariale ex Agensud
Via Venti Settembre 98/G
00187 Roma
www.agensud.it
tel.: (+39) 06 488887 55
------------------------------------------------
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to