no output for web template with 4.10 cgi

piero cavalieri piero.cavalieri at HEIDI.IT
Mon Nov 6 08:52:54 EST 2006


I found I have a problem with some layers. One of this is:

LAYER
  NAME laghi
  DEBUG on
  METADATA
    "wms_title" "laghi"
    "DESCRIPTION" "Laghi"
    "RESULT_FIELDS" "ASTA DES INDIVIDUAZ"
  END
  PROJECTION
        "init=epsg:26591"
  END
  TYPE polygon
  STATUS ON
  DATA idrlag
  LABELITEM "des"
  LABELMAXSCALE 30000
  CLASS
    NAME "Laghi"
    COLOR 0 0 250
    TEMPLATE "templates/laghi.xml"
    LABEL
        POSITION CC
        SIZE MEDIUM
        COLOR 0 0 250
        OUTLINECOLOR 220 220 220
    END
  END
  #TRANSPARENCY 50
  TOLERANCE 5
  HEADER "templates/layer_header.xml"
  FOOTER "templates/layer_footer.xml"
END

(I think templates/laghi.xml is ininfluent here because the layer 
crashes  in browse mode). Do you see something strange ?
Also on 3 other layers, I have images in temp dir are built correctly, 
but in the html they are not refreshed, i.e.:
 I do a zoom with the trouble layer present, the images are build (all 
images: map, scalebar, html legend icons, reference), but then html 
interface is not updated with the new images. I did never had this kind 
of problems with previous mapserver releses (but maybe this time I did 
something wrong in setting up cgi...)

Piero


J. Parapar ha scritto:
> Hi Piero.
>
> We are also having problems with HTML templates using MapServer 4.10
> (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1946). It works
> well using MapServer 4.8.4 so it seems there has been some changes in
> version 4.10 which have affected to the HTML templates but we do not
> know what. But it is rare that there are not more people affected by
> this so perhaps we are doing something wrong.
>
> Best regards,
>
> Jorge
>
>
> 2006/11/3, piero cavalieri <piero.cavalieri at heidi.it>:
>> Hi all,
>> I use cgi 4.10 (tried both from DMSolutions and TWtools)  and do a
>> request like this:
>> http://localhost/Scripts/mapserv.exe?map=D:/Web/Site/HGis/trentino.map&layer=DTM&layer=ECW&mode=browse 
>>
>>
>>
>> My web template file is an xml file:
>>
>> <?xml version="1.0" encoding="utf-8" ?>
>> <map>
>>  <img value="[img]"/>
>>  <mapwidth value="[mapwidth]"/>
>>  <mapheight value="[mapheight]"/>
>>  <scalebar value="[scalebar]"/>
>>  <referenceMap value="[ref]"/>
>>  <imgxy value="[center]"/>
>>  <imgext value="[mapext]"/>
>>  <legend>
>>      <![CDATA[
>>      [legend]
>>      ]]>
>>  </legend>
>> </map>
>>
>>
>> With 4.6 cgi this worked fine.
>> Then I had to format/reinstall my WindowsXp and tried 4.10, but with the
>> same web application I have the following cgi output:
>>
>> msDrawMap(): Layer 5 (laghi), 0.079s msDrawMap(): Layer 11 (i_dep_p), 
>> 0.078s
>>
>> instead of the xml file from web template.  In temp dir I have all the
>> images created for the  request (map, scalebar ecc.), so cgi 
>> installation
>> seems to be ok.
>>
>> I don't try using the old 4.6 (because I don't have it any more). Anyone
>> could give an advice please ?
>>
>> Thanks
>>     Piero
>>
>



More information about the mapserver-users mailing list