Hi dears,
I've been looking at geotools for almost two weeks and after a bit of effort
I've been able to produce some simple maps following the examples. But I'm
too far from my original objective of writing a little utm renderer. I would
be really grateful if anyone can tell me what steps are necessary to render
a few polygons (10km2 filled squares) based on utm coordinates (zone, x, y)
on an image. I guess the code would include these steps:
- Obtaining a crs.
- Creating the coordinates of the polygon.
- Building it.
- Adding the polygon to a feature.
- Adding all the features to a layer.
- Creating an envelope.
- Adding the layer to a mapcontext.
- Rendering it with a StreamRenderer.
Unfortunately at the present moment I'm only able to draw a single square
using lat/lon coordinates and it's becoming a bit frustrating. I promise to
add the resulting project to the wiki with a little tutorial attached.
As I said, thanks in advance.
jv
--
=======================================================
Javier Moreno
www.imaginafoto.com
=======================================================
--
=======================================================
Javier Moreno
www.imaginafoto.com
=======================================================
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users