[mapserver-users] Display of an RGB file
Brent Fraser
bfraser at GeoAnalytic.com
Tue Apr 14 10:19:40 PDT 2020
Asen,
Your layer projection needs to match the tif file's project. I like to
use
PROJECTION
AUTO
END
Best regards,
Brent Fraser
-------- Original Message --------
> From: "Radov, Asen (GSFC-619.0)[UNIVERSITY OF MARYLAND]"
<asen.s.radov at nasa.gov>
> Sent: April 14, 2020 10:09 AM
> To: "mapserver-users at lists.osgeo.org" <mapserver-users at lists.osgeo.org>
> Subject: [mapserver-users] Display of an RGB file
>
> Hello,
>
> I am trying to display a RGB file, but with no success.
> I was able to successfully display the RGB file in this example:
https://demo.mapserver.org/tutorial/example1-5.html
> At this point, I think there is an issue with the file, maybe it is
missing some geo location information, but I am not sure.
> Can someone double check if they can display this file? Any help is
appreciated.
> Here is a link to it, since attaching It breaks the size limit:
>
LC8_015030_20190727_rgb.tif<https://drive.google.com/file/d/1giMI5OPLU6SJZUh
kK0ZxfySKSMP88G6G/view>
>
> Here is my map file for reference:
>
> MAP
> IMAGETYPE PNG
> EXTENT -180 -90 180 90
> SIZE 256 256
> SHAPEPATH "/tis/stream/data"
> # The regular expression below will match 1 or more letters followed by
> # underscore followed by 1 or more numeric characters
> DATAPATTERN "[a-z]+|_|[0-9]+"
> IMAGECOLOR 255 255 255
> CONFIG "MS_ERRORFILE" "/usr/local/error.log"
> DEBUG 5
>
> SymbolSet "symbols/symbols.sym"
>
> OUTPUTFORMAT
> NAME "png"
> DRIVER "AGG/PNG"
> MIMETYPE "image/PNG"
> IMAGEMODE RGBA
> TRANSPARENT ON
> EXTENSION "png"
> FORMATOPTION "COMPRESSION=1"
> END
>
> PROJECTION
> "init=epsg:4326"
> END
>
> WEB
> METADATA
> "wms_title" "WMS STREAM Server" ##required
> "wms_onlineresource" "http://localhost:8181/cgi-bin/mapserv?" ##required
> "wms_srs" "EPSG:4326" ##recommended
> "wms_enable_request" "*" ##necessary
> END
> END # Web
>
> LAYER
> NAME "rgb1"
> DATA ""
> PROCESSING "BANDS=1,2,3"
> TYPE RASTER
> STATUS ON
> DEBUG 5
>
> PROJECTION
> "init=epsg:4326"
> END
>
> METADATA
> wms_title "Tss range 0-1 layer"
> wms_srs "epsg:4326"
> wms_extent "-180 -90 180 90"
> END
> END
> END
>
>
> Thank you,
> Asen Radov
>
> NASA Goddard Space Flight Center / Code 619
> Phone: 301-614-6517
> E-mail: asen.s.radov at nasa.gov<mailto:asen.s.radov at nasa.gov>
>
> _______________________________________________ mapserver-users mailing
list mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Attachment 1
Type: application/octet-stream
Size: 22361 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200414/d40489a8/attachment.obj>
More information about the MapServer-users
mailing list