Thanks Chaitanya,<div><br></div><div>I like the look of that second option.  If I understand correctly what Even says, I should then be able to call the <span class="Apple-style-span" style="font-family: monospace; white-space: pre; font-size: medium; "><i>ExportToWKT() </i></span><span class="Apple-style-span" style="font-family: monospace; white-space: pre; font-size: medium; ">method with a precision parameter?  </span></div>
<div><font class="Apple-style-span" face="monospace" size="3"><span class="Apple-style-span" style="white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="monospace" size="3"><span class="Apple-style-span" style="white-space: pre;">Roger<br>
</span></font></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><font class="Apple-style-span" face="monospace" size="3"><span class="Apple-style-span" style="white-space: pre;">--<br></span></font></div>
<div><div class="gmail_quote"><br></div><div class="gmail_quote">On Tue, Aug 16, 2011 at 10:36 PM, Chaitanya kumar CH <span dir="ltr">&lt;<a href="mailto:chaitanya.ch@gmail.com">chaitanya.ch@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Roger,<br><br>OGR doesn&#39;t support control of coordinate precision. You need to do this yourselves.<br>You can get the WKT of the geometry and and edit the string. If you are willing to recompile GDAL/OGR, you can modify the code that creates the WKT. Even wrote how to do this in this mailing list [1].<br>

<br>[1]: <a href="http://lists.osgeo.org/pipermail/gdal-dev/2011-April/028306.html" target="_blank">http://lists.osgeo.org/pipermail/gdal-dev/2011-April/028306.html</a><br><br><div class="gmail_quote"><div><div></div><div class="h5">
On Wed, Aug 17, 2011 at 5:21 AM, Roger André <span dir="ltr">&lt;<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div class="h5">Hi All,<div><br></div><div>I have an assignment that requires me to truncate the precision of all my polygon coordinates to 6 decimal places.  Is there an easy way to do this while I have the feature opened with OGR and can access its ogr.Geometry directly?  If not, can someone recommend a good way to iterate through each coordinate in a feature in such a way that I can treat it as a string and format it?</div>


<div><br></div><div>Thanks,</div><div><br></div><font color="#888888"><div>Roger</div>
</font><br></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><font color="#888888"><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>
</font></blockquote></div><br></div>