[Chameleon] expressionbuilder with chameleon 1.99

bartvde at xs4all.nl bartvde at xs4all.nl
Wed Nov 17 11:28:58 EST 2004


Hi,

you need to setup your LAYER in the MAP file with both a WMS and a WFS
interface (the WFS interface is used through a DescribeLayer request on
the WMS), e.g.:

WMS server map file:

  WEB
    METADATA
      WMS_TITLE "Gemeentes mapserver WMS"
      WMS_ABSTRACT "UMN MapServer Gemeentekaart"
      WMS_ACCESSCONSTRAINTS none
      WMS_SRS "EPSG:28992"
      WFS_TITLE "Gemeentes mapserver WFS"
      WMS_ONLINERESOURCE
"http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/general/map/gemeentes.map&"
      WFS_ONLINERESOURCE
"http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/general/map/gemeentes.map&"
      WFS_SRS "EPSG:28992"
    END
  END


..

And then on your LAYER:
        METADATA
          WMS_TITLE "Gemeentes"
          WMS_ABSTRACT "Gemeentes via UMN Mapserver"
          WMS_SRS "EPSG:28992"
          WFS_TITLE "Gemeentes"
        END

Chameleon app MAP file:

In your Chameleon application MAP file you can use a CONNECTIONTYPE WMS
layer:

  LAYER
      CONNECTION
"http://geoservice1-agi.minvenw.nl/cgi-bin/mapserv.exe?map=/ms4w/apps/general/map/gemeentes.map&"
      CONNECTIONTYPE WMS
        METADATA
          "wms_srs" "EPSG:28992 EPSG:4326"
          "wms_onlineresource" 
"http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/general/map/gemeentes.map&"
          "wms_name"  "Gemeentes"
          "wms_title" "Gemeentes"
          "wms_style_default_title" ""
          "wms_style_default_legendurl" "0 0  "
          "wms_server_version"  "1.1.0"
          "wms_formatlist"  "image/jpeg,image/png"
          "wms_format"  "image/png"
          "wms_boundingbox" "EPSG:28992 0 288007.5 288009 624000"
          "wms_style" ""
          "wms_latlonboundingbox" "2.68506 49.54247 7.75847 54.61588"
        END
      NAME "Gemeentes"
      PROJECTION
        "init=epsg:28992"
      END
      SIZEUNITS PIXELS
      STATUS ON
      DUMP TRUE
      TEMPLATE "blank.html"
      TOLERANCE 0
      TOLERANCEUNITS PIXELS
      TYPE RASTER
      UNITS METERS
  END

You can use the following in your Chameleon HTML template:

<cwc2 type="ExpressionBuilder" visible="true" styleresource="NavButton"
image="skins/flat_grey/icon_expression_build.png" imagetip="Querybuilder =
Selectie via expressie" imagewidth="24" imageheight="24" popupwidth="800"
popupheight="450" toolbar="false" status="false" menubar="false"
wildcard="@" singlechar="." escape="!">
    <image state="normal"/>
    <image state="hover"/>
</cwc2>

Hope this helps.

Best regards,
Bart

> I need to use expressionbuilder with chameleon 1.99. Please I need a
> sample.
> I have PHP 4.3.7, MAPSERVER 4, PHPMAPSCRIPT 4.2,CHAMEMELEON 1.99, WINDOWS
> 2000.
> Can anyone please help me?
> Thanks
> Sandra
>
>
>
>
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>




More information about the Chameleon mailing list