Re: [MapServer-users] WMS GetCapabilities map minx, miny etc transposed

2022-11-27 Thread Jody Klymak
Hi Bjørn 


> On Nov 27, 2022, at 2:21 PM, Bjørn Ove Grøtan  wrote:
> 
> It's "request=GetMap" not "request=Map”.

Ooops, that indeed works!  

However, it is still somewhat strange that GetAttributes x and y are swapped in 
the BoundingBox

Thanks,   Jody


___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] WMS GetCapabilities map minx, miny etc transposed

2022-11-27 Thread Bjørn Ove Grøtan
Jody Klymak:
> Hi,
> 
> I am a new user, using mapserver 8.0.0:
> 
> I have been going through the tutorials and have trouble making rasters work 
> on my WMS server.  The same map file works fine in QGIS, so I think there is 
> a bug in mapserver, but wanted to write here in case I am doing anything 
> silly.
> 
> If I query the server I get layers that have minx miny in the BoundingBox 
> that are transposed with respect to lat and lon:
> 
> ```
> 
> modis
> modis
> EPSG:4326
> 
> -97.238976
> -82.122902
> 41.619778
> 49.385620
> 
> 
>  maxx="49.385620" maxy="-82.122902"/>
> 
> 
> text/xml
> http://www.w3.org/1999/xlink; 
> xlink:type="simple" 
> xlink:href="https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map=GetMetadata=modis"/>
> 
> 
> ```
> 
> If I query the wms server with 
> 
> `https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map=WMS=1.3=Map=modis=EPSG:4326=-97.238976,41.619778,-82.122902,49.385620=png=360=270`

It's "request=GetMap" not "request=Map".

> 
> I get a blank image
> 
> If I swap lat for lon in the BBOX=41.619778,-97.238976,49.385620,-82.122902, 
> then it works, but is of course distorted. 
> 
> Maybe I’m really mis-understanding the BBOX parameter, but it seems that 
> there is a bug where someone has said x is equivalent to latitude, where they 
> meant longitude. 
> 
> Again, this map works fine in QGIS, I assume because it doesn’t look at the 
> BoundingBox and just uses the  etc. 
> 
> The map file is 
> 
> ```
> MAP
>   NAME "MAPSERVER_RASTER"
>   IMAGETYPE  PNG24
>   EXTENT-97.238976 41.619778 -82.122902 49.385620
>   SIZE   360 270
>   SHAPEPATH  "./data/"
>   IMAGECOLOR 200 200 200
> 
>   PROJECTION
> "init=epsg:4326"
>   END
> 
>   WEB
> METADATA
>   ows_title "MapServer Raster"
>   ows_enable_request "*"
>   ows_srs "EPSG:4326"
>   ows_onlineresource  
> "https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map;
> END
>   END
>   LAYER # MODIS raster layer begins here
> NAME "modis"
> DATA "ugl_ref2.png"
> STATUS   DEFAULT
> TYPE RASTER
> EXTENT-97.238976 41.619778 -82.122902 49.385620
> OFFSITE  71 74 65
> PROJECTION
>   "init=epsg:4326"
> END
>   END # MODIS raster layer ends here
> END
> ```
> 
> Thanks,   Jody
> 
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Kind regards
 
Bjørn Ove Grøtan
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[MapServer-users] WMS GetCapabilities map minx, miny etc transposed

2022-11-27 Thread Jody Klymak
Hi,

I am a new user, using mapserver 8.0.0:

I have been going through the tutorials and have trouble making rasters work on 
my WMS server.  The same map file works fine in QGIS, so I think there is a bug 
in mapserver, but wanted to write here in case I am doing anything silly.

If I query the server I get layers that have minx miny in the BoundingBox that 
are transposed with respect to lat and lon:

```

modis
modis
EPSG:4326

-97.238976
-82.122902
41.619778
49.385620





text/xml
http://www.w3.org/1999/xlink; xlink:type="simple" 
xlink:href="https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map=GetMetadata=modis"/>


```

If I query the wms server with 

`https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map=WMS=1.3=Map=modis=EPSG:4326=-97.238976,41.619778,-82.122902,49.385620=png=360=270`

I get a blank image

If I swap lat for lon in the BBOX=41.619778,-97.238976,49.385620,-82.122902, 
then it works, but is of course distorted. 

Maybe I’m really mis-understanding the BBOX parameter, but it seems that there 
is a bug where someone has said x is equivalent to latitude, where they meant 
longitude. 

Again, this map works fine in QGIS, I assume because it doesn’t look at the 
BoundingBox and just uses the  etc. 

The map file is 

```
MAP
  NAME "MAPSERVER_RASTER"
  IMAGETYPE  PNG24
  EXTENT-97.238976 41.619778 -82.122902 49.385620
  SIZE   360 270
  SHAPEPATH  "./data/"
  IMAGECOLOR 200 200 200

  PROJECTION
"init=epsg:4326"
  END

  WEB
METADATA
  ows_title "MapServer Raster"
  ows_enable_request "*"
  ows_srs "EPSG:4326"
  ows_onlineresource  
"https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map;
END
  END
  LAYER # MODIS raster layer begins here
NAME "modis"
DATA "ugl_ref2.png"
STATUS   DEFAULT
TYPE RASTER
EXTENT-97.238976 41.619778 -82.122902 49.385620
OFFSITE  71 74 65
PROJECTION
  "init=epsg:4326"
END
  END # MODIS raster layer ends here
END
```

Thanks,   Jody

___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users