Opened 11 years ago

Closed 11 years ago

#2208 closed defect (fixed)

When using EPSG:21781, MGOS fails on BBOX greater than what defined

Reported by: znarf1965 Owned by:
Priority: high Milestone:
Component: WMS Interface Version: 2.4.0
Severity: critical Keywords:
Cc: External ID:

Description

I attach a simple project with a layer configured to expose to WMS. This layer is WMS-WFS/Common/Layers/LayerDefinitionSHPComuni. I can read this service from Map3D, but Quantum GIS 1.8.0 Lisboa, ESRI ArcGis 1.9 and Mapinfo MapXTreme fail: this happen because all of them make a request with a BBOX a bit wider.

If you execute http://localhost/mapguide/mapagent/mapagent.fcgi?REQUEST=GetCapabilities&service=WMS&&username=WmsUser

You get the following for the layer

  • <Layer> <Title>MapGuide WMS Server</Title> <CRS>EPSG:4326</CRS>
  • <!-- Published Layer #1 -->
  • <Layer queryable="1" cascaded="0" noSubsets="0" opaque="0"> <Name>WMS-WFS/Common/Layers/LayerDefinitionSHPComuni</Name> <Title>LayerDefinitionSHPComuni</Title> <CRS>EPSG:4326</CRS> <CRS>EPSG:21781</CRS>
  • <EX_GeographicBoundingBox> <westBoundLongitude>8.371</westBoundLongitude> <eastBoundLongitude>9.174</eastBoundLongitude> <southBoundLatitude>45.825</southBoundLatitude> <northBoundLatitude>46.629</northBoundLatitude> </EX_GeographicBoundingBox> <BoundingBox CRS="EPSG:4326" minx="8.371" miny="45.825" maxx="9.174" maxy="46.629" /> <BoundingBox CRS="EPSG:21781" minx="672484.296" miny="75272.190" maxx="732910.616" maxy="165700.540" /> </Layer> </Layer>

If you execute a request getting BBOX values specified in capabilities for CRS="EPSG:21781", then it works

http://localhost/mapguide/mapagent/mapagent.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=672484.296000,75272.190000,732910.616000,165700.540000&CRS=EPSG:21781&WIDTH=32&HEIGHT=32&LAYERS=WMS-WFS/Common/Layers/LayerDefinitionSHPComuni&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE HTTP/1.1

WMS clients (such as Quantum GIS 1.8 Lisboa or ESRI ArcGis o Mapinfo MapXTreme) build a BBOX a bit wider and this makes MGOS/AIMS fail

http://localhost/mapguide/mapagent/mapagent.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=671401.028954,75246.995246,734864.771170,165663.792311&CRS=EPSG:21781&WIDTH=32&HEIGHT=32&LAYERS=WMS-WFS/Common/Layers/LayerDefinitionSHPComuni&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE HTTP/1.1

Attachments (1)

WMS-WFS.mgp (792.8 KB ) - added by znarf1965 11 years ago.
mapguide package

Download all attachments as: .zip

Change History (2)

by znarf1965, 11 years ago

Attachment: WMS-WFS.mgp added

mapguide package

comment:1 by jng, 11 years ago

Resolution: fixed
Status: newclosed

Fixed with the fix for #2323

Note: See TracTickets for help on using tickets.