[geos-devel] Swig Update and questions
Charlie Savage
cfis at savagexi.com
Sat Jun 24 20:30:59 EDT 2006
>
> It's not silly if it makes the SWIG bindings easier to maintain.
Agreed. Except the gdal bindings are harder to maintain in some ways
due to the duplication of code.
Anyway, the difference in this case is that the GDAL object model is not
as rich as in GEOS. GDAL just exposes "geometry" as opposed to point,
line, etc.
I think this boils down to three major decisions about the SWIG bindings
that need to be agreed on:
1. What geometry model do clients work with? Just geometry or geometry,
point, line, etc.
2. What compatibility benefits does the C api provide beyond the
benefits of the generated swig bindings?
3. How much of GEOS's api gets exposed to clients?
For what its worth, my opinion is:
1. Clients have to know about point, line, etc. even in the C-API
because some methods are not valid for some geometries. So just show it
to the clients, don't hide it. Plus, in object oriented languages like
Python/Ruby it makes more sense.
2. I don't see any.
3. This is an important one because you don't want clients using APIs
that we know will change in the future. SWIG provides mechanisms to
exclude classes and methods, but then you're somewhat duplicating the
work the C API has already done to provide a limited API.
Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/geos-devel/attachments/20060624/c78a1213/smime.bin
More information about the geos-devel
mailing list