[mapserver-users] Is this a CGI problem?

TDS tds at tds-net.de
Thu Jun 11 22:41:52 PDT 2015


Hello,

please note spelling mistakes:
Your IMAGETYPE needs to be "png" because NAME in OUTPUTFORMAT ist "png".

You are missing projection:
     PROJECTION
         "init=epsg:4326"
     END

For images please define a temp path which exists and is writable:
         IMAGEPATH   "../tmp"
         IMAGEURL   "../tmp"

If PNG leads to errors try "GD/PNG" instead of "AGG/PNG".

Try debugging in master part:
DEBUG 5
CONFIG "MS_ERRORFILE" "../tmp/mapserver.log"
CONFIG "CPL_DEBUG" "ON"
CONFIG "PROJ_DEBUG" "ON"
Try debugging in layer part:
DEBUG 5

Bye, TDS
------------------------------------------------------------------------
mailto:tds at tds-net.de
------------------------------------------------------------------------
1+1=10
You have a question? - 42 or RTFM.
Am 11.06.2015 um 23:35 schrieb Gery:
> danke Mathias, but I have that settings already, check this out please:
>
> MAP
>          NAME                    "todas_capas"
>          IMAGETYPE               PNG
>          EXTENT                  -79.861667 -12.386528 -77.103611 -7.250694
>          UNITS                   dd
>          SIZE                    800 600
>          MAXSIZE                 4000
>          SHAPEPATH               /home/gery/myTrash
>          FONTSET                 "../extras/set"
>          SYMBOLSET               "../extras/set"
>          IMAGEQUALITY            100
>
>          OUTPUTFORMAT
>                  NAME                    "png"
>                  DRIVER                  "AGG/PNG"
>                  MIMETYPE                "image/png"
>                  IMAGEMODE               RGBA
>                  EXTENSION               "png"
>                  FORMATOPTION            "INTERLACE=OFF"
>          END
>
> and the layer,
>
> var MapFileUrl = '/ms?';
> var ptp2014 = new
> OpenLayers.Layer.WMS('1eraTemporadadePesca2014',MapFileUrl,{
>                  layers: 'Temporada1eraPesca2014',
>                  transparent: true,
>                  format: 'image/png'
>          },{
>                  transitionEffect: 'resize',
>                  singleTile: true,
>                  ratio: 1,
>                  isBaseLayer: false,
>                  wrapDateLine: true
>          });
>      map.addLayers([gphy, gmap, ghyb, gsat, ptp2014]);
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-this-a-CGI-problem-tp5210276p5210501.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150612/39fa7c18/attachment.htm>


More information about the MapServer-users mailing list