<div dir="ltr">Paul, Any update to this bug? It sounded like you were working on a patch...<div><br></div><div>Stephen<br>
<br><br><div class="gmail_quote">On Mon, Aug 11, 2008 at 3:53 PM, 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;">
In retrospect, the problem was (surprise!) between my ears. The unit<br>
test harness runs in the context of a directory one lower than your<br>
test case directory. When I copied the test data down into the<br>
expected location, it ran, and failed.<br>
<br>
So, consider your test case confirmed on OS/X. It be broken. Now I&#39;ll<br>
try the patch.<br>
<font color="#888888"><br>
P.<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Mon, Aug 11, 2008 at 1:41 PM, Stephen Wong &lt;<a href="mailto:swongu@gmail.com">swongu@gmail.com</a>&gt; wrote:<br>
&gt; Hi Paul,<br>
&gt; Thanks for the quick response. I just ran the test again (Windows Vista,<br>
&gt; 32-bit) and it doesn&#39;t get stuck on reading the WKB, so maybe it has to do<br>
&gt; with cross-platform compatibility. &nbsp;I took the WKB and converted it to hex,<br>
&gt; so hopefully, it will work this time. I&#39;ve attached it to the ticket<br>
&gt; (<a href="http://trac.osgeo.org/geos/ticket/188" target="_blank">http://trac.osgeo.org/geos/ticket/188</a>). The file I/O operations in the .cpp<br>
&gt; file now look like this:<br>
&gt; std::ifstream fin ;<br>
&gt; fin.open( &quot;hex.ogc&quot; ) ;<br>
&gt; GeometryAPtr geom( reader_.readHEX( fin ) ) ;<br>
&gt; Thanks,<br>
&gt; Stephen<br>
&gt;<br>
&gt; On Mon, Aug 11, 2008 at 11:42 AM, Paul Ramsey &lt;<a href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Stephen,<br>
&gt;&gt;<br>
&gt;&gt; When I integrate your code into my OS/X build and run the unit tests,<br>
&gt;&gt; I don&#39;t get as far as buffering...<br>
&gt;&gt;<br>
&gt;&gt; ---&gt; group: geos::operation::BufferOp, test: test&lt;1&gt;<br>
&gt;&gt; &nbsp; &nbsp; problem: unexpected exception<br>
&gt;&gt; &nbsp; &nbsp; exception typeid: N4geos2io14ParseExceptionE<br>
&gt;&gt; &nbsp; &nbsp; message: &quot;ParseException: Unknown WKB type 0&quot;<br>
&gt;&gt;<br>
&gt;&gt; Are you certain that WKB fragment is good?<br>
&gt;&gt;<br>
&gt;&gt; Paul<br>
&gt;&gt;<br>
&gt;&gt; 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;&gt; &gt; Hello,<br>
&gt;&gt; &gt; I have found that when using BufferOp on a specific polygon, GEOS<br>
&gt;&gt; &gt; crashes<br>
&gt;&gt; &gt; with an assertion failure. &nbsp;This failure appears to be within<br>
&gt;&gt; &gt; RightmostEdgeFinder, and I have documented it on a ticket<br>
&gt;&gt; &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;&gt; &gt; provided a .zip file that reproduces the error. The surprising this is<br>
&gt;&gt; &gt; that<br>
&gt;&gt; &gt; the geometry is not complicated at all!<br>
&gt;&gt; &gt; I have posted this problem in March<br>
&gt;&gt; &gt; (see<br>
&gt;&gt; &gt; <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;&gt; &gt; but didn&#39;t get a response thus far; hopefully posting here will help.<br>
&gt;&gt; &gt; &nbsp;Thanks in advance.<br>
&gt;&gt; &gt; Regards,<br>
&gt;&gt; &gt; Stephen<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; geos-devel mailing list<br>
&gt;&gt; &gt; <a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
&gt;&gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; geos-devel mailing list<br>
&gt;&gt; <a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
&gt;&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>
&gt;<br>
&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>
</div></div></blockquote></div><br></div></div>