[FWTools] DXF2Postgis Blocks
Chaitanya kumar CH
chaitanya.ch at gmail.com
Sun Oct 16 15:38:45 EST 2011
Bob,
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.
set DXF_INLINE_BLOCKS=false
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?
>
> Bob
>
>
> *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
>
> Bob,
>
> Go through the DXF driver page[1]. According to that you can set
> DXF_INLINE_BLOCKS configuration option[2] to false to extract more info from
> the blocks.
>
> [1]: http://www.gdal.org/ogr/drv_dxf.html
> [2]: http://trac.osgeo.org/gdal/wiki/ConfigOptions
>
> On Fri, Oct 14, 2011 at 11:21 AM, Bob Pawley <rjpawley at shaw.ca> wrote:
>
>> Hi
>>
>> 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
>> http://lists.maptools.org/mailman/listinfo/fwtools
>> http://fwtools.maptools.org/
>>
>>
>
>
> --
> Best regards,
> Chaitanya kumar CH.
>
> +91-9494447584
> 17.2416N 80.1426E
>
--
Best regards,
Chaitanya kumar CH.
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/fwtools/attachments/20111017/ceb559c0/attachment.htm
More information about the FWTools
mailing list