[geos-devel] packages -> namespaces

strk at refractions.net strk at refractions.net
Tue Oct 12 12:27:50 EDT 2004


Working on the new Polygonize and LineMerger classes
I hitted an old problem with the GEOS port.

GEOS has a single namespace (geos).
JTS has a hierarchy of namespaces (packages?).

So - for example - JTS has:
	- ...jts.planargraph.PlanarGraph
	- ...jts.geomgraph.PlanarGraph

In GEOS this has been ported as:
	- geos::planarPlanarGraph
	- geos::PlanarGraph

.. which I find *very* confusing ..

What about using a hierarchy of namespaces in GEOS too ?

Please consider I'm not either a Java or a C++ guru, so if
you find this to be a stupid question don't try to understand
the guruness beyond it :p

--strk;



More information about the geos-devel mailing list