Hello @jerryfaust
I still have an anomaly, with the change of the parameter ‘crs’ it is necessary to reverse the longitude and latitude in the BBOX.
https://docs.geoserver.org/stable/en/user/services/wms/basics.html
Axis Ordering
The WMS 1.3.0 specification mandates that the axis ordering for geographic coordinate systems defined in the EPSG database be latitude/longitude, or y/x. This is contrary to the fact that most spatial data is usually in longitude/latitude, or x/y. This requires that the coordinate order in the BBOX parameter be reversed for SRS values which are geographic coordinate systems.
The BBOX recovery function (in the source code):
Before:
CString WmsProviderBase::GetBoundingBox(CPoint &pos, int zoom)
{
PointLatLng pnt1;
_projection->FromXYToProj(pos, zoom, pnt1);
PointLatLng pnt2;
pos.x++;
pos.y++;
_projection->FromXYToProj(pos, zoom, pnt2);
CString s;
s.Format("%f,%f,%f,%f",
MIN(pnt1.Lng, pnt2.Lng),
MIN(pnt2.Lat, pnt1.Lat),
MAX(pnt2.Lng, pnt1.Lng),
MAX(pnt1.Lat, pnt2.Lat));
return s;
}
After :
CString WmsProviderBase::GetBoundingBox(CPoint &pos, int zoom)
{
PointLatLng pnt1;
_projection->FromXYToProj(pos, zoom, pnt1);
PointLatLng pnt2;
pos.x++;
pos.y++;
_projection->FromXYToProj(pos, zoom, pnt2);
CString s;
s.Format("%f,%f,%f,%f",
MIN(pnt2.Lat, pnt1.Lat),
MIN(pnt1.Lng, pnt2.Lng),
MAX(pnt1.Lat, pnt2.Lat));
MAX(pnt2.Lng, pnt1.Lng),
return s;
}
Thanks for your help,
Regards,
Anthony.