[OpenLayers-Users] Highlight on hover

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Fri Sep 4 10:32:22 EDT 2009


I have 3 geometries in the postgis table that is queried.
The bounds of geom900913 are returns but not the geometry attribute. 
<gml:boundedBy>
<gml:Box srsName="EPSG:900913">
<gml:coordinates>-8212506.502737,5697097.841728 
-8204853.558950,5702856.964043</gml:coordinates>
</gml:Box>
</gml:boundedBy>

But the 2 others geometries are returned.
<geom4326>0106000020E610000001000 .....
<geom32198>0106000020 .......

Here is the layer definition in case it is a mapserver(5.2.1) issue. If 
you think it is I'll post on the mapserver list.
thanks for your help,
Steve

LAYER
  NAME "national_2006"
  GROUP "Vulnerabilite"
  CONNECTIONTYPE postgis
  CONNECTION "host=10.2.192.247 dbname=geo user=xxx password=xxx 
port=5432"
  DATA "geom900913 FROM lim_admin.inddef_2006 using unique gid"
  TYPE POLYGON
  STATUS off

PROJECTION
  "init=epsg:900913"
END
PROCESSING "CLOSE_CONNECTION=DEFER"
  METADATA
    "wms_title"             "Indice de défavorisation national 2006"
    "wms_group_title"       "Vulnérabilité"
    'wms_srs'             'EPSG:4326 EPSG:32198 EPSG:900913'
    "wms_include_items" "all"
        "gml_include_items" "all"
        'gml_featureid' 'gid'
  END
DUMP TRUE
        TOLERANCE 0
        TEMPLATE '../template/query_indiceDef.html'
HEADER '../template/query_header.html'
FOOTER '../template/query_footer.html'
        INCLUDE "/ms4w/inspq/map/Class_IndiceDefavorisation.map"
END


Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de santé publique du Québec
945, avenue Wolfe
Québec, Qc G1V 5B3 
Tél.: (418) 650-5115 #5281
Fax.: (418) 654-3144
steve.toutant at inspq.qc.ca
http://www.inspq.qc.ca
 




François Van Der Biest 
<francois.vanderbiest at camptocamp.com>@openlayers.org 
Envoyé par : users-bounces at openlayers.org
04/09/2009 10:21 AM

A
Steve.Toutant at inspq.qc.ca
cc
users at openlayers.org
Objet
Re: [OpenLayers-Users] Highlight on hover








On Fri, Sep 4, 2009 at 4:13 PM, François Van Der
Biest<francois.vanderbiest at camptocamp.com> wrote:
> Hi Steve.
>
> A potential reason is that the GML you're receiving does not use the
> same SRS as the one of your map.
> You may check this using FireBug.

OK, you're using MapServer.
Most probably, you've got no geometry in the GML response, but only 
bounds.

Are there some MapServer experts out there to tell us whether it's
possible to have geometries returned on getFeatureInfo ?
If yes, from which MapServer version is it possible ?

F.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090904/11fb9bfc/attachment.html


More information about the Users mailing list