Sat-picture - no colors!?

Leopold Schefcik (MULTIMEDIAPLAN.AT) leopold.schefcik at MULTIMEDIAPLAN.AT
Wed Aug 31 01:58:45 PDT 2005


hi,

My sat-picture has about 16,7 Mio colors but in the client only about 256
grew-colors.

I tried to change PNG to PNG24, but it's still b/w.

When I change  IMAGEMODE PC256 to MAGEMODE "png24" or IMAGEMODE png24 my
GetCapabilitiesRequest isn't accepted any more.

Some other idea to get the colors displayed.

best regards - Leopold



The map-file:

MAP
  NAME "mmp_wms"
  STATUS ON
  EXTENT 71473.4670152 40074.0096694 1251326.533 923294.99034
  SIZE 800 600
  SHAPEPATH "./data"
  SYMBOLSET "./etc/symbols.sym"
  FONTSET "./etc/fonts.txt"
  IMAGECOLOR 255 255 226
  UNITS METERS
  WEB
    MINSCALE 2e+006
    MAXSCALE 5e+007
    IMAGEPATH "/ms4w/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
    METADATA
      "WMS_SRS"    "EPSG:31287 EPSG:4326 EPSG:31466 EPSG:31467"
      "wms_title"    "Centrope WMS sat Viertel NW"
      "wms_abstract"    "Satellitenbild Centrope Region - Viertel NW"
    END
  END
  QUERYMAP
    STATUS ON
    SIZE -1 -1
    COLOR 255 0 0
    STYLE HILITE
  END
  PROJECTION
    "init=epsg:31287"
  END
  LEGEND
    STATUS ON
    IMAGECOLOR 255 255 255
    POSITION UL
    KEYSIZE 18 12
    KEYSPACING 5 5
    TEMPLATE
"C:/ms4w/apps/maplab-2.2/htdocs/mapbrowser/legend_template.html"
    LABEL
      TYPE BITMAP
      FONT "fritqat-italic"
      SIZE MEDIUM
      OFFSET 0 0
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 89
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  SCALEBAR
    STATUS ON
    COLOR 255 255 255
    OUTLINECOLOR 0 0 0
    BACKGROUNDCOLOR 0 0 0
    IMAGECOLOR 255 255 255
    UNITS KILOMETERS
    INTERVALS 5
    SIZE 300 5
    STYLE 0
    POSITION LL
    LABEL
      TYPE BITMAP
      SIZE SMALL
      OFFSET 0 0
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 0
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  OUTPUTFORMAT
    NAME "png24"
    MIMETYPE "image/png24"
    DRIVER "GD/PNG24"
    EXTENSION "png24"
    IMAGEMODE PC256
    TRANSPARENT OFF
  END
  LAYER
    NAME "Centrope_Viertel_NW"
    STATUS ON
    DATA "testausschnitt_viertel.tif"
    TYPE RASTER
    UNITS METERS
    SIZEUNITS PIXELS
    MINSCALE 1
    MAXSCALE 100000000
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    METADATA
      "wms_title"    "Centrope_Viertel_NW"
      "DESCRIPTION"    "Centrope_Viertel_NW"
      "WMS_SRS"    "EPSG:31287 EPSG:4326 EPSG:31466 EPSG:31467"
    END
    CLASS
      NAME "Centrope_Viertel_NW"
      STYLE
        SYMBOL 0
        SIZE 1
        MINSIZE 1
        MAXSIZE 100
      END
    END
  END
END

-----Ursprüngliche Nachricht-----
Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Im
Auftrag von Michael Schulz
Gesendet: Dienstag, 30. August 2005 13:40
An: MAPSERVER-USERS at LISTS.UMN.EDU
Betreff: Re: [UMN_MAPSERVER-USERS] 3 little Questions


Hi Leopold,

Q1: you will need to use a style that uses a vector symbol, e.g.

SYMBOL
   NAME "circle"
   TYPE ellipse
   FILLED true
   POINTS
     1 1
   END
END

then you can use the SIZE parameter in the mapfile on that symbol.

Q2: Are you sre mapserver finds your shapefile in ./data? Did you try to
use an absolute path to your data directory?

Q3: Not sure, but did you try using a 24-bit output format, e.g. png24 ?

Cheers, Michael



Leopold Schefcik (MULTIMEDIAPLAN.AT) schrieb:
>
> Hi list,
>
> Question 1 (of 3):
> maybe a simple question: How in general can I change the width of a
> line(vectordata)?
>
> Maybe not with 'SIZE' because regardless of which SIZE 1 or SIZE 50 or
SIZE
> 100 there is allways a fine line.
>
> CLASS
>       NAME "XC_Rivers"
>       STYLE
>         SYMBOL 0
>         COLOR 72 0 254
>         SIZE 100
>         MINSIZE 1
>         MAXSIZE 100
>       END
>     END
>
> ---------------------------------------
> Question 2 (of 3):
> I'd like to show a layer (polygones) with the population density in 5
clases
> (in different colors).
>
> I made the map file like in centrope_wms_bevdichte_2.map in the
attachement
> is shown. e.g. with this:
>
> CLASS							# Low Density
> 			MAXSCALE 120000
> 			MINSCALE 500
> 			EXPRESSION ([Bev_class]=1)  #if it is a string ('[FIELD]'='value')
> 			SYMBOL 1
> 			COLOR 248 147 147
> 			SIZE 1
> 		END
>
> 		CLASS							# High Density
> 			MAXSCALE 120000
> 			MINSCALE 500
> 			EXPRESSION ([Bev_class]=2)
> 			SYMBOL 1
> 			COLOR 249 36 36
> 			SIZE 1
> 		END
>
> But I only get this message:
> 	msDrawMap():Failed to draw layer named `Bev_Density'.
>
> Someone has an idea about this?
> --------------------------------------------
>
> Question 3 (of 3):
> I have a satellite tif for my background. It is in color. But in my client
> it is only shown in black and white.
>
> Do I have to change some command line here?
> (map file for satellite picture is also in attachement:
> centrope_wms_sat.map)
>
> ---------------------------------------------
>
> Thanks a lot for everybody, who is trying to help me here a little bit.
>
> Best regards,
> Leopold
>
>
>
>


--
-----------------------------------------------------------
Michael Schulz                            mschulz at webgis.de

in medias res  Gesellschaft für Informationstechnologie mbH

In den Weihermatten 66              Tel +49 (0)761 556959-5
79108 Freiburg                      Fax +49 (0)761 556959-6

                www.webgis.de / www.zopecms.de
-----------------------------------------------------------
NEU ++ UMN MapServer Hosting ++ http://www.webgis.de ++ NEU
-----------------------------------------------------------



More information about the MapServer-users mailing list