[mapserver-users] gMap query not showing results

Stephen Woodbridge woodbri at swoodbridge.com
Thu May 30 15:52:44 PDT 2002


No, gmap queries works fine in html mode. But you still have to meet the
two conditions I outlined below.

-Steve

Pushkar Pradhan wrote:
> 
> Does this mean we need java enabled/rosa applet to get the GMap queries
> to work, I had modified it since I had the same problems Joost is having.
> > You may already know this, but there are 2 conditions that must be met
> > to do gueries with the gmap code.
> >
> > 1) you must have a TEMPLATE line in the LAYER section
> >    this is a requirement of mapserver, I use "TEMPLATE void" in my files
> > 2) you must have a METADATA section like:
> >
> > METADATA
> >  "attribute field name1" "results column header1"
> >  "attribute field name2" "results column header2"
> >   ...
> > END
> >
> > If you don't have both, then you will not get back query results.
> > Also, for the query function, you can click OR drag a window with the
> > rosa applet.
> >
> > I think if you click, you get back a SINGLE result, and a window drag
> > gives you multiple results. I could be wrong on this point, but this is
> > how mine behaves.
> >
> > -Steve
> >
> > "Van Ulden, Joost" wrote:
> > >
> > > Hello all,
> > >
> > > We are using the gMap GMapDumpQueryResults() function and it is not
> > > returning the field values from the shapefile.  Mapserver finds the point
> > > because we do ot get the "no results" response.  Additionally, we cannot get
> > > the query map to work for the same shapefile.  The shape file is dynamic.
> > > Any suggestions would be helpful.
> > >
> > > Regards,
> > >
> > > Joost van Ulden
> > > Data Integration Specialist
> > > GSC-Pacific Division
> > > 101-605 Robson St.
> > > Vancouver, BC V6B 5J3
> > > 604.666.7525
> > > jvanulde at nrcan.gc.ca
> >
> 
> -Pushkar S. Pradhan



More information about the MapServer-users mailing list