Hi >>>I found the method setAreaOfInterest at the mapContext, but this >>>requires an envelope. >>>Not only that I'm not really sure of what an envelope is, I also don't >>>know how to change the area to be displayed at the envelope. There are >>>no such things as setter methods or similar. >>>Is the envelope like a folder, that contains all the layers of a map?
>>>If yes, how do I tell the folder to only grab my AreaOfInterest? > > >> >>'envelope' basically means rectangle - an envelope is constructed from >>two coordinates, representing diagonally opposite corners of the >>rectangle. > >so an envelope is nothing more than a rectangle? >From the javadoc for Envelope (see http://www.vividsolutions.com/jts/javadoc/index.html): "Defines a rectangular region of the 2D coordinate plane. It is often used to represent the bounding box of a Geometry, e.g. the minimum and maximum x and y values of the Coordinates." >the preferred area >could be set using a Rectangle2D typecasted to an envelope? Don't think that's going to work because Recangle2D is not a subclass of Envelope, you'll get a class cast exception... By the way, have you looked at the pan/zoom example at http://www.geotools.org/display/GEOTOOLS/How+to+render+a+shape+file,+sty le+with+SLD,+zoom,+pan+--+jdk+1.5+geotools+2.1.M4 All the best with your geotools work, Colin This message is intended for the addressee(s) only and should not be read, copied or disclosed to anyone else outwith the University without the permission of the sender. It is your responsibility to ensure that this message and any attachments are scanned for viruses or other defects. Napier University does not accept liability for any loss or damage which may result from this email or any attachment, or for errors or omissions arising after it was sent. Email is not a secure medium. Email entering the University's system is subject to routine monitoring and filtering by the University. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
