[FWTools] DXF2Postgis Blocks
Chaitanya kumar CH
chaitanya.ch at gmail.com
Sun Oct 16 15:38:45 EST 2011
Configuration options can be set in three ways. Programmatically, by
commandline switches or they can be set as environment variables.
The ogr2ogr utility doesn't use the commandline switch to set them. So the
only way left is by setting an environment variable.
On windows use can use the 'set' command to set the environment variable in
the shell. Once set all subsequent programs run on that shell will run
according to that variable.
Most of this is explained in the ConfigOptions page.
In your case you have to use two commands.
ogr2ogr -f PostgreSQL -overwrite PG:"host='DBHost' user='postgres'
dbname='DBName' password='Pass'" DXFfile -nln 'Import_PID'
On Sun, Oct 16, 2011 at 10:59 PM, Bob Pawley <rjpawley at shaw.ca> wrote:
> Hi Chaitanya
> I haven’t been able to find any information on how to disable the DXF
> inline blocks.
> I have tried the following as well as adaptations but I still can’t
> transfer the blocks or their attributes. Everything else comes through tho.
> '"'+s+'\FWTools2.4.7\bin\ogr2ogr" "-f" "PostgreSQL" PG:"host='+DBHost+'
> user=postgres dbname='+DBName+' password='+Pass+'" "' + DXF + '" "set
> DXF_INLINE_BLOCKS=false" + -nln '+'Import_PID'+' "-overwrite" ';
> Can you point me to a site that can help me?
> *From:* Chaitanya kumar CH <chaitanya.ch at gmail.com>
> *Sent:* Friday, October 14, 2011 6:41 AM
> *To:* Bob Pawley <rjpawley at shaw.ca>
> *Cc:* fwtools at lists.maptools.org
> *Subject:* Re: [FWTools] DXF2Postgis Blocks
> Go through the DXF driver page. According to that you can set
> DXF_INLINE_BLOCKS configuration option to false to extract more info from
> the blocks.
> : http://www.gdal.org/ogr/drv_dxf.html
> : http://trac.osgeo.org/gdal/wiki/ConfigOptions
> On Fri, Oct 14, 2011 at 11:21 AM, Bob Pawley <rjpawley at shaw.ca> wrote:
>> I am using FWTools to import DXF files to Postgis.
>> It mostly works quite well except I am not able to import the DXF Blocks
>> and Block Attributes.
>> Is it possible to include the Blocks, or am I just missing something?
>> Bob Pawley
>> FWTools mailing list
>> FWTools at lists.maptools.org
> Best regards,
> Chaitanya kumar CH.
> 17.2416N 80.1426E
Chaitanya kumar CH.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FWTools