<div dir="ltr">sorry didn't read your first comment before.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 July 2013 02:17, 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 Thu, Jul 11, 2013 at 01:45:51AM +0530, vishal tiwari wrote:<br>
> I am referring ParseException: Expected number but encoundered ','''. This<br>
> error comes when i run my test case.<br>
<br>
</div>Your testcase is using an invalid WKT, so the error is correct.<br>
Please fully read my first reply. --strk;<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> My second problem i as:<br>
> - mytest.cpp:(.text+0xf): undefined reference to<br>
> > > > `geos::io::WKTReader::WKTReader()'<br>
><br>
> This error comes when i try to use any geos header files, in some other<br>
> program.<br>
><br>
><br>
><br>
> On 11 July 2013 01:38, Sandro Santilli <<a href="mailto:strk@keybit.net">strk@keybit.net</a>> wrote:<br>
><br>
> > On Thu, Jul 11, 2013 at 01:35:28AM +0530, vishal tiwari wrote:<br>
> > > I have already added VoronoiTest.cpp in tests/unit/Makefile.am , and run<br>
> > > autogen and configure. Still i am facing the same problem.<br>
> ><br>
> > The problem you reported was:<br>
> ><br>
> > > > > - mytest.cpp:(.text+0xf): undefined reference to<br>
> > > > > `geos::io::WKTReader::WKTReader()'<br>
> ><br>
> > Which doesn't seem like coming from a `make geos_unit`.<br>
> ><br>
> > Or are you referring to:<br>
> ><br>
> > > "ParseException: Expected number but encountered ','"<br>
> ><br>
> > --strk;<br>
> ><br>
> > ><br>
> > ><br>
> > > On 11 July 2013 01:30, Sandro Santilli <<a href="mailto:strk@keybit.net">strk@keybit.net</a>> wrote:<br>
> > ><br>
> > > > On Thu, Jul 11, 2013 at 12:59:05AM +0530, vishal tiwari wrote:<br>
> > > > > I was making test case for VoronoiDiagramBuilder [1] , but got this<br>
> > > > > following exception:<br>
> > > > >    group: geos::triangulate::Voronoi, test: test<1><br>
> > > > >    problem: unexpected exception<br>
> > > > >    exception typeid: N4geos2io14ParseExceptionE<br>
> > > > >    message: "ParseException: Expected number but encountered ','"<br>
> > > > ><br>
> > > > > Is it not able to parse the string data that i have passed? Or the<br>
> > error<br>
> > > > in<br>
> > > > > the implementation of VoronoiDiagram? If its not in the<br>
> > VoronoiDiagram<br>
> > > > > code, then how do i fix it?<br>
> > > > > [1]<br>
> > > > ><br>
> > > ><br>
> > <a href="https://github.com/vishaltiwari/libgeos/blob/svn-trunk/tests/unit/triangulate/VoronoiTest.cpp" target="_blank">https://github.com/vishaltiwari/libgeos/blob/svn-trunk/tests/unit/triangulate/VoronoiTest.cpp</a><br>

> > > ><br>
> > > > It is unable to parse the string data you have passed.<br>
> > > > Indeed you're using a comma between X and Y ordinate values of each<br>
> > point<br>
> > > > in the MULTIPOINT geometry.<br>
> > > ><br>
> > > > > Also, i was trying to use the C++ wrapper, directly in order to test<br>
> > my<br>
> > > > > code, in some "file.cpp", and after including the necessary header<br>
> > > > files, i<br>
> > > > > am getting errors like:<br>
> > > > ><br>
> > > > > - mytest.cpp:(.text+0xf): undefined reference to<br>
> > > > > `geos::io::WKTReader::WKTReader()'<br>
> > > > ><br>
> > > > > - mytest.cpp:(.text+0x58): undefined reference to<br>
> > > > > `geos::io::WKTReader::read(std::basic_string<char,<br>
> > > > std::char_traits<char>,<br>
> > > > > std::allocator<char> > const&)'<br>
> > > > ><br>
> > > > > I think this might be some linkage problem or something like that.<br>
> > How<br>
> > > > do i<br>
> > > > > directly use the header files that are defined.<br>
> > > ><br>
> > > > You need to add "VoronoiTest.cpp" to tests/unit/Makefile.am<br>
> > > > then run ./autogen.sh from the top-level dir and ./configure again.<br>
> > > > Then you build with:<br>
> > > ><br>
> > > >   cd tests/unit<br>
> > > >   make geos_unit<br>
> > > ><br>
> > > > --strk;<br>
> > > ><br>
> > ><br>
> > ><br>
> > ><br>
> > > --<br>
> > > Vishal Tiwari<br>
> > > Undergraduate<br>
> > > Computer Science and Engineering<br>
> > > Lab for Spatial Informatics<br>
> > > IIIT-Hyderabad<br>
> ><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>
> ><br>
> ><br>
> > --<br>
> ><br>
> >  <a href="http://www.cartodb.com" target="_blank">http://www.cartodb.com</a> - Map, analyze and build applications with your<br>
> > data<br>
> ><br>
> >                                        ~~ <a href="http://strk.keybit.net" target="_blank">http://strk.keybit.net</a><br>
> ><br>
> ><br>
><br>
><br>
> --<br>
> Vishal Tiwari<br>
> Undergraduate<br>
> Computer Science and Engineering<br>
> Lab for Spatial Informatics<br>
> IIIT-Hyderabad<br>
<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>
<br>
<br>
--<br>
<br>
 <a href="http://www.cartodb.com" target="_blank">http://www.cartodb.com</a> - Map, analyze and build applications with your data<br>
<br>
                                       ~~ <a href="http://strk.keybit.net" target="_blank">http://strk.keybit.net</a><br>
<br>
</div></div></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>