<div dir="ltr">Hi Paul,<div><br></div><div>Thanks for the quick response. I just ran the test again (Windows Vista, 32-bit) and it doesn&#39;t get stuck on reading the WKB, so maybe it has to do with cross-platform compatibility. &nbsp;I took the WKB and converted it to hex, so hopefully, it will work this time. I&#39;ve attached it to the <span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: small;">ticket (</span></span><span class="Apple-style-span" style="white-space: pre; "><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: small;"><a href="http://trac.osgeo.org/geos/ticket/188">http://trac.osgeo.org/geos/ticket/188</a>).  The file I/O operations in the .cpp file now look like this:</span></span></span></div>
<div><br></div><div><span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">std::ifstream fin ;</span></div><div><div><span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">fin.open( &quot;hex.ogc&quot; ) ;</span></div>
<div><span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">GeometryAPtr geom( reader_.readHEX( fin ) ) ;</span></div><div><br></div><div>Thanks,</div><div><br></div></div><div>Stephen<br>
<br><div class="gmail_quote">On Mon, Aug 11, 2008 at 11:42 AM, Paul Ramsey <span dir="ltr">&lt;<a href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Stephen,<br>
<br>
When I integrate your code into my OS/X build and run the unit tests,<br>
I don&#39;t get as far as buffering...<br>
<br>
---&gt; group: geos::operation::BufferOp, test: test&lt;1&gt;<br>
 &nbsp; &nbsp; problem: unexpected exception<br>
 &nbsp; &nbsp; exception typeid: N4geos2io14ParseExceptionE<br>
 &nbsp; &nbsp; message: &quot;ParseException: Unknown WKB type 0&quot;<br>
<br>
Are you certain that WKB fragment is good?<br>
<br>
Paul<br>
<div><div></div><div class="Wj3C7c"><br>
On Fri, Aug 8, 2008 at 11:48 AM, Stephen Wong &lt;<a href="mailto:swongu@gmail.com">swongu@gmail.com</a>&gt; wrote:<br>
&gt; Hello,<br>
&gt; I have found that when using BufferOp on a specific polygon, GEOS crashes<br>
&gt; with an assertion failure. &nbsp;This failure appears to be within<br>
&gt; RightmostEdgeFinder, and I have documented it on a ticket<br>
&gt; (<a href="http://trac.osgeo.org/geos/ticket/188" target="_blank">http://trac.osgeo.org/geos/ticket/188</a>). On that ticket, I have also<br>
&gt; provided a .zip file that reproduces the error. The surprising this is that<br>
&gt; the geometry is not complicated at all!<br>
&gt; I have posted this problem in March<br>
&gt; (see <a href="http://lists.osgeo.org/pipermail/geos-devel/2008-March/003324.html" target="_blank">http://lists.osgeo.org/pipermail/geos-devel/2008-March/003324.html</a>),<br>
&gt; but didn&#39;t get a response thus far; hopefully posting here will help.<br>
&gt; &nbsp;Thanks in advance.<br>
&gt; Regards,<br>
&gt; Stephen<br>
</div></div>&gt; _______________________________________________<br>
&gt; geos-devel mailing list<br>
&gt; <a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>
&gt;<br>
_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>
</blockquote></div><br></div></div>