Andrea Aime a écrit : > Hum, wondering if I could avoid reporting them in the srs list. I don't > think we can do anything useful with them, Geoserver is dealing only > with 2d data so far. Is there a way to tell that a CRS is 3D by using > instanceof? Are these "compound" CRS?
Some are instance of CompoundCRS, but not all. It depends on the kind of vertical axis (ellipsoidal height is treated differently than geoidal height for example). The robust way to filter 2D CRS is as bellow: if (crs.getCoordinateSystem().getDimension() == 2) { // do some stuff } Martin ------------------------------------------------------------------------- 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 Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel