[Chameleon] Experssionbuilder problem

Julien-Samuel Lacroix jlacroix at dmsolutions.ca
Thu Sep 29 09:58:04 EDT 2005


Hi Matthew,
I found the problem. There was a bug in the ExpressionBuilder when using 
WFS layers. It did not set the typename in the request to the server. To 
fix your problem, simply add typename=... in your layer connection (in 
your client mapfile).

Julien

On 09/28/2005 04:41 PM, Matthew Edmondson wrote:
> This is the line I have set in my mapfile.
>  
> "wfs_onlineresource" 
> "http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map 
> &"
> 
>  
> On 9/28/05, *Julien-Samuel Lacroix* <jlacroix at dmsolutions.ca 
> <mailto:jlacroix at dmsolutions.ca>> wrote:
> 
>     In your WMS server mapfile, in your layers or in your web object, do you
>     have a "wfs_onlineresource"? In order to be able to build a filter, the
>     widget needs to know the attributes of this layer. So you must have a
>     reference to the WFS server somewhere in your mapfile. Does the
>     wfs_onlineresource in your server mapfile is pointing to a MapServer 4.4
>     or a 4.6 server?
> 
>     Julien
> 
>     On 09/28/2005 03:13 PM, Matthew Edmondson wrote:
>      > I point to _44 and It still doesnt work. Expersion Builder comes
>     up, but
>      > there is no data whatsoever. So I'm not getting an error, It just
>     doesnt
>      > show anything but the layer name.
>      >
>      > Matt
>      >
>      >
>      > On 9/28/05, *Julien-Samuel Lacroix* <jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>
>      > <mailto: jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>>> wrote:
>      >
>      >     In your mapfile. In your layer connection, you probably point
>     to one or
>      >     another mapserv cgi.
>      >
>      >     Julien
>      >
>      >     On 09/28/2005 01:24 PM, Matthew Edmondson wrote:
>      >      > Stupid question, how do I make my ms4w install run 4.4
>     instead of
>      >     4.6? I
>      >      > have both mapserv_44.exe and mapserv_46.exe there.
>      >      >
>      >      > Matt
>      >      >
>      >      >
>      >      > On 9/28/05, *Julien-Samuel Lacroix*
>     <jlacroix at dmsolutions.ca <mailto:jlacroix at dmsolutions.ca>
>      >     <mailto:jlacroix at dmsolutions.ca <mailto:jlacroix at dmsolutions.ca>>
>      >      > <mailto:jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>
>      >     <mailto:jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>>>> wrote:
>      >      >
>      >      >     And from the server side? Is it MapServer 4.6? This
>     bug with
>      >     MapServer
>      >      >     4.6 is related to the wfs server behind your application.
>      >     Sorry for the
>      >      >     confusion.
>      >      >
>      >      >     Julien
>      >      >
>      >      >     On 09/28/2005 10:09 AM, Matthew Edmondson wrote:
>      >      >      > I've tried my connection using 4.4 and 4.6 and neither
>      >     seems to
>      >      >     work, no
>      >      >      > information comes up for my layer at all, I don't
>     belive that
>      >      >     this bug
>      >      >      > is the problem, but I very well may be incorrect.
>      >      >      >
>      >      >      > Thanks,
>      >      >      >
>      >      >      > Matt
>      >      >      >
>      >      >      >
>      >      >      > On 9/28/05, *Julien-Samuel Lacroix* <
>      >     jlacroix at dmsolutions.ca <mailto:jlacroix at dmsolutions.ca>
>     <mailto:jlacroix at dmsolutions.ca <mailto:jlacroix at dmsolutions.ca>>
>      >      >     <mailto: jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca> <mailto:jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>>>
>      >      >      > <mailto: jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>
>      >     <mailto:jlacroix at dmsolutions.ca <mailto:jlacroix at dmsolutions.ca>>
>      >      >     <mailto:jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>
>      >     <mailto: jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>>>>> wrote:
>      >      >      >
>      >      >      >     Hi,
>      >      >      >     Are you using MapServer 4.6?
>      >      >      >     Bug 1152 describe the problem between
>     ExpressionBuilder
>      >      >     widget and
>      >      >      >     MapServer 4.6 as a WFS server.
>      >      >      >    
>     http://bugzilla.maptools.org/show_bug.cgi?id=1152
>     <http://bugzilla.maptools.org/show_bug.cgi?id=1152>
>      >      >      >     You can try with 4.4 or add yourself in CC in
>     the bug,
>      >     this
>      >      >     way you
>      >      >      >     will
>      >      >      >     see wen it s fixed.
>      >      >      >
>      >      >      >     Julien
>      >      >      >
>      >      >      >     On 09/27/2005 11:05 AM, Matthew Edmondson wrote:
>      >      >      >      > I'm trying to use the expressionbuilder to
>     access a
>      >     layer
>      >      >     which I'm
>      >      >      >      > hosting locally. I've set the layer up for
>     WFS, I
>      >     can see
>      >      >     it in a
>      >      >      >      > GetCapabilites request, and I can get the data
>      >     through a
>      >      >     get feature
>      >      >      >      > request. However, when I select it as the active
>      >     layer and
>      >      >     try to use
>      >      >      >      > exppression builder, the gui comes up, the
>     name is
>      >     there,
>      >      >     but all
>      >      >      >     other
>      >      >      >      > information is blank. It states that it
>     doesnt even
>      >     know
>      >      >     what type of
>      >      >      >      > file it is (Point, Line or Poly).
>      >      >      >      >
>      >      >      >      > Attached is my layer for the data, and my layer
>      >     trying to
>      >      >     utilize
>      >      >      >     the data.
>      >      >      >      >
>      >      >      >      >
>      >      >      >      >
>      >      >      >      >
>      >      >      >      >  LAYER
>      >      >      >      >    name  bunnies2004_point
>      >      >      >      >    type  POINT
>      >      >      >      >    status off
>      >      >      >      >    DUMP TRUE
>      >      >      >      >    data  "C:/ms4w/apps/myApp/data/bunnies2004_point.shp"
>      >
>      >      >      >      >    TOLERANCE 5
>      >      >      >      >   .....
>      >      >      >      >    METADATA
>      >      >      >      >      "wfs_title"  "FY04 Tucson Sector Deaths"
>      >      >      >      >      "wfs_srs" "EPSG:4326"
>      >      >      >      >      END
>      >      >      >      >
>      >      >      >      >   END
>      >      >      >      >
>      >      >      >      >
>      >      >      >      > LAYER
>      >      >      >      > NAME   wfs_bunnies
>      >      >      >      > TYPE    POINT
>      >      >      >      > STATUS  off
>      >      >      >      > CONNECTIONTYPE WFS
>      >      >      >      > CONNECTION  "
>      >      >      >      >
>      >      >      >
>      >      >
>      >    
>     http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&"
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&">
>      >    
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&"
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&">
>      >
>      >      >     <
>      >    
>     http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&"
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&">
>      >    
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&"
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&">
>      >>
>      >      >      >
>      >      >
>      >    
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&"
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&">
>      >    
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&"
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&">
>      >
>      >      >
>      >    
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&"
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&">
>      >    
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&"
>     <http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&">
>      >>
>      >      >      >
>      >      >      >      > METADATA
>      >      >      >      >
>      >      >      >      > "wfs_typename" "bunnies2004_point"
>      >      >      >      > "wfs_service" "WFS"
>      >      >      >      > "wfs_srs" "EPSG:4326"
>      >      >      >      > "wfs_version"  "1.0.0"
>      >      >      >      > "wfs_request_method"    "GET"
>      >      >      >      >           #  "wfs_connectiontimeout" "60"
>      >      >      >      >            # "wfs_maxfeatures"       "1"
>      >      >      >      >
>      >      >      >      > END
>      >      >      >      > END
>      >      >      >      >
>      >      >      >      >
>      >      >      >      >
>      >      >      >      > I've tried it with and w/o the & at the end
>     of my
>      >     connection
>      >      >      >     string, and
>      >      >      >      > neither method works. Any help in this
>     matter would
>      >     be greatly
>      >      >      >     appreciated.
>      >      >      >      >
>      >      >      >      >
>      >      >      >      >
>      >      >      >      > Thanks,
>      >      >      >      >
>      >      >      >      >
>      >      >      >      >
>      >      >      >      > Matt
>      >      >      >      >
>      >      >      >      >
>      >      >      >      >
>      >      >      >
>      >      >
>      >    
>     ------------------------------------------------------------------------
>      >      >      >      >
>      >      >      >      > _______________________________________________
>      >      >      >      > Chameleon mailing list
>      >      >      >      > Chameleon at lists.maptools.org
>     <mailto:Chameleon at lists.maptools.org>
>      >     <mailto: Chameleon at lists.maptools.org
>     <mailto:Chameleon at lists.maptools.org>>
>      >      >     <mailto:Chameleon at lists.maptools.org
>     <mailto:Chameleon at lists.maptools.org>
>      >     <mailto:Chameleon at lists.maptools.org
>     <mailto:Chameleon at lists.maptools.org>>>
>      >      >     <mailto: Chameleon at lists.maptools.org
>     <mailto:Chameleon at lists.maptools.org>
>      >     <mailto:Chameleon at lists.maptools.org
>     <mailto:Chameleon at lists.maptools.org>>
>      >      >     <mailto:Chameleon at lists.maptools.org
>     <mailto:Chameleon at lists.maptools.org>
>      >     <mailto:Chameleon at lists.maptools.org
>     <mailto:Chameleon at lists.maptools.org> >>>
>      >      >      >      >
>     http://lists.maptools.org/mailman/listinfo/chameleon
>      >      >      >     <
>     http://lists.maptools.org/mailman/listinfo/chameleon>
>      >      >      >
>      >      >      >     --
>      >      >      >
>      >     ------------------------------------------------------------
>      >      >      >     Julien-Samuel Lacroix
>      >     jlacroix at dmsolutions.ca <mailto:jlacroix at dmsolutions.ca>
>     <mailto:jlacroix at dmsolutions.ca <mailto:jlacroix at dmsolutions.ca>>
>      >      >     <mailto:jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca> <mailto:jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>>>
>      >      >      >     <mailto: jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>
>      >     <mailto:jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>> <mailto: jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>
>      >     <mailto:jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>>>>
>      >      >      >     DM Solutions Group
>      >     http://www.dmsolutions.ca/ <http://www.dmsolutions.ca/>
>      >      >     <http://www.dmsolutions.ca/ <http://www.dmsolutions.ca/>>
>      >      >      >
>      >     ------------------------------------------------------------
>      >      >      >
>      >      >      >
>      >      >
>      >      >     --
>      >      >    
>     ------------------------------------------------------------
>      >      >     Julien-Samuel Lacroix            
>     jlacroix at dmsolutions.ca <mailto:jlacroix at dmsolutions.ca>
>      >     <mailto:jlacroix at dmsolutions.ca <mailto:jlacroix at dmsolutions.ca>>
>      >      >     <mailto: jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca> <mailto:jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>>>
>      >      >     DM Solutions Group              
>     http://www.dmsolutions.ca/ <http://www.dmsolutions.ca/>
>      >      >    
>     ------------------------------------------------------------
>      >      >
>      >      >
>      >
>      >     --
>      >     ------------------------------------------------------------
>      >     Julien-Samuel Lacroix            jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>
>      >     <mailto:jlacroix at dmsolutions.ca <mailto:jlacroix at dmsolutions.ca>>
>      >     DM Solutions Group               http://www.dmsolutions.ca/
>      >     ------------------------------------------------------------
>      >
>      >
> 
>     --
>     ------------------------------------------------------------
>     Julien-Samuel Lacroix            jlacroix at dmsolutions.ca
>     <mailto:jlacroix at dmsolutions.ca>
>     DM Solutions Group               http://www.dmsolutions.ca/
>     ------------------------------------------------------------
> 
> 

-- 
------------------------------------------------------------
Julien-Samuel Lacroix            jlacroix at dmsolutions.ca
DM Solutions Group               http://www.dmsolutions.ca/
------------------------------------------------------------


More information about the Chameleon mailing list