You found the "ISO Geometry" interfaces and module. WKT is associated with the "Simple Feature for SQL" specification and we use JTS Geometry objects for that.
The docs for JTS in the user guide are here: - http://docs.codehaus.org/display/GEOTDOC/03+JTS+Topology+Suite I added the example you were looking for: > GeometryFactory geometryFactory = new GeometryFactory(); > > WKTReader reader = new WKTReader( geometryFactory ); > Point point = null; > try { > point = (Point) reader.read("POINT (1 1)"); > } catch (ParseException e) { > } > System.out.println( point ); The factories you found do exist on trunk, and are available in the unsupported/geometry module. Cheers, Jody Ruben Pardo wrote: > Hi everybody, > I need to create Geometries from WKT String format and from WKT String > to Geometry > I read, > http://docs.codehaus.org/display/GEOTDOC/Creating+an+ISO+Geometry+from+WKT > <http://docs.codehaus.org/display/GEOTDOC/Creating+an+ISO+Geometry+from+WKT> > > I have problem to find an implementation for this Factories > GeometryFactory geometryFactory = new GeometryFactoryImpl( crs ); > PositionFactory positionFactory = > new PositionFactoryImpl(crs); > CoordinateFactory coordinateFactory = new CoordinateFactoryImpl(...); > PrimitiveFactory primitiveFactory = > new PrimitiveFactoryImpl(...); > ComplexFactory complexFactory = new ComplexFactoryImpl(...); > AggregateFactory aggregtateFactory = new AggregateFactoryImpl(...); > > > ¿is this factories included in the distro of geotools? ¿is this > funcionality now supported? > > > From com.vividsolutions.jts.geom.Geometry i can generate a WKT String > representation with toText method, but > the WKTParser returns an org.opengis.geometry.Geometry, > how can i generate a WKT String from org.opengis.geometry.Geometry? > > thanks a lot in advance. > > Rubén Pardo. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
