[mapserver-users] Get Feature Info into gmaps balloon

gzambotti g.zambotti at gmail.com
Fri Jan 23 13:58:03 PST 2009


Hi there,

I am new with mapserver.
I use a WMS/mapserver (4.9) to Get Feature Info into a google maps balloon.
If I set my mapfile to a shapefile everything works very well. 
When I try to use PostGIS I get this error (Content-type:
application/vnd.ogc.se_xml ).
any idea? 

many thanks, Giovanni

Here my mapfile:

LAYER
  NAME "ED_Total"
  MINSCALE 1000000
    CONNECTIONTYPE postgis
    CONNECTION    "user=africamaps password=j0kerz dbname=africamaps
host=localhost port=5432"
    #DATA          "the_geom from ED_Total using unique gid USING SRID=4326"
    DATA          "the_geom from (select gid, NAME, CITY, STATE, the_geom
from ED_Total) as foo using unique the_geom using SRID=4326"
    #DATA           "/opt/CGA/data/vec/gio1/shapefile/EDtotal"
    TYPE POINT
    METADATA
   	 "wms_title" "ED_Total"
  	 "wms_srs" "EPSG:4326 EPSG:900913 EPSG:41001 EPSG:54004"
   	 'wms_include_items' 'all'
         "wms_onlineresource" 
"http://cga-3.hmdc.harvard.edu/cgi-bin/mapserv?map=/opt/CGA/newam/htdocs/gtest/ednet.map&"
         "ows_exceptions_format" "application/vnd.ogc.se_xml"
         "wms_exceptions_format" "application/vnd.ogc.se_xml "
         "wms_exceptions_format" "application-vnd.ogc.se_inimage"
         "wms_ature_info_mime_type" "text/html"
    END
    STATUS ON
    PROJECTION  "+init=epsg:4326"
    END #projection
    CLASS
  	NAME "lt 1"
	STYLE
	  COLOR 255 255 250
	  SYMBOL 'circle'
          SIZE 8.5
        END
        STYLE
          COLOR 255 0 0
          SYMBOL 'thickcross'
          SIZE 7.5
        END
    END #class
    HEADER "/opt/CGA/newam/htdocs/gtest/header.html"
    TEMPLATE "/opt/CGA/newam/htdocs/gtest/query.html"
    FOOTER "/opt/CGA/newam/htdocs/gtest/footer.html"
END #layer

 
-- 
View this message in context: http://n2.nabble.com/Get-Feature-Info-into-gmaps-balloon-tp2206135p2206135.html
Sent from the Mapserver - User mailing list archive at Nabble.com.




More information about the MapServer-users mailing list