Bob,<br><br>Configuration options can be set in three ways. Programmatically, by commandline switches or they can be set as environment variables.<br>The ogr2ogr utility doesn't use the commandline switch to set them. So the only way left is by setting an environment variable.<br>
<br>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.<br><br>Most of this is explained in the ConfigOptions page.<br>
<br>In your case you have to use two commands.<br><span style="font-family: courier new,monospace;">set DXF_INLINE_BLOCKS=false</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ogr2ogr -f PostgreSQL -overwrite PG:"host='DBHost' user='postgres' dbname='DBName' password='Pass'" DXFfile -nln 'Import_PID'</span><br style="font-family: courier new,monospace;">
<br><div class="gmail_quote">On Sun, Oct 16, 2011 at 10:59 PM, Bob Pawley <span dir="ltr"><<a href="mailto:rjpawley@shaw.ca">rjpawley@shaw.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">
<div dir="ltr">
<div style="font-family: 'Times New Roman'; color: rgb(0, 0, 43); font-size: 12pt;">
<div>Hi Chaitanya</div>
<div> </div>
<div>I haven’t been able to find any information on how to disable the DXF
inline blocks.</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>'"'+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" ';</div>
<div>
<div style="font-style: normal; display: inline; font-family: 'Calibri'; color: rgb(0, 0, 0); font-size: small; font-weight: normal; text-decoration: none;"><font color="#00002b" face="Times New Roman"></font> </div>
</div>
<div>
<div style="font-style: normal; display: inline; font-family: 'Calibri'; color: rgb(0, 0, 0); font-size: small; font-weight: normal; text-decoration: none;"><font color="#00002b" face="Times New Roman">Can you point me to a site that can help
me?</font></div></div>
<div>
<div style="font-style: normal; display: inline; font-family: 'Calibri'; color: rgb(0, 0, 0); font-size: small; font-weight: normal; text-decoration: none;"><font color="#00002b" face="Times New Roman"></font> </div>
</div>
<div>
<div style="font-style: normal; display: inline; font-family: 'Calibri'; color: rgb(0, 0, 0); font-size: small; font-weight: normal; text-decoration: none;"><font color="#00002b" face="Times New Roman">Bob</font></div>
</div>
<div>
<div style="font-style: normal; display: inline; font-family: 'Calibri'; color: rgb(0, 0, 0); font-size: small; font-weight: normal; text-decoration: none;"><font color="#00002b" face="Times New Roman"></font> </div>
</div>
<div>
<div style="font-style: normal; display: inline; font-family: 'Calibri'; color: rgb(0, 0, 0); font-size: small; font-weight: normal; text-decoration: none;"><font color="#00002b" face="Times New Roman"></font> </div>
</div>
<div>
<div style="font-style: normal; display: inline; font-family: 'Calibri'; color: rgb(0, 0, 0); font-size: small; font-weight: normal; text-decoration: none;"><font color="#00002b" face="Times New Roman"></font></div>
<div style="font: 10pt tahoma;">
<div style="background: none repeat scroll 0% 0% rgb(245, 245, 245);">
<div><b>From:</b> <a title="chaitanya.ch@gmail.com" href="mailto:chaitanya.ch@gmail.com" target="_blank">Chaitanya kumar CH</a> </div>
<div><b>Sent:</b> Friday, October 14, 2011 6:41 AM</div>
<div><b>To:</b> <a title="rjpawley@shaw.ca" href="mailto:rjpawley@shaw.ca" target="_blank">Bob
Pawley</a> </div>
<div><b>Cc:</b> <a title="fwtools@lists.maptools.org" href="mailto:fwtools@lists.maptools.org" target="_blank">fwtools@lists.maptools.org</a> </div>
<div><b>Subject:</b> Re: [FWTools] DXF2Postgis Blocks</div></div></div>
<div> </div></div><div><div></div><div class="h5">
<div style="font-style: normal; display: inline; font-family: 'Calibri'; color: rgb(0, 0, 0); font-size: small; font-weight: normal; text-decoration: none;">Bob,<br><br>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.<br><br>[1]: <a href="http://www.gdal.org/ogr/drv_dxf.html" target="_blank">http://www.gdal.org/ogr/drv_dxf.html</a><br>[2]:
<a href="http://trac.osgeo.org/gdal/wiki/ConfigOptions" target="_blank">http://trac.osgeo.org/gdal/wiki/ConfigOptions</a><br><br>
<div class="gmail_quote">On Fri, Oct 14, 2011 at 11:21 AM, Bob Pawley <span dir="ltr"><<a href="mailto:rjpawley@shaw.ca" target="_blank">rjpawley@shaw.ca</a>></span>
wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div dir="ltr">
<div dir="ltr">
<div style="font-family: 'Times New Roman'; color: rgb(0, 0, 43); font-size: 12pt;">
<div>Hi</div>
<div> </div>
<div>I am using FWTools to import DXF files to Postgis. </div>
<div> </div>
<div>It mostly works quite well except I am not able to import the DXF Blocks
and Block Attributes.</div>
<div> </div>
<div>Is it possible to include the Blocks, or am I just missing
something?</div>
<div> </div><font color="#888888">
<div>Bob Pawley</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div></font></div></div></div><br>_______________________________________________<br>FWTools
mailing list<br><a href="mailto:FWTools@lists.maptools.org" target="_blank">FWTools@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/fwtools" target="_blank">http://lists.maptools.org/mailman/listinfo/fwtools</a><br>
<a href="http://fwtools.maptools.org/" target="_blank">http://fwtools.maptools.org/</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar
CH.<br><br><a href="tel:%2B91-9494447584" value="+919494447584" target="_blank">+91-9494447584</a><br>17.2416N
80.1426E<br></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>