MapTools.org

[maplab-users] Re: Query problem in MapLab

Valerio Noti noti@ciaoweb.it
Thu, 12 Jun 2003 14:56:40 +0200
This is a multi-part message in MIME format.

------=_NextPart_000_0060_01C330F2.D4C2A210
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Ok,
thank you Paul.
I tried to modify javascript code in .phtml file:
it seems that it cannot open the new window for query results.
In fact, if I insert QUERYMAP in mapfile, the querymap appears
in the main map windows.

Mario



----- Original Message -----=20
From: "Paul Spencer" <pagameba@magma.ca>
To: "Valerio Noti" <noti@ciaoweb.it>
Cc: "Maplab-users" <Maplab-users@dmsolutions.ca>
Sent: Thursday, June 12, 2003 1:45 PM
Subject: Re: [Mapserver-users] Query problem in MapLab


> Mario, please use the maplab-users mailing list to ensure a response =
for=20
> maplab-specific issues.
>=20
> I've cc'd it here.  There may be a problem in maplab, we'll take a =
look=20
> and let you know.
>=20
> Cheers,
>=20
> Paul
>=20
> Valerio Noti wrote:
> > Hi,
> > I'm new to Mapserver/MapLab.
> > i'm trying to build a web application with MapLab GMapFactory =
module.
> > I'm using MapServer 3.6.6 for win32, mapScript 3.6 dll and MapLab =
2.0.1 on
> > IIS5.
> > I wrote mapfile with several shapefiles and the application seems to =
work
> > except
> > for the query button.
> > The layer section for shapefiles is as the following:
> > /********************************
> > LAYER
> >     NAME "Region"
> >     STATUS DEFAULT
> >     DATA "Region"
> >     TYPE POLYGON
> >     CLASSITEM "Regione"
> >     UNITS METERS
> >  LABELITEM "Region"
> >    CLASS
> >     EXPRESSION /./
> >     OUTLINECOLOR 128 128 128
> >     COLOR 125 225 185
> >  TEMPLATE "region.html"
> >  LABEL
> >   COLOR 0 0 0
> >   SIZE tiny
> >   FONT Arial
> >  END
> >   END
> >   TOLERANCE 5
> >   HEADER "region_header.html"
> >   FOOTER "region_footer.html"
> > END
> > /********************************
> > When I try to query the map nothing happens and the browser gives me =
the
> > following error:
> > /********************************
> > "Property not supported by the object"
> > Raw 36
> > Char 9
> > =
http://192.168.1.51/maplab-2.0-release/projects/gmf_apps/toscana/toscana.=
pht
> > =
ml?layer_status%5B%5D=3DRegioni&PrevStateKey=3DBBOX%3D1570594.70743%2C481=
2069.21
> > =
037%2C1711125.72305%2C4952891.36545%7CSRS%3D%7CMAPSIZE%3D400%2C400%7CLAYE=
RS%
> > =
3D0&NotFirstLoad=3D1&RosaMode=3D1&ROSA_CMD=3DQUERY&INPUT_TYPE=3Dauto_rect=
&INPUT_COOR
> > D=3D241%2C334%3B241%2C334&QueryString=3D
> > /********************************
> > I opened phtml file and commented the line 36:
> > /********************************
> >         // give it focus
> >         mapquery.focus();
> > /********************************
> > After that nothing happens when I try to query the map.
> > I got the same error when I build the application in HTML without =
rosa
> > applet.
> >=20
> > Any help appreciated
> >=20
> > Thanks
> >=20
> > Mario
> >=20
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users@lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >=20
>=20
> --=20
> Paul Spencer
> Applications and Software Development
> DM Solutions Group Inc.
> http://www.dmsolutions.ca
>=20
>=20
> 
------=_NextPart_000_0060_01C330F2.D4C2A210
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV>Ok,</DIV>
<DIV>thank you Paul.</DIV>
<DIV>I tried to modify javascript code in .phtml file:</DIV>
<DIV>it seems that it cannot open the new window for query =
results.</DIV>
<DIV>In fact, if I insert QUERYMAP in mapfile, the querymap =
appears</DIV>
<DIV>in the main map windows.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Mario</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>----- Original Message -----=20
<DIV>From: "Paul Spencer" &lt;<A=20
href=3D"mailto:pagameba@magma.ca">pagameba@magma.ca</A>&gt;</DIV>
<DIV>To: "Valerio Noti" &lt;<A=20
href=3D"mailto:noti@ciaoweb.it">noti@ciaoweb.it</A>&gt;</DIV>
<DIV>Cc: "Maplab-users" &lt;<A=20
href=3D"mailto:Maplab-users@dmsolutions.ca">Maplab-users@dmsolutions.ca</=
A>&gt;</DIV>
<DIV>Sent: Thursday, June 12, 2003 1:45 PM</DIV>
<DIV>Subject: Re: [Mapserver-users] Query problem in MapLab</DIV></DIV>
<DIV><BR></DIV>&gt; Mario, please use the maplab-users mailing list to =
ensure a=20
response for <BR>&gt; maplab-specific issues.<BR>&gt; <BR>&gt; I've cc'd =
it=20
here.&nbsp; There may be a problem in maplab, we'll take a look <BR>&gt; =
and let=20
you know.<BR>&gt; <BR>&gt; Cheers,<BR>&gt; <BR>&gt; Paul<BR>&gt; =
<BR>&gt;=20
Valerio Noti wrote:<BR>&gt; &gt; Hi,<BR>&gt; &gt; I'm new to=20
Mapserver/MapLab.<BR>&gt; &gt; i'm trying to build a web application =
with MapLab=20
GMapFactory module.<BR>&gt; &gt; I'm using MapServer 3.6.6 for win32, =
mapScript=20
3.6 dll and MapLab 2.0.1 on<BR>&gt; &gt; IIS5.<BR>&gt; &gt; I wrote =
mapfile with=20
several shapefiles and the application seems to work<BR>&gt; &gt; =
except<BR>&gt;=20
&gt; for the query button.<BR>&gt; &gt; The layer section for shapefiles =
is as=20
the following:<BR>&gt; &gt; /********************************<BR>&gt; =
&gt;=20
LAYER<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; NAME "Region"<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp; STATUS DEFAULT<BR>&gt; =
&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
DATA "Region"<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; TYPE POLYGON<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp; CLASSITEM "Regione"<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp; UNITS METERS<BR>&gt; &gt;&nbsp; LABELITEM=20
"Region"<BR>&gt; &gt;&nbsp;&nbsp;&nbsp; CLASS<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION /./<BR>&gt; =
&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
OUTLINECOLOR 128 128 128<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 125 =
225=20
185<BR>&gt; &gt;&nbsp; TEMPLATE "region.html"<BR>&gt; &gt;&nbsp; =
LABEL<BR>&gt;=20
&gt;&nbsp;&nbsp; COLOR 0 0 0<BR>&gt; &gt;&nbsp;&nbsp; SIZE tiny<BR>&gt;=20
&gt;&nbsp;&nbsp; FONT Arial<BR>&gt; &gt;&nbsp; END<BR>&gt; =
&gt;&nbsp;&nbsp;=20
END<BR>&gt; &gt;&nbsp;&nbsp; TOLERANCE 5<BR>&gt; &gt;&nbsp;&nbsp; HEADER =

"region_header.html"<BR>&gt; &gt;&nbsp;&nbsp; FOOTER=20
"region_footer.html"<BR>&gt; &gt; END<BR>&gt; &gt;=20
/********************************<BR>&gt; &gt; When I try to query the =
map=20
nothing happens and the browser gives me the<BR>&gt; &gt; following=20
error:<BR>&gt; &gt; /********************************<BR>&gt; &gt; =
"Property not=20
supported by the object"<BR>&gt; &gt; Raw 36<BR>&gt; &gt; Char 9<BR>&gt; =
&gt; <A=20
href=3D"http://192.168.1.51/maplab-2.0-release/projects/gmf_apps/toscana/=
toscana.pht">http://192.168.1.51/maplab-2.0-release/projects/gmf_apps/tos=
cana/toscana.pht</A><BR>&gt;=20
&gt;=20
ml?layer_status%5B%5D=3DRegioni&amp;PrevStateKey=3DBBOX%3D1570594.70743%2=
C4812069.21<BR>&gt;=20
&gt;=20
037%2C1711125.72305%2C4952891.36545%7CSRS%3D%7CMAPSIZE%3D400%2C400%7CLAYE=
RS%<BR>&gt;=20
&gt;=20
3D0&amp;NotFirstLoad=3D1&amp;RosaMode=3D1&amp;ROSA_CMD=3DQUERY&amp;INPUT_=
TYPE=3Dauto_rect&amp;INPUT_COOR<BR>&gt;=20
&gt; D=3D241%2C334%3B241%2C334&amp;QueryString=3D<BR>&gt; &gt;=20
/********************************<BR>&gt; &gt; I opened phtml file and =
commented=20
the line 36:<BR>&gt; &gt; /********************************<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // give it =
focus<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
mapquery.focus();<BR>&gt;=20
&gt; /********************************<BR>&gt; &gt; After that nothing =
happens=20
when I try to query the map.<BR>&gt; &gt; I got the same error when I =
build the=20
application in HTML without rosa<BR>&gt; &gt; applet.<BR>&gt; &gt; =
<BR>&gt; &gt;=20
Any help appreciated<BR>&gt; &gt; <BR>&gt; &gt; Thanks<BR>&gt; &gt; =
<BR>&gt;=20
&gt; Mario<BR>&gt; &gt; <BR>&gt; &gt;=20
_______________________________________________<BR>&gt; &gt; =
Mapserver-users=20
mailing list<BR>&gt; &gt; <A=20
href=3D"mailto:Mapserver-users@lists.gis.umn.edu">Mapserver-users@lists.g=
is.umn.edu</A><BR>&gt;=20
&gt; <A=20
href=3D"http://lists.gis.umn.edu/mailman/listinfo/mapserver-users">http:/=
/lists.gis.umn.edu/mailman/listinfo/mapserver-users</A><BR>&gt;=20
&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; Paul Spencer<BR>&gt; Applications and =

Software Development<BR>&gt; DM Solutions Group Inc.<BR>&gt; <A=20
href=3D"http://www.dmsolutions.ca">http://www.dmsolutions.ca</A><BR>&gt; =
<BR>&gt;=20
<BR>&gt; </FONT></DIV></BODY></HTML>

------=_NextPart_000_0060_01C330F2.D4C2A210--



This archive was generated by Pipermail.