From: Teodor B. <tb...@gm...> - 2007-03-12 13:34:55
|
On Mon, 12 Mar 2007 15:18:54 +0200, Jeroen van Dijk <je...@se...> wrote: > Maybe, a silly question, but I still haven't solved my previous posted > problem. My problems start quite basic: How do I create a point > Geometry? > > I guess I'm missing some basic knowledge of the API, but the tutorials > do not help me here either. > Hi, Geotools is using for geometry operations the JTS API, developped by Vivid Solutions. You will have to familiarize yourself with this API first. As a start point you can check the following section from the GeoTools tutorials: http://geotools.codehaus.org/Working+with+JTS+Geometries+from+DataStores Best regards, Teodor > > -----Original Message----- > From: Ian Turton [mailto:ijt...@gm...] > Sent: Friday, March 09, 2007 10:10 PM > To: Jeroen van Dijk > Cc: geo...@li... > Subject: Re: [Geotools-gt2-users] GeometryFactory for a circle? > > On 3/9/07, Jeroen van Dijk <je...@se...> wrote: >> > >> >> I want select roads, from a shapefile, with a certain radius from a > point, >> thus lying in a circle. >> >> >> >> I found this link that shows how to select point with a polygon. >> >> http://www.nabble.com/filter-points-within-polygon-t2740648.html >> >> >> >> My only problem is now to create a Geometry that represents a circle. > Like >> in the post of > > What you really want is a DWithin filter which gives you everything > within a distance of a geometry (in your case a point). > > Ian -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ |