[postgis-users] DXF to Postgis using ogr

Bob Pawley rjpawley at shaw.ca
Sat Dec 17 05:00:23 PST 2011


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 <rjpawley at shaw.ca>:
> 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
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



-- 
----------------------------------------------
Ing. Guglielmo R. Raimondi
guglielmo.raimondi at gmail.com

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
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users 




More information about the postgis-users mailing list