On Wed, 2006-09-13 at 10:01 -0800, Amy Johnson wrote: > Adrian, > > At this point, I am just trying to understand how to use GeoTools.
Aren't we all? I'm very slowly working my way through the code building up a comprehensive set of docs but until they are mostly done they are mostly useless... > I was > trying to find a way around using styledMapPane, You presumably are aware that this is all older code so the snippets and tutorials you find for it will be things written long ago. The 2.2 release has a JMapPane that doesn't work as well but is based on the current system of (geo)referencing. The backend interface is, I believe, GT2Renderer. > and found an email > archive where Jody Garnett said to use StreamingRenderer and build a > user interface for it. I looked up StreamingRenderer in the JavaDocs, > and saw that it implements GTRenderer. GTRenderer has a code snippet, > and that snippet utilizes Envelope. It does not however, tell which > Envelope it is referring to, and since I get a compile error on that > snippet, I was just trying to sort out the appropriate import. The > specific line in the snippet is: > > Envelope mapArea = map.getAreaOfInterest(); > > I assumed map was supposed to be a RenderContext object, since it is not > stated in the JavaDoc for GTRenderer. At any rate, using the Envelope > you said was probably the best, I'm still getting a compile error and > will see if I can sort it out. Look in Java2D as well since that might be the envelope that's being batted around. Or send the list an email with (1) what you are really trying to get going (2) what code you have that doesn't work (3) any other relevant info and we'll probably have a better sense of what to recommend. cheers, adrian > > Best regards, > > Amy Johnson > > Adrian Custer wrote: > > Hello, > > > > There's a lot of different envelopes floating around so, depending on > > what you are trying to do, you'll need to use different ones. > > > > The current release of Geotools (2.2.0) uses mostly the JTS class: > > com.vividsolutions.jts.geom.Envelope > > which should work for all your 2D needs. > > > > The geoapi Envelope > > org.opengis.spatialschema.geometry.Envelope > > may be used in certain places in Geotools' referencing subsystem but it > > generally is not used. > > > > The Geotools GeneralEnvelope > > org.geotools.geometry.GeneralEnvelope > > is not, to my knowledge, used extensively yet. > > > > The issue is that we currently use JTS for most of the geometric > > operations but have built a fair amount of the structure to transition > > to a Geotools implementation or to a GeoAPI implementation. I suspect > > you probably can get away with using JTS classes only but if not, then > > please give us some more info about what you are trying to do. > > > > all the best, > > adrian > > > > On Sun, 2006-09-10 at 21:09 -0800, Amy Johnson wrote: > > > >> Hello: > >> > >> I'm trying to understand the differences between the classes Envelope > >> and GeneralEnvelope. Envelope appears to be deprecated but I'm not sure. > >> > >> Thanks, > >> > >> Amy > >> > >> ------------------------------------------------------------------------- > >> Using Tomcat but need to do more? Need to support web services, security? > >> Get stuff done quickly with pre-integrated technology to make your job > >> easier > >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >> _______________________________________________ > >> Geotools-gt2-users mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > >> > > > > > > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
