[mapserver-users] GetFeatureInfo: Search returned no results, with OGR-DATA

Uwe Raudszus URaudszus at STADTDO.DE
Tue Nov 15 05:24:28 EST 2011


Hello All, 

I'm trying to migrate to MapServer 6.0.1. Now I have a Problem with
GetFeatureInfo Request to OGR-Datasets.

I have stored the same Data in to GIS-Formats (MapInfo tab an ESRI Shp). The
Layer Definition in my mapfile is:
LAYER # Stadtbezirksgrenzen
  
  # Name und Geometrietyp
  NAME "Stadtbezirksgrenzen"
  TYPE POLYGON
  
  # Sichtbarkeit
  STATUS OFF
  MINSCALE 0
  MAXSCALE 25000000
  #DEBUG TRUE
  
  
  # Datenquelle
  DATA "statist/shp/Stadtb_region.shp"
  #CONNECTIONTYPE OGR
  #CONNECTION "statist/Stadtb.TAB"
   
  PROJECTION
    "init=EPSG:31466"
    #"init=EPSG:25832"
  END
  
  # Darstellung in der Karte.
  # Stadtbezirk
  CLASS 
    NAME "Stadtbezirksgrenzen"   
    STYLE # Umrandung
          OUTLINECOLOR 255 0 0
          SYMBOL "Linie"
          Size 2
    END     
  END  
   
  # für HTML queries
  TEMPLATE "./html/objektinfo.html"
       
  METADATA # Für OGC Services
    "WMS_ENABLE_REQUEST" "*"
    "WMS_SRS" "EPSG:31466 EPSG:31467 EPSG:25832 EPSG:44122 EPSG:35832
EPSG:4326"
    "WMS_TITLE" "Stadtbezirksgrenzen"
    "WMS_abstract" "Stadtbezirksgrenzen der Stadt Dortmund"
    "WMS_keywordlist"    "Stadtbezirk"
    "WMS_opaque"    "0"
    "GML_INCLUDE_ITEMS" "all"
    "WMS_INCLUDE_ITEMS" "all"
    "WMS_FEATURE_INFO_MIME_TYPE" "text/html"
    "WMS_ENCODING" "ISO-8859-1"
  END
     
END

If I use the Shapefile as Datasource the FeatureInfo Request works fine:
Request:
http://asgeow02.stadtdo.de/mapserver6/mapserver?map=/GDI_Programme/UMNMapServer6/Dienste/Geobasisdaten/wmstest.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=383996.973679,5706704.707753,396276.247858,5713754.308091&CRS=EPSG:25832&WIDTH=1175&HEIGHT=675&LAYERS=Stadtbezirksgrenzen&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE&QUERY_LAYERS=Stadtbezirksgrenzen&INFO_FORMAT=text/plain&X=423&Y=83
Response:
GetFeatureInfo results:

Layer 'Stadtbezirksgrenzen'
  Feature 11: 
    STBEZNR = '9'
    EDATUM = '19891231'
    GELösCHT = ''
    FORTFühRUN = '19941001'
    BEZEICHNUN = 'MENGEDE'

If I use the MapInfo (OGR) as Datasource, i get no result.

Layer Definition change:
#DATA "statist/shp/Stadtb_region.shp"
CONNECTIONTYPE OGR
CONNECTION "statist/Stadtb.TAB"

The Request is the same.
Response:
GetFeatureInfo results:

  Search returned no results.

The getMap-Request works fine with both Datasources.

Thanks for any help! 

Uwe

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/GetFeatureInfo-Search-returned-no-results-with-OGR-DATA-tp6995758p6995758.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list