I don't think axis order can be the reason as it only works if i use both: - Hints.putSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE); - mapcontent.getViewport().setCoordinateReferenceSystem(CRS.decode("EPSG:4326")); So the axis order should be set the same for both, no?
But there is definitely a difference between the two definitions as CRS.decode("EPSG:4326") gives me: GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4326"]] and DefaultGeographicCRS.WGS84 results in: GEOGCS["WGS84(DD)", DATUM["WGS84", SPHEROID["WGS84", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH]] Greetings, Jones Am Mi., 10. Feb. 2021 um 17:40 Uhr schrieb Andrea Aime < andrea.a...@geo-solutions.it>: > On Wed, Feb 10, 2021 at 5:25 PM Ian Turton <ijtur...@gmail.com> wrote: > >> >>> There are two possibilities - 1) axis order, your image might be there >> but off screen 2) Andrea has just done some work on master to add a "label" >> to the defaultCRS which was causing some issues in odd places in GeoServer. >> > > Forget about option 2), it's just about the transformation override > mechanism, has nothing to do with this use case. > Axis order seems very much the culprit here, the WGS84 constant has > lon/lat axis order, CRS.decode("EPSG:4326") results in a lat/lon order > instead, > unless that system variable Ian was talking about is set, instead. > > Cheers > Andrea > > == GeoServer Professional Services from the experts! Visit > http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf > Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa > (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 > http://www.geo-solutions.it http://twitter.com/geosolutions_it > ------------------------------------------------------- *Con riferimento > alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - > Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni > circostanza inerente alla presente email (il suo contenuto, gli eventuali > allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i > destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per > errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le > sarei comunque grato se potesse darmene notizia. This email is intended > only for the person or entity to which it is addressed and may contain > information that is privileged, confidential or otherwise protected from > disclosure. We remind that - as provided by European Regulation 2016/679 > “GDPR” - copying, dissemination or use of this e-mail or the information > herein by anyone other than the intended recipient is prohibited. If you > have received this email by mistake, please notify us immediately by > telephone or e-mail.* >
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users