Adrian Custer a écrit :
> In trying to get a projected map for my QuickStart tutorial, I'd like to
> simply grab an existing object. By default the geotools
> DefaultMapContext is created with
> 
>   CoordinateReferenceSystem crs = DefaultGeographicCRS.WGS84;
> 
> I'd like to change that with 
> 
>   myMapCtxt.crs = DefaultProjectedCRS.MERCATOR;
> 
> but that kind of thing doesn't exist yet. 
> 
> It occurs to me that what I really want is a method
>   getMercatorCRS(DefaultGeographicCRS.WGS84) 
> since a projected mercator crs needs a base CRS of some kind. Is there
> such a method hidden somewhere? Would such a method make sense?

There is nothing like a MERCATOR constant or a getMercatorCRS(...) convenience 
method at this time. 
This kind of thing could be added. The method arguments would be not only the 
base CRS, but also the 
various projection parameters like false northing (so a side-effect would be 
type safety compared to 
invoking ParameterGroup.parameter("falseNorthing").setValue(...)). However, we 
would need one method 
for every kind of coordinate operation method, since the arguments are specific 
to them. We may have 
many tens of such methods, and the list is extensible. To we want a Java method 
for each coordinate 
operation method, or only an arbitrary subset of them, or do we just avoid to 
follow such path?

        Martin.

-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to