[Mapserver-users] Get all objects of one layer in map extent using nquery

Paul Hasenohr paul.hasenohr at jrc.it
Fri Aug 8 09:16:39 PDT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C35DD9.3679BC60
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Francois,
=20
I am not sure if this will address your problem, but I think you have to
replace imgext to mapext. By doing this and playing with the bounding
box coordinates (especially, the -35.000 one), I have been able to
display only a part of the records.
=20
Bye,
Paul

-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of
Fran=E7ois-Xavier Prunayre
Sent: venerd=EC 8 agosto 2003 17.41
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Get all objects of one layer in map extent
using nquery


Hi all,=20
I'm would like to retrieve all objects of a specific layer (station_fr)
which are in my current map extent. So I'm supposed to use =
mode=3Dnquery,
specified an imgext ... and I was thinking that all parameters required
were here.=20
But I always get all the objects of my layer even if I have only one in
my current view.
=20
Which parameters are mandatory for a nquery in an area of interest
selection ?
=20
here is the URL ...
http://www.rnde.tm.fr:8080/cgi-bin/mapserv.exe?mode=3Dnquery
<http://www.rnde.tm.fr:8080/cgi-bin/mapserv.exe?mode=3Dnquery&zoomdir=3D0=
&zo
omsize=3D1&imgext=3D-35.000000%2011.758333%2080.000000%2088.241667&map=3D=
F:\Ap
ache\html\eden-iw-dev\eden.map&savequery=3Dtrue&program=3D/cgi-bin/mapser=
v.e
xe&map_web_imagepath=3DF:\Apache\html\tmp\&map_web_imageurl=3D/tmp/>
&zoomdir=3D0&zoomsize=3D1&imgext=3D-35.000000%2011.758333%2080.000000%208=
8.241
667&map=3DF:\Apache\html\eden-iw-dev\eden.map&savequery=3Dtrue&program=3D=
/cgi-
bin/mapserv.exe&map_web_imagepath=3DF:\Apache\html\tmp\&map_web_imageurl=3D=
/
tmp/
=20
Thanks for your help.
Francois
=20
=20


------=_NextPart_000_000E_01C35DD9.3679BC60
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D643061316-08082003><FONT face=3DArial color=3D#0000ff =
size=3D2>Hi=20
Francois,</FONT></SPAN></DIV>
<DIV><SPAN class=3D643061316-08082003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D643061316-08082003><FONT face=3DArial color=3D#0000ff =
size=3D2>I am=20
not sure if this will address your problem, but I think you have to =
replace=20
imgext to mapext. By doing this and playing with the bounding box=20
coordinates (especially, the -35.000 one), I have been able to display =
only a=20
part of the records.</FONT></SPAN></DIV>
<DIV><SPAN class=3D643061316-08082003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D643061316-08082003><FONT face=3DArial color=3D#0000ff =

size=3D2>Bye,</FONT></SPAN></DIV>
<DIV><SPAN class=3D643061316-08082003><FONT face=3DArial color=3D#0000ff =

size=3D2>Paul</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B>=20
  mapserver-users-admin at lists.gis.umn.edu=20
  [mailto:mapserver-users-admin at lists.gis.umn.edu] <B>On Behalf Of=20
  </B>Fran=E7ois-Xavier Prunayre<BR><B>Sent:</B> venerd=EC 8 agosto 2003 =

  17.41<BR><B>To:</B> =
mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B>=20
  [Mapserver-users] Get all objects of one layer in map extent using=20
  nquery<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi all, </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I'm would like to retrieve all =
objects of a=20
  specific layer (station_fr) which are in my current map extent. So I'm =

  supposed to use mode=3Dnquery, specified an imgext ... and I was =
thinking that=20
  all parameters required were here. </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>But I always get all the objects of =
my layer even=20
  if I have only one in my current view.</FONT></DIV>
  <DIV> </DIV>
  <DIV><FONT face=3DArial size=3D2>Which parameters are mandatory for a =
nquery in an=20
  area of interest selection ?</FONT></DIV>
  <DIV> </DIV>
  <DIV><FONT face=3DArial size=3D2>here is the URL ...</FONT></DIV>
  <DIV><A=20
  =
href=3D"http://www.rnde.tm.fr:8080/cgi-bin/mapserv.exe?mode=3Dnquery&=
zoomdir=3D0&zoomsize=3D1&imgext=3D-35.000000%2011.758333%2080.000=
000%2088.241667&map=3DF:\Apache\html\eden-iw-dev\eden.map&saveque=
ry=3Dtrue&program=3D/cgi-bin/mapserv.exe&map_web_imagepath=3DF:\A=
pache\html\tmp\&map_web_imageurl=3D/tmp/">http://www.rnde.tm.fr:8080/=
cgi-bin/mapserv.exe?mode=3Dnquery&zoomdir=3D0&zoomsize=3D1&im=
gext=3D-35.000000%2011.758333%2080.000000%2088.241667&map=3DF:\Apache=
\html\eden-iw-dev\eden.map&savequery=3Dtrue&program=3D/cgi-bin/ma=
pserv.exe&map_web_imagepath=3DF:\Apache\html\tmp\&map_web_imageur=
l=3D/tmp/</A></DIV>
  <DIV> </DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks for your help.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Francois</FONT></DIV>
  <DIV> </DIV>
  <DIV> </DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000E_01C35DD9.3679BC60--




More information about the MapServer-users mailing list