<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
In the application there are other layer postgis (ie. Toponimi,
quote ecc.), but only "Fontane" layer is queryable. The layer
"Sentieri" with Shape file data is queryable correctly.<br>
If i change toponimi layer to queryable, the system notify me error.
Error only with postgis layer in query mode.<br>
I attach the map_query_float.php<br>
<br>
Saluti, thanks<br>
<br>
paolo mangraviti<br>
<br>
On 15/12/2010 10:17, Antonio García wrote:
<blockquote cite="mid:SNT143-w17FE97B5126C02D999500EDD140@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
Can you do any query in other point layer? Is only in this layer
or in all the project?
<div><br>
</div>
<div>Send us you map_query_float.php</div>
<div><br>
</div>
<div>
<div>Saludos, <br>
----------- <br>
Antonio García Benlloch <br>
<br>
<strong>Correo: <br>
</strong><a class="moz-txt-link-abbreviated" href="mailto:angarben@hotmail.com">angarben@hotmail.com</a> <br>
<a moz-do-not-send="true" href="mailto:angarben@aaa.upv.es">angarben@aaa.upv.es</a>
<br>
<br>
<strong>Web: <br>
</strong><a class="moz-txt-link-freetext" href="http://personales.alumno.upv.es/~angarben">http://personales.alumno.upv.es/~angarben</a><br>
<span style="font-size: 10pt; font-family: 'Courier New';
color: black;" lang="EN-GB"></span><span style="font-size:
7.5pt; font-family: 'Arial','sans-serif'; color: green;"><br>
Antes de imprimir este mensaje, asegúrese de que es
necesario.
Proteger el medio ambiente está en nuestra mano.</span><span
style="font-size: 10pt; font-family: 'Courier New'; color:
black;"> </span><span style="font-size: 10pt; font-family:
'Verdana','sans-serif';"></span>
<p class="ecxecxMsoNormal"><span style="font-size: 7.5pt;
font-family: 'Arial','sans-serif'; color: rgb(191, 191,
191);">Este mensaje y sus archivos adjuntos son
confidenciales. No está
permitida su reproducción o distribución sin la
autorización expresa de Antonio García. Si ha recibido
este mensaje por error, por favor
bórrelo e informe a <a moz-do-not-send="true"
href="mailto:cdcom@grupocdcom.com"><span style="color:
rgb(191, 191, 191); text-decoration: none;">angarben@hotmail.com</span></a>.
</span><span style="font-size: 10pt; font-family:
'Verdana','sans-serif';"></span></p>
</div>
<br>
<br>
<br>
<br>
> From: <a class="moz-txt-link-abbreviated" href="mailto:ka-map-users-request@lists.maptools.org">ka-map-users-request@lists.maptools.org</a><br>
> Subject: ka-Map-users Digest, Vol 66, Issue 2<br>
> To: <a class="moz-txt-link-abbreviated" href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</a><br>
> Date: Tue, 14 Dec 2010 12:00:02 -0500<br>
> <br>
> Send ka-Map-users mailing list submissions to<br>
> <a class="moz-txt-link-abbreviated" href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</a><br>
> <br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
> <a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>
> or, via email, send a message with subject or body 'help'
to<br>
> <a class="moz-txt-link-abbreviated" href="mailto:ka-map-users-request@lists.maptools.org">ka-map-users-request@lists.maptools.org</a><br>
> <br>
> You can reach the person managing the list at<br>
> <a class="moz-txt-link-abbreviated" href="mailto:ka-map-users-owner@lists.maptools.org">ka-map-users-owner@lists.maptools.org</a><br>
> <br>
> When replying, please edit your Subject line so it is more
specific<br>
> than "Re: Contents of ka-Map-users digest..."<br>
> <br>
> <br>
> Today's Topics:<br>
> <br>
> 1. Problem to query a postgis layer (Paolo Mangraviti)<br>
> <br>
> <br>
>
----------------------------------------------------------------------<br>
> <br>
> Message: 1<br>
> Date: Tue, 14 Dec 2010 14:04:52 +0100<br>
> From: Paolo Mangraviti
<a class="moz-txt-link-rfc2396E" href="mailto:paolo.mangraviti@katamail.com"><paolo.mangraviti@katamail.com></a><br>
> Subject: [ka-Map-users] Problem to query a postgis layer<br>
> To: <a class="moz-txt-link-abbreviated" href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</a><br>
> Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:4D076B74.2050604@katamail.com"><4D076B74.2050604@katamail.com></a><br>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
> <br>
> Hi ti all,<br>
> I have a problem with postgis layer in ka-map. Layer is
viewed <br>
> correctly, but on query a point of that layer, ka-map
notify me an error:<br>
> <br>
> Fatal error: [MapServer Error]: msQueryByPoint(): No
matching record(s) <br>
> found. in /var/www/webgis/ka-map/htdocs/map_query_float.php
on line 234<br>
> <br>
> If I omit the TEMPLATE directive, no query is performed.<br>
> <br>
> Layer specification in map file is:<br>
>
#-------------------------------------------------------------------------------------------------------------------------------------------------------<br>
> LAYER # Punti di Interesse :: Fontane<br>
> CONNECTIONTYPE postgis<br>
> CONNECTION "user=webgis password=******** dbname=sentieri <br>
> host=127.0.0.1"<br>
> DATA "wpt from punto"<br>
> FILTER "tipologia = 'Fontana'"<br>
> <br>
> TYPE POINT<br>
> TOLERANCE 5<br>
> STATUS ON<br>
> <br>
> NAME "Fontane e Sorgenti"<br>
> GROUP "Fontane"<br>
> LABELITEM "titoloMappa"<br>
> <br>
> TEMPLATE "../sample.html"<br>
> <br>
> CLASS<br>
> NAME "Fontane"<br>
> STYLE<br>
> SYMBOL "fontana"<br>
> OUTLINECOLOR 0 0 0<br>
> END<br>
> LABEL<br>
> POSITION uc<br>
> SIZE 7<br>
> COLOR 0 0 0<br>
> BACKGROUNDCOLOR 228 253 18<br>
> TYPE truetype<br>
> FONT arial<br>
> END<br>
> END<br>
> <br>
> <br>
> METADATA<br>
> "wms_title" "Fontane e Sorgenti"<br>
> "imageformat" "GIF"<br>
> "queryable" "true"<br>
> "max_extents" "auto"<br>
> "tile_source" "redraw"<br>
> "fields" "denominazione:Nome,quota:mt"<br>
> "searchfield" "denominazione"<br>
> "identificativoSentiero" "none"<br>
> END<br>
> PROJECTION<br>
> "proj=utm"<br>
> "ellps=WGS84"<br>
> "datum=WGS84"<br>
> "zone=33"<br>
> "units=m"<br>
> "south"<br>
> "no_defs"<br>
> END<br>
> END<br>
>
#-------------------------------------------------------------------------------------------------------------------------------------------------------<br>
> <br>
> Thanks a lot for support,<br>
> <br>
> paolo mangraviti<br>
> <br>
> <br>
> ------------------------------<br>
> <br>
> _______________________________________________<br>
> ka-Map-users mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br>
> <a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>
> <br>
> <br>
> End of ka-Map-users Digest, Vol 66, Issue 2<br>
> *******************************************<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
ka-Map-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</a>
</pre>
</blockquote>
<br>
</body>
</html>