So how are you doing? Your initial query was a bit too broad to get
much of an answer. Try letting people know where you got to and work
with specific questions.
You will find some of the assumptions in your list are wrong; creating
a polygon is just a shape (and knows nothing about the CRS which would
make it a shape on the world). Try the first couple rounds of
documentation and come back with questions; you will also find the
tests cases a very source of working code.
The following example should cover the data side of things:
- CSV 2 SHP Lab
As the others you have things a little backwards - you don't add
features to a layer; you create a layer using features and a style.
Jody
On 19/08/2009, at 9:11 PM, jv wrote:
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
------------------------------------------------------------------------------
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