I would love to see a GeometryBuilder class. Using a geometry factory to
build up geometries is painful for building complex geometries like
polygons.
If could replace code like:
GeometryFactory gf = new GeometryFactory();
gf.createPolygon(
gf.createLineString(
new Coordinate[]{
new Coordinate(0,0), new Coordinate(1,1),
new Coordinate(2,2), new Coordinate(0,0)
}, null
)
);
With a chaining builder:
GeometryFactory gf = new GeometryFactory();
GeometryBuilder gb = new GeometryBuilder( gf );
gb.coordinate(0,0).coordinate(1,1).coordinate(2.2).coordinate(0.0)
.lineString().polygon();
I would be a happy camper :).
-Justin
Jody Garnett wrote:
> Hi Martin; your module (ie referencing) is universally accepted as the
> home of most things GeoAPI(ish). Some questions on what code goes where ...
>
> I would like to write the following:
> - GeometryBuilder - a utility class that helps you build Geometry (see
> ExpressionBuilder, FeatureTypeBuilder, FeatureBuilder for an example),
> would referencing be the correct home? Or should I place this into "main"?
> - GeometryConformanceTests - I would like to write some test support
> stuff that is against the pure GeoAPI Interfaces - would the test
> support module be the correct home?
>
> Andrea should new API go through the proposal process, or just new "user
> facing" API (such as GeometryBuilder above).
>
> Cheers,
> Jody
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
> !DSPAM:1004,45d632d8223631410093335!
>
--
Justin Deoliveira
[EMAIL PROTECTED]
The Open Planning Project
http://topp.openplans.org
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel