Hi geotools2 developers,
I my haste to actually try using this software, I spent some time
working on the rendering facilities. Mostly on the hosting end of
things, that is, making sure transforms are dealt with properly, and
scrollpane blitting is activated. I got to the point where it was
performant and reliable enough that I duct-taped the geotools rendering
code to it, loaded a gml file, and it works. I have placed a gzipped tar
It's 903K, by the way, which includes all the relevant libraries to run
it (except the ever-present jai which you must put on your machine) and
Feel free to download this and dink around with it.
The package contains a run.sh script which should get you up and
running. The application host is as primitive as it can get, but it does
all the scaling, rotating, centering, etc. If you click, it will produce
a red dot containing the 'real world' coordinates.
The one big bug is if the image is rotated and you expand the window...
things get a little crazy. I'd love any advice.
The beautiful feature of this application is that there are no
intermediate Shape objects created during rendering. Instead a single
Shape delegate produces filtering PathIterator's to the Graphics2D
object. This process effectively defeats the annoying problems like
stroke scaling, rotational breakdown, etc.
I am currently ignoring CoordinateTransforms.
The rendering code is based upon that which I found in the
Java2DRendering package, but modified to accept my Shape delegate.
I also added an AcceptAllFilter because certain DataSources (cough, like
GMLDataSource) do not check for null filter's in their getFeatures()
Let me know what you think and feel free to ask questions.