[Mapserver-DE] Outputformat vorgeben bzw. verhindern

Stefan Schantz sschantz at bfs.de
Don Apr 16 16:39:48 CEST 2009


Hallo Liste,
Ist es möglich, dass der UMN MapServers einen bestimmten Layer nur in 
vorgegebene Formaten zur Verfügung stellt?
In meinem Mapfile habe ich definiert:
(...)
    IMAGETYPE aggpng24

    OUTPUTFORMAT
      NAME aggpng24
      DRIVER AGG/PNG
      MIMETYPE "image/png"
      IMAGEMODE RGB
      EXTENSION "png"
    END
   
    OUTPUTFORMAT
      NAME jpeg
      DRIVER "GD/JPEG"
      MIMETYPE "image/jpeg"
      IMAGEMODE RGB
      EXTENSION "jpg"
    END
(...)

Aber im GetCapabilities-Dokument steht:
(...)
<GetMap>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <Format>image/gif</Format>
      <Format>image/png; mode=24bit</Format>
      <Format>image/vnd.wap.wbmp</Format>
      <Format>image/tiff</Format>
      <Format>image/svg+xml</Format>
      <DCPType>
(...)

Mein Problem ist, dass eine proprietäre Software das Format "image/gif" 
fordert, das aber bei Orthophotos keinen Sinn macht (256 Farben).
Kann mir jemand helfen? Danke
Grüße
Stefan