<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I was trying to query a postgis layer for my locate
widget, and assumed it was a 'feature' that you couldn't do a getShape request
on a postgis layer. But according to <A
href="http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=316">http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=316</A></FONT></DIV>
<DIV><FONT face=Arial size=2>it was fixed a while ago. Did it break
again?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</A>
[mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Dirk Jesko<BR>Sent:
10 May 2005 22:59<BR>To: <A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A><BR>Subject:
Re: [Chameleon] Maptips and PostGIS</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Paul,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>All PostGIS layers are similar to the
following.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Dirk</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>LAYER # Gemeinden (Fläche)<BR>
GROUP "Grenzen"<BR>
NAME
"Gemeinden"<BR> CONNECTIONTYPE postgis<BR>
CONNECTION "user=... password=... dbname=... host=...
port=..."<BR>
DATA "the_geom from
sel_admingebiete using SRID=4326"<BR>
FILTER "feat_type='GEMEINDE' and projektname
= 'infogis'"<BR> STATUS
OFF<BR> TYPE
POLYGON<BR> HEADER
"gemeinde_header.html"<BR> TEMPLATE
"gemeinde_query.html"<BR>
FOOTER "gemeinde_footer.html"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
METADATA<BR> "DESCRIPTION"
"Gemeinden"<BR> "GROUP"
"Grenzen"<BR> "LAYER"
"Gemeinden"<BR> END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
PROJECTION<BR>
"init=epsg:4326"<BR>
"towgs84=-598.1,-73.7,-418.2,-0.202,-0.045,2.455,-6.70"<BR>
END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> LABELITEM
"polygon_nm"<BR> LABELMAXSCALE
75000.0<BR> LABELMINSCALE
20000.0</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
CLASS<BR>
NAME
"Gemeinden"<BR>
STYLE<BR>
COLOR -1 -1
-1<BR> OUTLINECOLOR 20 200
140<BR> END<BR>
LABEL<BR> ANGLE
auto<BR> ANTIALIAS
TRUE<BR> BUFFER
4<BR> COLOR 220 220
220<BR> FONT
"arial-bold"<BR> SHADOWCOLOR 0 0
0<BR> SHADOWSIZE 1
1<BR> TYPE
TRUETYPE<BR> SIZE
11<BR> POSITION
CC<BR> PARTIALS
FALSE<BR> MINDISTANCE
25<BR> END<BR> END<BR> END
# Gemeinden (Fläche)</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>Paul Spencer wrote:</DIV>
<DIV> </DIV>
<DIV>> Dirk,<BR>><BR>> what is the configuration of your postgis layer
in your map file?<BR>><BR>> Paul<BR>><BR>> Dirk Jesko
wrote:<BR>><BR>>> Hello again,<BR>>><BR>>> I have done some
more investigations regarding the problem of PostGIS <BR>>> layers not
recognized by the Maptips widget. It works fine with <BR>>> shapes but not
with PostGIS. Until now, I found that the getShape <BR>>>
function:<BR>>><BR>>>
$oShape = $oLayer->getShape($nTile, 0 );<BR>>><BR>>> in
LayerAttributes.php does not return an object if the layer is a <BR>>>
PostGIS layer. Therefore, the layer does not appear in the selection
<BR>>> dialog.<BR>>><BR>>> If I use $oLayer->getItems() to
retrieve the attributes of the <BR>>> layers, they at least appear in the
"Configure MapTips", but nothing <BR>>> happens within the map. Might this
be specific to the development <BR>>> version of Mapserver/MapScript (see
below for the configuration)?<BR>>><BR>>> By the way, clicking
<OK> in the "Configure MapTips" executes the <BR>>> currently active
navigation function, e.g. ZoomIn or ZoomOut. Is this <BR>>> a
misconfiguration or a bug?<BR>>><BR>>> Finally, my
configuration:<BR>>><BR>>> Windows XP Pro<BR>>> Postgres 8
nativ Windows<BR>>> PostGIS 1.0<BR>>> Apache 2.0.53<BR>>> PHP
5.0.3 (modul)<BR>>> Mapserver and Mapscript 4.5 (development version from
MapTools.org).<BR>>><BR>>> Regards,<BR>>> Dirk
Jesko<BR>>><BR>>><BR>>><BR>>><BR>>>
_______________________________________________<BR>>> Chameleon mailing
list<BR>>> <A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR>>>
<A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR>>><BR>></DIV>
<DIV> </DIV>
<DIV>_______________________________________________<BR>Chameleon mailing
list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR></FONT></DIV></BODY></HTML>