[Mapserver-users] Mapserver 4.2.0 Template Weirdness
Dirk Jesko
jesko at geocontent.de
Thu Jun 17 23:03:29 PDT 2004
Hi Marcus,
I just filed a bug and my solution. Hopefully it will be fixed soon.
Regards,
Dirk
> -----Ursprüngliche Nachricht-----
> Von: Markus Spring [mailto:m.spring at gmx.de]
> Gesendet: Donnerstag, 17. Juni 2004 17:59
> An: Dirk Jesko
> Cc: mapserver-users at lists.gis.umn.edu
> Betreff: Re: [Mapserver-users] Mapserver 4.2.0 Template Weirdness
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dirk Jesko wrote:
> | Hi Marcus,
> |
> | I might have an explanation. It seems to be a bug with the linux
> version.
> | The windows binaries work just fine.
> |
> | I had the same problem with [layers] today. If
> &layers=layer1+layer2+layer3
> | is passed to mapserver, all layers are displayed, but only the last is
> | returned (layer3) to the [layers] variable in the template.
> |
> | The reason seems to be the processLine function in maptemplate.c. The
> | snprintf function used to replace [layers] with the actual values does
> not
> | work the way it should (on linux systems). I replaced snprintf by
> strcat,
> | which works perfectly for me.
> |
>
> Hi Dirk,
>
> you are definitely right on this! How come nobody has stumbled over it
> until now???
>
> Are you going to file a bug about this or shall I do so?
>
> Kind regards
>
> Markus
>
> |
> |> -----Ursprüngliche Nachricht-----
> |> Von: mapserver-users-admin at lists.gis.umn.edu [mailto:mapserver-users-
> |> admin at lists.gis.umn.edu] Im Auftrag von Markus Spring
> |> Gesendet: Donnerstag, 17. Juni 2004 13:16
> |> An: mapserver-users at lists.gis.umn.edu
> |> Betreff: [Mapserver-users] Mapserver 4.2.0 Template Weirdness
> |>
> | Hi list,
> |
> | checking the 4.2.0 CGI mapserver, a ran across a weird template problem
> | regarding the [layer], [layer_esc] and [toggle_layers] variables.
> |
> | The output with the same querystring of
> |
> | &map=/home/springm/perl/Geo-
> |
> UMNmapserver/t/maps/verwaltungsgrenzenflur/verwaltungsgrenzenflur.dfo.map
> | &mode=browse
> | &layer=l1
> | &layer=l0
> | &layer=bgl15
> | &layer=bgl11
> | &layer=bgl20
> | &zoomdir=1
> | &zoomsize=2
> | &mapsize=400+300
> | &scale=9700
> | &mapxy=4465711.0965965+5341175.7092885
> |
> | (of cours all in one line) returns:
> |
> | <!-- MapServer version 4.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
> OUTPUT=WBMP
> | SUPPORTS=FREETYPE INPUT=TIFF INPUT=JPEG INPUT=SHAPEFILE -->
> |
> | => layers: l1 l0 bgl15 bgl11 bgl20
> | => toggle_layers: bgl99 bgl20 bgl11 bgl00 bgl00 bgl00 bgl00 l0 l1
> | bgl98
> | bgl15 bgl08 bgl08 bgl08 bgl08 bgl08 bgl08 MSSuser __embed__scalebar
> | __embed__legend
> |
> | and
> |
> | <!-- MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
> OUTPUT=WBMP
> | SUPPORTS=FREETYPE INPUT=TIFF INPUT=JPEG INPUT=SHAPEFILE -->
> |
> | => layers: bgl20
> | => toggle_layers: __embed__legend
> |
> | I have no explanation for this behavior.
> |
> | Kind regards
> |
> | Markus
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
> | _______________________________________________
> | Mapserver-users mailing list
> | Mapserver-users at lists.gis.umn.edu
> | http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFA0b/IxxUzQSse11ARAqxOAJ9/t/u/DzJ2+OiC8bLgYXPYXvJkvgCfcvot
> zc+MX6AeTlXCJruCpuOKjkQ=
> =fCs0
> -----END PGP SIGNATURE-----
More information about the MapServer-users
mailing list