joanne matthews (RRes-Roth) wrote:
Can anyone explain how I build the geos bindings for python 2.5 on
windows. I have no experience with c and just enough swig to get me by,
so I'm following the readme instructions in the swig/python directory.
This is what Ive done so far:
Cd C:\geos-2.2.1\swig\python
swig -c++ -python -modern -o geos_wrap.cxx ../geos.i
Here's the error message:
..\..\source\headers\geos\geom.h(622): Warning(509): Overloaded
add(geos::Coord
nateSequence const *,bool,bool) is shadowed by
add(geos::CoordinateSequence *,b
ol,bool) at ..\..\source\headers\geos\geom.h:612.
..\..\source\headers\geos\geom.h(671): Warning(509): Overloaded
geos::Coordinat
Sequence::hasRepeatedPoints(geos::CoordinateSequence const *) is
shadowed by ha
RepeatedPoints() const at ..\..\source\headers\geos\geom.h:658.
..\..\source\headers\geos\geom.h(684): Warning(509): Overloaded
geos::Coordinat
Sequence::minCoordinate(geos::CoordinateSequence *) is shadowed by
minCoordinat
() const at ..\..\source\headers\geos\geom.h:661.
..\..\source\headers\geos\geom.h(2354): Warning(509): Overloaded
createPoint(ge
s::CoordinateSequence const &) const is shadowed by
createPoint(geos::Coordinat
Sequence *) const at ..\..\source\headers\geos\geom.h:2351.
..\..\source\headers\geos\geom.h(2363): Warning(509): Overloaded
createGeometry
ollection(vector<geos::Geometry * > const &) const is shadowed by
createGeometr
Collection(vector<geos::Geometry * > *) const at
..\..\source\headers\geos\geom
h:2360.
..\..\source\headers\geos\geom.h(2372): Warning(509): Overloaded
createMultiLin
String(vector<geos::Geometry * > const &) const is shadowed by
createMultiLineS
ring(vector<geos::Geometry * > *) const at
..\..\source\headers\geos\geom.h:236
.
..\..\source\headers\geos\geom.h(2381): Warning(509): Overloaded
createMultiPol
gon(vector<geos::Geometry * > const &) const is shadowed by
createMultiPolygon(
ector<geos::Geometry * > *) const at
..\..\source\headers\geos\geom.h:2378.
..\..\source\headers\geos\geom.h(2390): Warning(509): Overloaded
createLinearRi
g(geos::CoordinateSequence const &) const is shadowed by
createLinearRing(geos:
CoordinateSequence *) const at ..\..\source\headers\geos\geom.h:2387.
..\..\source\headers\geos\geom.h(2399): Warning(509): Overloaded
createMultiPoi
t(vector<geos::Geometry * > const &) const is shadowed by
createMultiPoint(vect
r<geos::Geometry * > *) const at ..\..\source\headers\geos\geom.h:2396.
..\..\source\headers\geos\geom.h(2411): Warning(509): Overloaded
createPolygon(
eos::LinearRing const &,vector<geos::Geometry * > const &) const is
shadowed by
createPolygon(geos::LinearRing *,vector<geos::Geometry * > *) const at
..\..\so
rce\headers\geos\geom.h:2408.
..\..\source\headers\geos\geom.h(2420): Warning(509): Overloaded
createLineStri
g(geos::CoordinateSequence const &) const is shadowed by
createLineString(geos:
CoordinateSequence *) const at ..\..\source\headers\geos\geom.h:2417.
..\..\source\headers\geos\geom.h(2426): Warning(509): Overloaded
buildGeometry(
ector<geos::Geometry * > const &) const is shadowed by
buildGeometry(vector<geo
::Geometry * > *) const at ..\..\source\headers\geos\geom.h:2423.
Any advice appreciated.
_______________________________________________
geos-devel mailing list
geos-devel@geos.refractions.net
http://geos.refractions.net/mailman/listinfo/geos-devel
Joanne,
The best supported GEOS-based Python geometry package is PCL's
cartography.geometry. It depends only on the GEOS C API, not on SWIG,
and has been successfully built and used on Windows as well as Linux.
The API is demonstrated in the PCL tests:
http://trac.gispython.org/projects/PCL/browser/PCL/tags/rel-0.11.0/PCL-Core/tests/Geometry.txt
http://trac.gispython.org/projects/PCL/browser/PCL/tags/rel-0.11.0/PCL-Core/tests/testpygeom.py
and my motivations for switching from the GEOS SWIG bindings (which I
originally wrote) to a new module are explained at
http://zcologia.com/news/150.
PCL version 0.11 is available from
http://gispython.org/downloads/gispy/
Have you yet successfully built the GEOS C DLL on Windows? If so,
building the PCL core should be a breeze, and I will be happy to help.
Cheers,
Sean
--
Sean Gillies
http://zcologia.com/news
_______________________________________________
geos-devel mailing list
geos-devel@geos.refractions.net
http://geos.refractions.net/mailman/listinfo/geos-devel