many thanks Guillaume<br>it works fine now!<br><br>Best<br><br>Giovanni<br><br><div class="gmail_quote">On Fri, Jan 23, 2009 at 5:42 PM, Guillaume Sueur-2 (via Nabble) <span dir="ltr">&lt;<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2218219&i=0" target="_top" rel="nofollow">ml-user%2B137812-417701502@...</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

try with :
<br>using unique gid
<br>in your data string
<br><br>regards
<br><br>guillaume
<br><br>gzambotti a écrit :
<div><div class='shrinkable-quote'><br>&gt; Hi there,
<br>&gt; 
<br>&gt; I am new with mapserver.
<br>&gt; I use a WMS/mapserver (4.9) to Get Feature Info into a google maps balloon.
<br>&gt; If I set my mapfile to a shapefile everything works very well. 
<br>&gt; When I try to use PostGIS I get this error (Content-type:
<br>&gt; application/vnd.ogc.se_xml ).
<br>&gt; any idea? 
<br>&gt; 
<br>&gt; many thanks, Giovanni
<br>&gt; 
<br>&gt; Here my mapfile:
<br>&gt; 
<br>&gt; LAYER
<br>&gt; &nbsp; NAME &quot;ED_Total&quot;
<br>&gt; &nbsp; MINSCALE 1000000
<br>&gt; &nbsp; &nbsp; CONNECTIONTYPE postgis
<br>&gt; &nbsp; &nbsp; CONNECTION &nbsp; &nbsp;&quot;user=africamaps password=j0kerz dbname=africamaps
<br>&gt; host=localhost port=5432&quot;
<br>&gt; &nbsp; &nbsp; #DATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;the_geom from ED_Total using unique gid USING SRID=4326&quot;
<br>&gt; &nbsp; &nbsp; DATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;the_geom from (select gid, NAME, CITY, STATE, the_geom
<br>&gt; from ED_Total) as foo using unique the_geom using SRID=4326&quot;
<br>&gt; &nbsp; &nbsp; #DATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;/opt/CGA/data/vec/gio1/shapefile/EDtotal&quot;
<br>&gt; &nbsp; &nbsp; TYPE POINT
<br>&gt; &nbsp; &nbsp; METADATA
<br>&gt; &nbsp; &nbsp;         &quot;wms_title&quot; &quot;ED_Total&quot;
<br>&gt; &nbsp;          &quot;wms_srs&quot; &quot;EPSG:4326 EPSG:900913 EPSG:41001 EPSG:54004&quot;
<br>&gt; &nbsp; &nbsp;         &#39;wms_include_items&#39; &#39;all&#39;
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;wms_onlineresource&quot; 
<br>&gt; &quot;<a href="http://cga-3.hmdc.harvard.edu/cgi-bin/mapserv?map=/opt/CGA/newam/htdocs/gtest/ednet.map&amp;" rel="nofollow" target="_blank">http://cga-3.hmdc.harvard.edu/cgi-bin/mapserv?map=/opt/CGA/newam/htdocs/gtest/ednet.map&amp;</a>&quot;
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;ows_exceptions_format&quot; &quot;application/vnd.ogc.se_xml&quot;
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;wms_exceptions_format&quot; &quot;application/vnd.ogc.se_xml &quot;
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;wms_exceptions_format&quot; &quot;application-vnd.ogc.se_inimage&quot;
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;wms_ature_info_mime_type&quot; &quot;text/html&quot;
<br>&gt; &nbsp; &nbsp; END
<br>&gt; &nbsp; &nbsp; STATUS ON
<br>&gt; &nbsp; &nbsp; PROJECTION &nbsp;&quot;+init=epsg:4326&quot;
<br>&gt; &nbsp; &nbsp; END #projection
<br>&gt; &nbsp; &nbsp; CLASS
<br>&gt; &nbsp;         NAME &quot;lt 1&quot;
<br>&gt;         STYLE
<br>&gt;          &nbsp;COLOR 255 255 250
<br>&gt;          &nbsp;SYMBOL &#39;circle&#39;
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZE 8.5
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; END
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; STYLE
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR 255 0 0
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYMBOL &#39;thickcross&#39;
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZE 7.5
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; END
<br>&gt; &nbsp; &nbsp; END #class
<br>&gt; &nbsp; &nbsp; HEADER &quot;/opt/CGA/newam/htdocs/gtest/header.html&quot;
<br>&gt; &nbsp; &nbsp; TEMPLATE &quot;/opt/CGA/newam/htdocs/gtest/query.html&quot;
<br>&gt; &nbsp; &nbsp; FOOTER &quot;/opt/CGA/newam/htdocs/gtest/footer.html&quot;
<br>&gt; END #layer
<br>&gt; 
<br>&gt; &nbsp;
</div>_______________________________________________
</div>mapserver-users mailing list
<br><a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=2206440&amp;i=0" rel="nofollow" target="_blank">mapserver-users@...</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="nofollow" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>

</blockquote></div><br><br clear="all"><br>-- <br>Giovanni Zambotti<br>34 Prince st, Cambridge MA<br>02139 USA<br>Phone: (617) 492 - 0359<br>

<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/Get-Feature-Info-into-gmaps-balloon-tp2206135p2218219.html">Re: [mapserver-users] Get Feature Info into gmaps balloon</a><br>
Sent from the <a href="http://n2.nabble.com/Mapserver---User-f1969211.html">Mapserver - User mailing list archive</a> at Nabble.com.<br>