[Mapserver-users] Performing queries with GDAL/OGR and PHPMapScript
Franck Martin
franck at sopac.org
Wed Jul 23 21:41:52 PDT 2003
--=-9sCG7fXOfNpP0wYNpt4X
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
BTW, I found out how to switch on/off the label I set maxlabelsize to 0
Have a look at http://map.sopac.org/ click on the Viti Levu Map, this is
the most accomplished map.
Ok now I need to be able to query some of the layers.
What I see in the PHPMapscript is that the script returns the ID of the
object selected. In the case of mysql ,postgis, DBF, the drivers are
built inside php, so accessing the full record is not a problem. But in
the case of layers connected via OGR (like MapInfo tables), How do I
access the full record?
It seems that the mapserver is accessing all the fields of a record via
OGR when it needs for instance to label objects. But it seems to me that
this API does not exists in PHPMapScript.
I tried to look at some doc, but could not find anything...
Can someone, provide me a brief outline, on how queries work with
PHPMapScript?
--
Franck Martin <franck at sopac.org>
SOPAC
--=-9sCG7fXOfNpP0wYNpt4X
Content-Type: text/html; charset=utf-8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/1.1.8">
</HEAD>
<BODY>
BTW, I found out how to switch on/off the label I set maxlabelsize to 0<BR>
Have a look at <A HREF="http://map.sopac.org/">http://map.sopac.org/</A> click on the Viti Levu Map, this is the most accomplished map.<BR>
<BR>
Ok now I need to be able to query some of the layers.<BR>
<BR>
What I see in the PHPMapscript is that the script returns the ID of the object selected. In the case of mysql ,postgis, DBF, the drivers are built inside php, so accessing the full record is not a problem. But in the case of layers connected via OGR (like MapInfo tables), How do I access the full record?<BR>
It seems that the mapserver is accessing all the fields of a record via OGR when it needs for instance to label objects. But it seems to me that this API does not exists in PHPMapScript.<BR>
<BR>
I tried to look at some doc, but could not find anything...<BR>
<BR>
Can someone, provide me a brief outline, on how queries work with PHPMapScript?<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Franck Martin <<A HREF="mailto:franck at sopac.org">franck at sopac.org</A>><BR>
SOPAC
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
--=-9sCG7fXOfNpP0wYNpt4X--
More information about the MapServer-users
mailing list