Good old Adrian always taking notes :-P Adrian, you and Martin are both of course correct. But we still should see if we can do something; if it is dependent on a server's configuration then perhaps our client code that talks to that server is the best place to have this ... at the very least it *is* part of generating GML and something we need to take responsibility for (or obviously tell the user to take responsibility for).
Suppose I best come back when I have a useful suggestion - some of the code I have seen to hack around this problem scares me after all. Jody > A certain Jody Garnett once said to me, > > SRS can be anything depending on the particular server's > configuration... Has the semantics of SRS become better defined? > > ---adrian > > > On Mon, 2006-11-27 at 08:26 -0800, Jody Garnett wrote: > >> I have been hanging out a bit more with real users and have noticed a >> large gap that keeps occuring - between interaction without GeoTools and >> the outside world. >> >> We really need a helper method to allow users to go between SRS and >> CoordinateReferneceSystem - I got this in a code example today: >> >>> tx.setSrsName((String)fc.features().next().getDefaultGeometry().getUserData()); >>> >> I suspect the correct replacement is here: >> >> tx.setSrsName(ft.getDefaultGeometry().getAuthority().getIdentifier().toString() >> ); >> >> But really we need some additional methods for the CRS facade - so users >> stop guessing: >> >> String CRS.encodeSRS( CoordinateReferneceSystem crs ); >> String CRS.decodeSRS( String srs ); >> >> Cheers, >> Jody >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Geotools-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geotools-devel >> > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
