A geometry is a shape; to make it represent something you need to turn it in to 
a "Feature" (think a "feature" of the landscape).
Have a look at the initial geotools tutorials; there is one there that walks 
through parsing a CSV file and turning it into features (the example saves the 
features out; but you could just as easily show them on the screen).

Jody

On 29/04/2010, at 2:28 AM, Amador Antonio Cuenca wrote:

> Hi, I'm new in GeoTools and I want to add an simple geometry ( point, circle, 
> polyline, and so on) using JTS to a JMapFrame, but I don't know how to do it.
>  
> This is my draw method:
>  
>     GeometryFactory gf = JTSFactoryFinder.getGeometryFactory(null);
>  
>     private Geometry crearPunto(int x, int y){
>         Coordinate c = new Coordinate(x, y);
>         return gf.createPoint(c);
>     }
>  
> I Really Apreciate if someone could help me.
> 
> -- 
> TSU. Amador Cuenca
> ------------------------------------------------------------------------------
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel


------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to