Hi Michael,

I created DefaultMapContext with provided Geographic WGS84 CRS because 
i don't have information about coordinate system in my feature source.
Is that mean that distance unit will be in degrees?

Maybe i am misunderstanding something but for example on some map scale 
getScaleX() returns 6186.620896800171 and getScaleY() returns
-6186.620896800171. 
How could those values correspond to (Lat,Lon) degrees?

Best regards.


mbedward wrote:
> 
>> So for example if getScaleX() returns 100 what that means,
>> 100 mm per pixel, 100 inches per pixel or 100 m per pixel?
> 
> It could be any of those :-)  The distance unit used will be the one
> defined in the coordinate reference system of your shapefile or other
> feature source. For example, a UTM data set will be in metres while a
> WGS84 data set is in degrees.
> 
> You can query the unit of measurement used by a feature type with:
> Unit<?> unit =
> featureType.getCoordinateReferenceSystem().getCoordinateSystem().getAxis(0),getUnit();
> String unitName = unit.toString();
> 
> Hope that helps,
> 
> Michael
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register
> now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/JMapPane-getWorldToScreenTransform-getScaleX-tp3711592p3712349.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
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