Alex Trofast | 6 Jan 2010 17:27

Patch to expose more methods in the CAPI

Greetings GEOS-devel

I've attached a patch that exposes these C++ class methods as CAPI 
functions:

LineString::getPointN -> GEOSGetPointN
LineString::getStartPoint -> GEOSGetStartPoint
LineString::getEndPoint -> GEOSGetEndPoint
LineString::isClosed -> GEOSisClosed
LineString::getLength -> GEOSGetLength
LineString::getNumPoints -> GEOSGetNumPoints
Point::getX -> GEOSGetX
Point::getY -> GEOSGetY

Additionally I wrote a small test case for the new functions. Any 
feedback is greatly appreciated.
Thank you,

Alex Trofast
Software Engineer
Ingres
Index: tests/unit/Makefile.am
===================================================================
--- tests/unit/Makefile.am	(revision 2835)
+++ tests/unit/Makefile.am	(working copy)
 <at>  <at>  -90,7 +90,8  <at>  <at> 
 	capi/GEOSSimplifyTest.cpp \
 	capi/GEOSPreparedGeometryTest.cpp \
(Continue reading)

Mateusz Loskot | 6 Jan 2010 17:39
Gravatar

Re: Patch to expose more methods in the CAPI

Alex Trofast wrote:
> Greetings GEOS-devel
> 
> I've attached a patch that exposes these C++ class methods as CAPI 
> functions:
> 

It's a good idea to submit patches to the Trac

http://trac.osgeo.org/geos/

by creating new ticket following instruction in
"Bug Reporting" section.

Best regards,
--

-- 
Mateusz Loskot, http://mateusz.loskot.net
Alex Trofast | 6 Jan 2010 17:41

Re: Patch to expose more methods in the CAPI

Good idea Mateusz, thank you.

I opened the following ticket:
http://trac.osgeo.org/geos/ticket/314

Thanks!

Alex

On 01/06/2010 11:39 AM, Mateusz Loskot wrote:
> Alex Trofast wrote:
>> Greetings GEOS-devel
>>
>> I've attached a patch that exposes these C++ class methods as CAPI 
>> functions:
>>
>
> It's a good idea to submit patches to the Trac
>
> http://trac.osgeo.org/geos/
>
> by creating new ticket following instruction in
> "Bug Reporting" section.
>
> Best regards,
Chuck Thibert | 6 Jan 2010 18:52

Re: Patch to expose more methods in the CAPI

Alex and I work together at Ingres, so I'll more than happily take on
the commit 'responsibility' of this patch when it's vetted.

Chuck

On 01/06/2010 11:41 AM, Alex Trofast wrote:
> Good idea Mateusz, thank you.
>
> I opened the following ticket:
> http://trac.osgeo.org/geos/ticket/314
>
> Thanks!
>
> Alex
>
> On 01/06/2010 11:39 AM, Mateusz Loskot wrote:
>> Alex Trofast wrote:
>>> Greetings GEOS-devel
>>>
>>> I've attached a patch that exposes these C++ class methods as CAPI
>>> functions:
>>>
>>
>> It's a good idea to submit patches to the Trac
>>
>> http://trac.osgeo.org/geos/
>>
>> by creating new ticket following instruction in
>> "Bug Reporting" section.
>>
(Continue reading)

Barend Gehrels | 7 Jan 2010 14:40
Picon
Favicon

library benchmarks in benchmarks

Hi,

We have developed benchmarks to test performance (and functionality) of (Open Source) GIS / Geometry libraries.

Originally the tests were created to compare our library (GGL, recently accepted by Boost and renamed to Boost.Geometry) to other libraries, with respect to performance and functionality.

However, the test suite is broader than that because it can also be used to compare for example GEOS and CGAL. Therefore we propose to move it to the SVN http://svn.osgeo.org/osgeo/foss4g/benchmarking, it seems to fit there perfectly.

It currently compares C++ libraries (geos, cgal, gpc, wykobi, gtl, terralib, ggl) and a Java library (jts), for the functions area, centroid, convex hull, intersection, clip (=intersection with rectangle), simplify, within. But this can be extended.

There is also a specific test, "starcomb", for more 'challenging' intersections (done with a selection of the mentioned libraries only), and "triangle" (intersecting polygons with 1000ths of triangular holes)

I like to hear opinions if this is found a good idea, and if there are possibly people interested in extending tests, performing tests and/or maintenance.

Regards, Barend Gehrels


P.S. The testsuite is discussed on the geos-devel list before so I include this in the cc, apologies for cross postings.
_______________________________________________
geos-devel mailing list
geos-devel <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel
Mateusz Loskot | 7 Jan 2010 20:14
Gravatar

Re: [Benchmarking] library benchmarks in benchmarks

Barend Gehrels pisze:
> We have developed benchmarks to test performance (and functionality) of 
> (Open Source) GIS / Geometry libraries.
> 
> Originally the tests were created to compare our library (GGL, recently 
> accepted by Boost and renamed to Boost.Geometry) to other libraries, 
> with respect to performance and functionality.
> 
> However, the test suite is broader than that because it can also be used 
> to compare for example GEOS and CGAL. Therefore we propose to move it to 
> the SVN http://svn.osgeo.org/osgeo/foss4g/benchmarking 
> it seems to fit there perfectly.

Folks,

By the way, if OSGeo supports the idea of hosting, let's call it,
FOSS geometry libraries benchmark, I would like to take care of
submitting it to the benchmarks module in the SVN
and of further maintenance.

Best regards,
--

-- 
Mateusz Loskot
http://mateusz.loskot.net
Mateusz Loskot | 9 Jan 2010 01:27
Gravatar

[#315] Separate include directory from source

Folks,

My I receive a feedback on this?

Best regards,
--

-- 
Mateusz Loskot
http://mateusz.loskot.net
Mateusz Loskot | 9 Jan 2010 01:31
Gravatar

Re: [#315] Separate include directory from source

Mateusz Loskot wrote:
> Folks,
>
> My I receive a feedback on this?

http://trac.osgeo.org/geos/ticket/315

Best regards,
--

-- 
Mateusz Loskot
http://mateusz.loskot.net
GEOS | 9 Jan 2010 18:25
Favicon

Re: [GEOS] #224: Need to compile the libGeos using Sun Studio12 on Solaris10

#224: Need to compile the libGeos using Sun Studio12 on Solaris10
-------------------------+--------------------------------------------------
 Reporter:  satyajitt    |        Owner:  geos-devel <at> lists.osgeo.org
     Type:  enhancement  |       Status:  new                       
 Priority:  blocker      |    Milestone:  3.3.0                     
Component:  Core         |      Version:  svn-trunk                 
 Severity:  Significant  |   Resolution:                            
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by mloskot):

  * owner:  nobody => geos-devel <at> lists.osgeo.org

-- 
Ticket URL: <http://trac.osgeo.org/geos/ticket/224#comment:19>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
_______________________________________________
geos-devel mailing list
geos-devel <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel
GEOS | 9 Jan 2010 18:27
Favicon

Re: [GEOS] #177: example.rb uses c++ api methods

#177: example.rb uses c++ api methods
------------------------+---------------------------------------------------
 Reporter:  aschall     |        Owner:  geos-devel <at> lists.osgeo.org
     Type:  defect      |       Status:  new                       
 Priority:  minor       |    Milestone:  3.3.0                     
Component:  SWIG Ruby   |      Version:  3.0.0                     
 Severity:  Unassigned  |   Resolution:                            
 Keywords:              |  
------------------------+---------------------------------------------------
Changes (by mloskot):

  * owner:  csavage => geos-devel <at> lists.osgeo.org

Comment:

 It's been long time without any action on this. I'm assigning it to nobody
 and suggest to close as wontfix.

-- 
Ticket URL: <http://trac.osgeo.org/geos/ticket/177#comment:6>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
_______________________________________________
geos-devel mailing list
geos-devel <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel

Gmane