Using a SQL view as test data:
select 'TMA'::varchar as type, 'TKXF'::varchar as designator, 'BERMUDA TMA'::varchar as name,
st_geometryfromtext('POLYGON((-60 80,0 80,60 80,60 -80,0 -80,-60 -80,-60 80))', 4326)::geometry as border
Compare a failing GetFeatureInfo request:
http://127.0.0.1/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&INFO_FORMAT=application%2Fvnd.ogc.gml&format=image%2Fpng&srs=EPSG%3A4326&FEATURE_COUNT=300&X=0&Y=0&BBOX=-180%2C-90%2C180%2C90&WIDTH=500&HEIGHT=500&STYLES=&QUERY_LAYERS=LIVE%3AaixmAirspace&LAYERS=LIVE%3AaixmAirspace&VIEWPARAMS=AIRSPACETYPE%3ATMA%25%3BREFDATE%3A2015-01-26+13%5C%3A10%3BAREAID%3ATXKF&SEARCH_ENTITIES=airspace&_=1422277843836
With a working GetMap request:
http://127.0.0.1/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&format=image%2Fpng&srs=EPSG%3A4326&BBOX=-180%2C-90%2C180%2C90&WIDTH=500&HEIGHT=500&STYLES=&LAYERS=LIVE%3AaixmAirspace&VIEWPARAMS=AIRSPACETYPE%3ATMA%25%3BREFDATE%3A2015-01-26+13%5C%3A10%3BAREAID%3ATXKF
SLD attached for styling.
|