[mapserver-users] raster layer

Thorsten Fischer thfischer at mapmedia.de
Tue Aug 27 08:10:04 PDT 2002


Thus spake Marian Grigoras:

> I am trying to display a JPG as a raster layer.
> What I get is the gray image (128,128,128). No sign of JPG.
> Could someone tell me what I do wrong?
> MapServer is running on a RedHat 7.3 computer (in case this makes any
> difference).

> Note: The EXTENT information is just some dummy data. He asked for it,
> but it does not have any real meaning. Could this cause my problem?

The EXTENT information tells mapserver which coordinates are the default
setting for your map. Your extent defines

> EXTENT 74000 4775000 798000 5500000

an upper left corner at 74000/4775000, while the settings in your
worldfile

> 1.0
> 0.0
> 0.0
> 1.0
> 50.0
> 50.0

say that the images start at 50/50 and has a width and height of 1
coordinate unit per pixel. Unless your jpeg files is at least 73951
pixels wide, you won't see anything with those settings.

Also, make sure that your worldfile has exactly the same name (without
extension) as your image file; under linux (and unix in general) 'MAP1'
is different to 'map1'. 


hth,

thorsten

-- 

Thorsten Fischer        thfischer at mapmedia.de

---------------------------------------------------------
MapMedia - Kartographie und raumbezogene Informationssysteme
Am Borsigturm 42
13507 Berlin
Deutschland
http://www.mapmedia.de tel: +49 (0)30 43032102
---------------------------------------------------------




More information about the MapServer-users mailing list