[postgis-users] DXF to Postgis using ogr
Guglielmo Raimondi
guglielmo.raimondi at gmail.com
Sat Dec 17 01:26:57 PST 2011
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
------------------------------------------------
More information about the postgis-users
mailing list