Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 811935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:07:24+00:00 2026-05-15T01:07:24+00:00

I want to render an ERDAS-Image-file (suffix .img) with the UMN-Mapserver. The data is

  • 0

I want to render an ERDAS-Image-file (suffix .img) with the UMN-Mapserver. The data is rendered on the right position and with the correct shape, but all data is white instead of an raster-image. The Image contains many layers. My mapfile looks like this:

MAP
NAME "Test"

WEB
                  METADATA
                                         "wms_title" "test"
                                         "WMS_SRS" "epsg:31466 epsg:31467 epsg:31468  epsg:31469 epsg:4326 epsg:25832 epsg:3035"
                  END
                  LOG "test.log"
                  IMAGEPATH "."
END

SHAPEPATH "."
PROJECTION
                  "init=epsg:32632"
END

LAYER
                 NAME    "testlayer"
                 TYPE    RASTER
                 DATA    "test.img"
                 STATUS  ON
                 OFFSITE 0 0 0
END

OUTPUTFORMAT
                  NAME png
                  DRIVER "GD/PNG"
                  MIMETYPE "image/png"
                  IMAGEMODE RGBA
END

END
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T01:07:25+00:00Added an answer on May 15, 2026 at 1:07 am

    To give an answer to my own question: The input-file had 16 Bit per channel and that didn’t worked out. The mapserver can scale the colors, but you need the data from the people, that have knowledge about the image. In my case, I was said to scale from 0-22000, so I wrote the following line to the layer-definition:

    PROCESSING "SCALE=0,22000"
    

    That worked well, now I can see structure in the image. If you don’t know about the correct scale, you could try the following

    PROCESSING "SCALE=AUTO"
    

    I hope this helps someone, who runs into the same trouble in the future.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

1.I want to render a dropbox image from a short url in a img
I want to render for facebook bot special data. I have og.html.erb <!DOCTYPE html><html><head>
Well I want to render a self closing tag say <img> tag like this
I want to render a grid as an image to use on a live
Big picture: I want to render an RGB image via GTK on a linux
Background: I want to render this: <a href=javascript:myfunction('Somevar')><img src=some.png width=20 height=20 border=0 /></a> in
I want to render blocks of HTML in alternate orientations. Is this the correct
i want to render 30 different images. Each task has to merge different image
I want to render in a template an image that originates from a ClientBundle.
I want to render a PartialView inside a <iframe src=''></iframe> The rendered partial view

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.