## geotools-gt2-users

 RE: [Geotools-gt2-users] Draw line and circle From: Ian Turton - 2005-01-20 16:03:05 ```If you want a point represented by a circle then you need to use a = circle Mark to style the point, there should be examples of this around. Ian ```
 Re: [Geotools-gt2-users] Draw line and circle From: Carlo Camusso - 2005-01-20 16:13:48 ```> If you want a point represented by a circle then > you need to use a circle Mark to style the point, > there should be examples of this around. I want put a point in my citty map. The point is my GPS location (latitudine, longitudine). How I can put and draw a generic point with GeoTools? Regords, Carlo ```
 Re: [Geotools-gt2-users] Draw line and circle From: Rueben Schulz - 2005-01-22 06:59:13 ```On Thu, 2005-20-01 at 17:13 +0100, Carlo Camusso wrote: > > If you want a point represented by a circle then > > you need to use a circle Mark to style the point, > > there should be examples of this around. > > I want put a point in my citty map. > The point is my GPS location (latitudine, longitudine). > > How I can put and draw a generic point with GeoTools? For information on how to draw a point with geotools, see the tutorials on: http://docs.codehaus.org/display/GEOTOOLS/Tutorials You will likely be interested in the "map and style" tutorial and likely the "feature" and "datastore" tutorial. The steps that you are likely to need are: 1) Read gps data 2) Create features for your points, with each feature having a point geometry (or one feature with a multipoint geometry) 3) create a point style that makes a big dot (if you want a circle) 4) create a map and render your point features with your style Alternately you could probably use the lower level renderer methods to draw the geometries on your map. Also you could create multi-sided roundish polygons to approximate your circle and then render them (as Andrea suggested). Geotools does not yet have a datastore for gps data (see http://jira.codehaus.org/browse/GEOT-104), but if we did you could use it to read your gps data as features and reduce steps 1 and 2 to one step. Rueben > > Regords, > Carlo > ```