From: Andrea A. <aa...@op...> - 2010-02-22 16:29:10
|
Michael Bedward wrote: > Just saw this on twitter (from several days ago)... > > "Using #geotools to simply transform projected coordinates to screen > coordinates feels like attacking mosquito's with an army of elephants" > http://twitter.com/miblon/status/9072695715 > > Out of interest, do other folk here have similar feelings ? ie. that > simple things are sometimes made difficult ? I agree GeoTools is difficult to use. For the specific part of reprojection I don't really get what's difficult though: CoordinateReferenceSystem crs1 = CRS.decode("EPSG:XXXX"); CoordinateReferenceSystem crs2 = CRS.decode("EPSG:YYYY"); MathTransform mt = CRS.findMathTransform(crs1, crs2, true); m.transform(...) I don't see how it can get any easier. (replace decode with parseWKT if you need to provide a custom made CRS) I also agree we'd need more examples Cheers Andrea |