From: Diego Fdez. <di...@go...> - 2008-01-17 23:20:26
|
Hi all: =20 I was trying to fix an example[1] but I'm lost in the dark. The example says: Geometry screenGeometry =3D geometry.transform( screenCRS, transform ); But I don't know how to get a Geometry, so I go to the Geometry section in the user manual[2] but: GeometryBuilder builder =3D new GeometryBuilder(DefaultGeographicCRS.WGS84); it doesn't work because org.geotools.geometry.GeometryBuilder package (I'm using 2.3) doesn't exist. And even if I get this working: how can I create the screenCRS? =20 I've look at the source code of RendererUtilities.worldToScreenTransform but it's not applicable to make a simple example. Please. I need help in A LOT of simple things. I will send then back to the list as _working_ code snippets so the user manual gets updated and other people can learn from my faults. Thanks! =20 P.S: IMHO the user manual has many "underexplained" examples. It's very hard to a newcomer to learn how to use GeoTools in deep. I know many of you life from supporting GeoTools by contract, but I also think that having a good documentation would make that a lot of people use the library and this will end in many more company programmers using GeoTools, programmers from companies that will pay you for support. :) [1] http://docs.codehaus.org/display/GEOTDOC/04+What+Axis+is+X [2] http://docs.codehaus.org/display/GEOTDOC/01+Building+Geometry +Objects On jue, 2008-01-17 at 18:56 +0000, Diego Fdez.Dur=C3=A1n wrote: > I'm going to try fixing the example after dinner. >=20 > On Thu, January 17, 2008 17:48, Jody Garnett wrote: > > I have updated that page with your code example: > > http://docs.codehaus.org/display/GEOTDOC/04+What+Axis+is+X > > > > Were you able to spot the error in the original instructions or should = I > > just remove them? > > >=20 >=20 --=20 Diego Fdez. Dur=C3=A1n <di...@go...> | http://www.goedi.net GPG : 925C 9A21 7A11 3B13 6E43 50DB F579 D119 90D2 66BB |