<div dir="ltr">Hey, <div style>I am facing some very silly problems when i try to compile QuadEdgeSubdivision.cpp.</div><div style>I have declared my getVoronoiCellPolygons as :</div><div>void</div><div style>QuadEdgeSubdivision::getVoronoiCellPolygons(std::vector<geom::Geometry *> &cells ,const geom::GeometryFactory& geomFact)</div>
<div style>{</div><div style>.....</div><div style>.....</div><div style>}</div><div style><br></div><div style>And I have definition it in QuadEdgeSubdiviion.h as:</div><div style><br></div><div style>void getVoronoiCellPolygons( std::vector<geom::Geometry *> &cells , const geom::GeomtryFactory &geomFact);</div>
<div style><br></div><div style>And i am getting the following compilation error:</div><div>In file included from QuadEdgeSubdivision.cpp:18:</div><div>../../../include/geos/triangulate/quadedge/QuadEdgeSubdivision.h:425: error: expected unqualified-id before ‘&’ token</div>
<div>../../../include/geos/triangulate/quadedge/QuadEdgeSubdivision.h:425: error: expected ‘)’ before ‘&’ token</div><div>../../../include/geos/triangulate/quadedge/QuadEdgeSubdivision.h:425: error: expected ‘;’ before ‘&’ token</div>
<div style><br></div><div style>Similar error is shown getVoronoiCellPolygon method:</div><div style>getVoronoiCellPolygon.cpp:</div><div style><br></div><div style>geos::geom::Polygon* </div><div style>QuadEdgeSubdivision::getVoronoiCellPolygon(QuadEdge* qe ,const geom::GeomtryFactory& geomFact)<br>
</div><div style>{</div><div style>...........</div><div style>...........</div><div style>...........</div><div style>}</div><div style><br></div><div style>getVoronoiCellPolygon.h</div><div style><br></div><div style>geos::geom::Polygon* getVoronoiCellPolygon(QuadEdge* qe ,const geom::GeomtryFactory& geomFact);<br>
</div><div style><br></div><div style><div>../../../include/geos/triangulate/quadedge/QuadEdgeSubdivision.h:442: error: expected unqualified-id before ‘&’ token</div><div>../../../include/geos/triangulate/quadedge/QuadEdgeSubdivision.h:442: error: expected ‘)’ before ‘&’ token</div>
<div>../../../include/geos/triangulate/quadedge/QuadEdgeSubdivision.h:442: error: expected ‘;’ before ‘&’ token</div><div><br></div><div style>I have quantified it using the "::" operator and specified to which class the methods belong to. Please help me out with this.</div>
<div style><br></div><div style>--Vishal</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 19 June 2013 18:36, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Jun 19, 2013 at 06:09:31PM +0530, vishal tiwari wrote:<br>
> Hey strk,<br>
><br>
> I was porting some methods in QuadEdgeSubdivision class, and saw some<br>
> methods like, geom::Triangle::circumcentre()<br>
> ,geom::CoordinateList::closeRing(), not there, which are required, so<br>
> should i port them, or expand the functions in QuadEdgeSubdivision class<br>
> itself?<br>
<br>
</div>You should port them to the respective classes (Triangle, CoordinateList).<br>
<div class="im"><br>
> I see one unit test case for VoronoiDiagram in JTS, so i will be building<br>
> some of my own. :)<br>
<br>
</div>Thanks! Consider also adding testcases for the new methods in Triangle<br>
and CoordinateList. The more tests we have, the better :)<br>
<br>
--strk;<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><br clear="all"><div><br></div>-- <br><div dir="ltr">Vishal Tiwari<div>Undergraduate</div><div>Computer Science and Engineering</div><div>Lab for Spatial Informatics</div><div>IIIT-Hyderabad</div></div>

</div>