msWMSLoadGetParams

Bart van den Eijnden (OSGIS) bartvde at XS4ALL.NL
Fri Jun 23 03:57:57 PDT 2006


Please note you need to use lowercase epsg in PROJECTION blocks. At 
least on Linux this is case-sensitive.

Best regards,
Bart

Marcos Cobeña wrote:

> Hi Alexander,
>
> I think you should use PROJECTION tag to define projection used in
> your different layers. Something like:
>
> PROJECTION
>         "init=EPSG:4031"
> END
>
> We'll be waiting for your feedback, good luck!
>
> Regards,
>
> 2006/6/22, Alexander Rodríguez Torres <atorres at estudiantes.uci.cu>:
>
>> I receive this error when I try load my map
>>
>> msWMSLoadGetMapParams():Invalid SRS given:SRS must be valid for all
>> request layers
>>
>> Somebody can help me????
>>
>> This is my .map
>>
>> MAP
>>   NAME "Mapa de la UCI"
>>   STATUS ON
>>   EXTENT 9387137.4 805683.77 10119140.81 1507910.77
>>   SIZE 500 500
>>   SHAPEPATH "/var/www/localhost/htdocs/MapaPost/data"
>>   SYMBOLSET "/var/www/localhost/htdocs/MapaPost/etc/symbols.sym"
>>   FONTSET "/var/www/localhost/htdocs/MapaPost/etc/fonts.txt"
>>   IMAGETYPE PNG
>>   IMAGECOLOR 174 183 207
>>   UNITS METERS
>>   TEMPLATEPATTERN "UCI"
>>   WEB
>>     MINSCALE 259371
>>     IMAGEPATH "/temp/"
>>     TEMPLATE mapa.html
>>     HEADER mapa_header.html
>>
>>     IMAGEURL "/temp/"
>>      END
>>   REFERENCE
>>     STATUS ON
>>     IMAGE "/var/www/localhost/htdocs/MapaPost/images/keymap.png"
>>     SIZE 88 69
>>     EXTENT 9387137.4 805683.77 10119140.81 1507910.77
>>     COLOR -1 -1 -1
>>     OUTLINECOLOR 255 0 0
>>     MINBOXSIZE 3
>>     MAXBOXSIZE 0
>>     MARKER 0
>>     MARKERSIZE 0
>>   END
>>   QUERYMAP
>>     STATUS OFF
>>     SIZE -1 -1
>>     COLOR 255 0 0
>>     STYLE HILITE
>>   END
>>   #
>>   # Start of legend object
>>   #
>>   LEGEND
>>     STATUS ON
>>     IMAGECOLOR 255 255 255
>>     POSITION LL
>>     KEYSIZE 18 12
>>     KEYSPACING 5 5
>>     TEMPLATE "ttt"
>>     LABEL
>>       TYPE BITMAP
>>       SIZE MEDIUM
>>       OFFSET 0 0
>>       BUFFER 0
>>       MINDISTANCE -1
>>       MINFEATURESIZE -1
>>       COLOR 0 0 89
>>       PARTIALS TRUE
>>       FORCE FALSE
>>     END
>>   END
>>   #
>>   # Start of scalebar object
>>   #
>>   SCALEBAR
>>     STATUS ON
>>     COLOR 255 255 255
>>     OUTLINECOLOR 0 0 0
>>     BACKGROUNDCOLOR 0 0 0
>>     IMAGECOLOR 255 255 255
>>     UNITS KILOMETERS
>>     INTERVALS 5
>>     SIZE 150 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 TRUE
>>     END
>>   END
>>   #
>>   # Start of OutputFormat object
>>   #
>>   OUTPUTFORMAT
>>     NAME "png"
>>     MIMETYPE "image/png"
>>     DRIVER "GD/PNG"
>>     EXTENSION "png"
>>     IMAGEMODE PC256
>>     TRANSPARENT FALSE
>>   END
>>   LAYER
>>     NAME "Contornos"
>>     STATUS ON
>>     CONNECTIONTYPE POSTGIS
>>     CONNECTION "user=postgres dbname=siguci host=localhost"
>>     CLASSITEM "the_geom"
>>     DATA "the_geom from contornos"
>>     TYPE POLYGON
>>     CLASS
>>       NAME "contornos"
>>       TEMPLATE ""
>>       STYLE
>>         SYMBOL 0
>>         COLOR 0 128 0
>>         OUTLINECOLOR 0 0 0
>>       END
>>
>>
>>     END
>>   END
>>   LAYER
>>     NAME "Viales"
>>     STATUS ON
>>     CONNECTIONTYPE POSTGIS
>>     CONNECTION "user=postgres dbname=siguci host=localhost"
>>     CLASSITEM "the_geom"
>>     DATA "the_geom from viales"
>>     TYPE LINE
>>     CLASS
>>       NAME "viales"
>>       TEMPLATE ""
>>       STYLE
>>         SYMBOL 0
>>         COLOR 255 0 0
>>         OUTLINECOLOR 0 0 0
>>       END
>>     END
>>   END
>>   LAYER
>>     NAME "Areas deportivas"
>>     STATUS ON
>>     CONNECTIONTYPE POSTGIS
>>     CONNECTION "user=postgres dbname=siguci host=localhost"
>>     CLASSITEM "the_geom"
>>     DATA "the_geom from areasdeportivas"
>>     TYPE POLYGON
>>     CLASS
>>       NAME "areasdeportivas"
>>       TEMPLATE "deportivas.html"
>>       STYLE
>>         SYMBOL 0
>>         COLOR 255 255 0
>>         OUTLINECOLOR 0 0 0
>>       END
>>     END
>>     #HEADER "deportivas_header.html"
>>
>>   END
>>   LAYER
>>     NAME "Separadores"
>>     STATUS ON
>>     CONNECTIONTYPE POSTGIS
>>     CONNECTION "user=postgres dbname=siguci host=localhost"
>>     CLASSITEM "the_geom"
>>     DATA "the_geom from separadores"
>>     TYPE POLYGON
>>     CLASS
>>       NAME "separadores"
>>       TEMPLATE ""
>>       STYLE
>>         SYMBOL 0
>>         COLOR 0 128 0
>>         OUTLINECOLOR 0 0 0
>>       END
>>     END
>>   END
>>   LAYER
>>     NAME "Manzanas"
>>     STATUS ON
>>     CONNECTIONTYPE POSTGIS
>>     CONNECTION "user=postgres dbname=siguci host=localhost"
>>     CLASSITEM "the_geom"
>>     DATA "the_geom from manzanas"
>>     TYPE POLYGON
>>     CLASS
>>       NAME "manzanas"
>>       TEMPLATE "manzanas.html"
>>       STYLE
>>         SYMBOL 0
>>         COLOR 255 232 208
>>         OUTLINECOLOR 0 0 0
>>       END
>>     END
>>     #HEADER "manzanas_header.html"
>>    # FOOTER "manzanas_footer.html"
>>
>>   END
>>   LAYER
>>     NAME "Edificios"
>>     STATUS ON
>>     CONNECTIONTYPE POSTGIS
>>     CONNECTION "user=postgres dbname=siguci host=localhost"
>>     CLASSITEM "the_geom"
>>     DATA "the_geom from edificios"
>>     TYPE POLYGON
>>     CLASS
>>       NAME "edificios"
>>       TEMPLATE "edificios.html"
>>       STYLE
>>         SYMBOL 0
>>         COLOR 192 192 192
>>         OUTLINECOLOR 0 0 0
>>       END
>>     END
>>     #HEADER "edificios_header.html"
>>     #FOOTER "edificios_footer.html"
>>
>>   END
>> END
>>
>> -- 
>> Ing. Alexander Rodriguez Torres.
>>  Universidad de las Ciencias Informaticas.
>>   E-Mail:atorres at estudiantes.uci.cu
>>
>
>


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl



More information about the MapServer-users mailing list