Hi Nenad,

I'd need to have a look at your code. Normally (and I hope someone
will correct me if I'm wrong here) when you set a CRS for your map
context that determines the units that will be used for the bounds.

Shortly we will have a new example page on the web site that talks about this:

http://geotools.org/examples/crslab.html

(if it's not there when you look, check back again soon)

As of the last few days in the 2.6-SNAPSHOT, if you don't set a CRS
for your map context it will try to get one from the first layer that
you add that does have a CRS.

Of course, if you have a shapefile without a CRS (no .prj file) then
you can usually guess what the distance units are by visual
inspection. If they look like meters, and that is what you want, then
you shouldn't set WGS 84 as the projection for your context because
you will force it back to degrees.

I'm not sure that I've explained that very well !  Hope it makes sense.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to