[MapServer-users] Projection confusion and output image format

Stefan Gofferje lists at home.gofferje.net
Thu Oct 13 00:21:05 PDT 2022


Good morning all!

thanks  to some  extra free time and  some good pointers from this list, 
I got my mapserver up  and running from zero  within  6 or so hours 
yesterday.
What's left is some detail work, writing some scripts,  creating a 
docker file and so on.

And...  projection confusion...

So my data is  in EPSG:3067. At the moment, I have it configured so in 
MAP and in LAYER:

   PROJECTION
     "init=epsg:3067"
   END

I also have the wms config set to EPSG:3067 only:

   "wms_srs" "EPSG:3067"

EXTENT in MAP is set to:

   EXTENT 20000.000000 6594000.000000 740000.000000 7794000.000000

So, if I want to offer EPSG:3857 in addition to EPSG:3067 what do I change?


The other thing is that in MAP I have set

   IMAGETYPE PNG8

mostly to speed things up  and reduce file size. However, in a 
GetCapabilities reply, I get

<GetMap>
<Format>image/png; mode=8bit</Format>
<Format>image/png</Format>
<Format>image/jpeg</Format>
<Format>image/vnd.jpeg-png</Format>
<Format>image/vnd.jpeg-png8</Format>
<Format>application/x-pdf</Format>
<Format>image/svg+xml</Format>
<Format>image/tiff</Format>
<Format>application/vnd.google-earth.kml+xml</Format>
<Format>application/vnd.google-earth.kmz</Format>
<Format>application/vnd.mapbox-vector-tile</Format>
<Format>application/x-protobuf</Format>
<Format>application/json</Format>
<DCPType>
...
</DCPType>
</GetMap>

WHat am I missing here?

-Stefan

-- 
  (o_   Stefan Gofferje            | SCLT, MCP, CCSA
  //\   Reg'd Linux User #247167   | VCP #2263
  V_/_  https://www.gofferje.net   | https://www.saakeskus.fi



More information about the MapServer-users mailing list