Brent, That fixed it!
Thank you, Asen Radov NASA Goddard Space Flight Center / Code 619 Phone: 301-614-6517 E-mail: [email protected] On 4/14/20, 2:26 PM, "Brent Fraser" <[email protected]> wrote: 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]" <[email protected]> > Sent: April 14, 2020 10:09 AM > To: "[email protected]" <[email protected]> > 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://urldefense.proofpoint.com/v2/url?u=https-3A__demo.mapserver.org_tutorial_example1-2D5.html&d=DwICAg&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=e281LxOLUXWX77lCDwwDG7yS4rW9wU7C6637XRybRqc&m=7J2dlWOBN48x7YKqL_YaSKzwI6Z1wPRXV23-HnuK-bU&s=7tS7g2TMzqiaCddWGe6NdQTfaKJKlV5vEMKRjd8uNzk&e= > 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://urldefense.proofpoint.com/v2/url?u=https-3A__drive.google.com_file_d_1giMI5OPLU6SJZUh&d=DwICAg&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=e281LxOLUXWX77lCDwwDG7yS4rW9wU7C6637XRybRqc&m=7J2dlWOBN48x7YKqL_YaSKzwI6Z1wPRXV23-HnuK-bU&s=t6_qHyvShNeWvfs1AUdCZ2d7iHotPnSbQddxnPAXeco&e= 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" "https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8181_cgi-2Dbin_mapserv-3F&d=DwICAg&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=e281LxOLUXWX77lCDwwDG7yS4rW9wU7C6637XRybRqc&m=7J2dlWOBN48x7YKqL_YaSKzwI6Z1wPRXV23-HnuK-bU&s=XzNFCTwn-g-B8y1dAD5RNJxgqe5YoRIwXx6cNVAIODk&e= " ##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: [email protected]<mailto:[email protected]> > > _______________________________________________ mapserver-users mailing list [email protected] https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.osgeo.org_mailman_listinfo_mapserver-2Dusers&d=DwICAg&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=e281LxOLUXWX77lCDwwDG7yS4rW9wU7C6637XRybRqc&m=7J2dlWOBN48x7YKqL_YaSKzwI6Z1wPRXV23-HnuK-bU&s=TsGBaxXv-eKJGkLucMO-JB1uQoUkY28al7GPNoe6rbQ&e= _______________________________________________ mapserver-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
