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