[Mapserver-users] mapscript - queryByPoint help, simple Q
Lowell Filak
lfilak at medinaco.org
Thu Aug 28 06:36:55 PDT 2003
Don't forget to set $uLayer "data" and if needed "connectiontype" &
"connection".
Lowell
The following message was sent by poff <poff at sixbit.org> on Thu, 28 Aug
2003 15:06:23 +0200.
> > Do you have a template defined for the layer?
>
> No, sounds like I should!
>
> I have never used templates before, but in the query layer, and the point
> class I added:
>
> TEMPLATE "dummy"
>
> And instead of No Records I get:
>
> Warning: MapServer Error in msOpenSHPFile(): No (NULL) filename provided
>
> So it seems like progress!
>
> $result=$uLayer->queryByPoint ($my_point,MS_SINGLE,-10);
>
> Generates this error, but I didn't think I'd need a SHP file or anything.
>
> Any ideas how to proceed?
>
> Thanks very much!
>
> P
>
> > Lowell
> >
> > The following message was sent by poff <poff at sixbit.org> on Thu, 28 Aug
> > 2003 09:54:37 +0200.
> >
> > > Hello again,
> > >
> > > I'm having problems getting any results with queryByPoint.
> > >
> > > Basically I draw my map as usual then I try the following on the
drawn
> > > layer:
> > >
> > > $my_point = ms_newpointObj();
> > >
> > > $my_point->setXY($_REQUEST["mapa_x"],$_REQUEST["mapa_y"]);
> > >
> > > $result=$uLayer->queryByPoint ($my_point,MS_SINGLE,-20);
> > >
> > > I tried different buffers, zooming in etc. but I always get: "No
matching
> > > Record(s) found"
> > >
> > > The layer is drawn OK, and is simple as far as the mapfile goes
(nothing
> > > apart from):
> > >
> > > ...
> > > STATUS ON
> > > TYPE POINT
> > > LABELCACHE FALSE
> > >
> > > CLASS
> > > SYMBOL
> > > END
> > >
> > > END
> > > ...
> > >
> > > The points are drawn in from a database, so if I could convert the
> > > $_REQUEST clicks into lat/lon I could just query the database
instead of
> > > mapserver.
> > >
> > > Has anyone got any light to shed on this? I'd be most grateful if
someone
> > > could show me what I'm doing wrong, or suggest how to get the
lat/long
> > > values. The archives didn't seem to have anyone in my situation -
which
> > > suggested to me I'm missing something basic out.
> > >
> > > Thanks in advance,
> > >
> > > --
> > > poff at sixbit.org
> > > SDF Public Access UNIX System - http://sdf.lonestar.org
> > >
> > > Please do not carbon copy replies to me
> > > _______________________________________________
> > > 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
>
> --
> poff at sixbit.org
> SDF Public Access UNIX System - http://sdf.lonestar.org
>
> Please do not carbon copy replies to me
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list