Re: [mapserver-users] RE Problem using WMS GetFeatureInfo in OpenLayers with different projections

2014-01-16 Thread Dejan Gambin
Tried...no luck :-(

Thx anyway

On 16. sij. 2014., at 14:36, steve.tout...@inspq.qc.ca wrote:

 
 In the metadata tag of your layer try set 
 wms_srs   EPSG:4326 EPSG:900913 
 
 
 
 
 Dejan Gambin dejan.gam...@coin.hr@lists.osgeo.org 
 Envoyé par : mapserver-users-boun...@lists.osgeo.org
 2014-01-16 05:03
 
 A
 mapserver-users@lists.osgeo.org
 cc
 Objet
 [mapserver-users] Problem using WMS GetFeatureInfo in OpenLayerswith 
 different projections
 
 
 
 
 
 
 
 Hi,
 
 I am trying to send WMS GetFeatureInfo request using OL WMSGetFeatureInfo 
 control. My source data is in 4326 and map is displayed in 900913. I have 
 something like this in mapfile:
 
 LAYER
  NAME mylayer
  TYPE RASTER
  STATUS ON
  PROJECTION
init=epsg:4326
  END  
  METADATA
wms_srs   EPSG:4326
wms_title  whatever
gml_include_items value_0
gml_value_0_alias Value 0
gml_geometries none
  END
  OPACITY 0
  TILEINDEX mylayer_index
  TILEITEM LOCATION
  TEMPLATE void
  DUMP true
 END
 
 In OL, I am using something like:
 
var layer = new OpenLayers.Layer.WMS(
'mylayer',
'http://my.domain.com/cgi-bin/mywms?',
{
format:'image/png',
transparent:true,
isBaseLayer:false,
layers:'mylayer'
});
 
control = new OpenLayers.Control.WMSGetFeatureInfo({
url:  http://my.domain.com/cgi-bin/mywms?;,
layers: [layer],
hover: false,
infoFormat: 'gml',
maxFeatures: 1
});
 
 wms_srs in WEB part is EPSG:900913 EPSG:4326 so it can serve data in both 
 projections
 
 The problem is - when I click to get the info I get Internal server error 
 and in apache log I get Segmentation fault followed by Premature end of 
 script headers: mywms
 
 For test, I reprojected my source rasters to 900913, changed PROJECTION and 
 wms_srs in LAYER to 900913 and then everything works.
 
 Does anyone know what can be the problem? I am using MapServer 6.0.1 on 
 debian os.
 
 Thanks for any help
 
 regards, dejan
 
 
 
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] RE Problem using WMS GetFeatureInfo in OpenLayers with different projections

2014-01-16 Thread Dejan Gambin
Yep I tried this already. Nothing :-(

On 16. sij. 2014., at 15:30, steve.tout...@inspq.qc.ca wrote:

 
 Anything in mapserver logs? 
 add debug 5 in the layer definition AND in your MAP definition 
 steve
 Steve Toutant, M. Sc.
 Analyste en géomatique
 Secteur environnement
 Direction de la santé environnementale et de la toxicologie
 Institut national de santé publique du Québec
 Tél.: 418 646-6777 poste 30015
 Téléc.: 418 644-4593
 steve.tout...@inspq.qc.ca
 http://www.inspq.qc.ca
 http://www.monclimatmasante.qc.ca
 
 Pour me rejoindre par courrier
 Service de l'infrastructure et du réseau
 Direction des technologies de l'information
 Ministère de la Sécurité Publique
 2525 boul. Laurier, 2è étage
 Tour Laurentides
 Québec, G1V 2L2 
 
 
 Dejan Gambin dejan.gam...@coin.hr
 2014-01-16 09:20
 
 A
 steve.tout...@inspq.qc.ca
 cc
 mapserver-users@lists.osgeo.org
 Objet
 Re: RE [mapserver-users] Problem using WMS GetFeatureInfo in OpenLayers   
  with different projections
 
 
 
 
 
 
 
 Tried...no luck :-( 
 
 Thx anyway 
 
 On 16. sij. 2014., at 14:36, steve.tout...@inspq.qc.ca wrote: 
 
 
 In the metadata tag of your layer try set 
 wms_srs   EPSG:4326 EPSG:900913 
 
 
 
 Dejan Gambin dejan.gam...@coin.hr@lists.osgeo.org 
 Envoyé par : mapserver-users-boun...@lists.osgeo.org
 2014-01-16 05:03
 
 
 A
 mapserver-users@lists.osgeo.org
 cc
 Objet
 [mapserver-users] Problem using WMS GetFeatureInfo in OpenLayerswith 
 different projections
 
 
 
 
 
 
 
 
 
 Hi,
 
 I am trying to send WMS GetFeatureInfo request using OL WMSGetFeatureInfo 
 control. My source data is in 4326 and map is displayed in 900913. I have 
 something like this in mapfile:
 
 LAYER
 NAME mylayer
 TYPE RASTER
 STATUS ON
 PROJECTION
   init=epsg:4326
 END  
 METADATA
   wms_srs   EPSG:4326
   wms_title  whatever
   gml_include_items value_0
   gml_value_0_alias Value 0
   gml_geometries none
 END
 OPACITY 0
 TILEINDEX mylayer_index
 TILEITEM LOCATION
 TEMPLATE void
 DUMP true
 END
 
 In OL, I am using something like:
 
   var layer = new OpenLayers.Layer.WMS(
   'mylayer',
   'http://my.domain.com/cgi-bin/mywms?',
   {
   format:'image/png',
   transparent:true,
   isBaseLayer:false,
   layers:'mylayer'
   });
 
   control = new OpenLayers.Control.WMSGetFeatureInfo({
   url:  http://my.domain.com/cgi-bin/mywms?;,
   layers: [layer],
   hover: false,
   infoFormat: 'gml',
   maxFeatures: 1
   });
 
 wms_srs in WEB part is EPSG:900913 EPSG:4326 so it can serve data in both 
 projections
 
 The problem is - when I click to get the info I get Internal server error 
 and in apache log I get Segmentation fault followed by Premature end of 
 script headers: mywms
 
 For test, I reprojected my source rasters to 900913, changed PROJECTION and 
 wms_srs in LAYER to 900913 and then everything works.
 
 Does anyone know what can be the problem? I am using MapServer 6.0.1 on 
 debian os.
 
 Thanks for any help
 
 regards, dejan
 
 
 
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 
 
 
 
 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] RE Problem using WMS GetFeatureInfo in OpenLayers with different projections

2014-01-16 Thread Steve . Toutant
Anything in mapserver logs?
add debug 5 in the layer definition AND in your MAP definition
steve

Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction de la santé environnementale et de la toxicologie
Institut national de santé publique du Québec
Tél.: 418 646-6777 poste 30015
Téléc.: 418 644-4593
steve.tout...@inspq.qc.ca
http://www.inspq.qc.ca
http://www.monclimatmasante.qc.ca 
Pour me rejoindre par courrier
Service de l'infrastructure et du réseau
Direction des technologies de l'information
Ministère de la Sécurité Publique
2525 boul. Laurier, 2è étage
Tour Laurentides
Québec, G1V 2L2



Dejan Gambin dejan.gam...@coin.hr 
2014-01-16 09:20

A
steve.tout...@inspq.qc.ca
cc
mapserver-users@lists.osgeo.org
Objet
Re: RE [mapserver-users] Problem using WMS GetFeatureInfo in OpenLayers 
with different projections








Tried...no luck :-(

Thx anyway

On 16. sij. 2014., at 14:36, steve.tout...@inspq.qc.ca wrote:


In the metadata tag of your layer try set 
wms_srs   EPSG:4326 EPSG:900913 




Dejan Gambin dejan.gam...@coin.hr@lists.osgeo.org 
Envoyé par : mapserver-users-boun...@lists.osgeo.org
2014-01-16 05:03 


A
mapserver-users@lists.osgeo.org 
cc

Objet
[mapserver-users] Problem using WMS GetFeatureInfo in OpenLayers with 
different projections










Hi,

I am trying to send WMS GetFeatureInfo request using OL WMSGetFeatureInfo 
control. My source data is in 4326 and map is displayed in 900913. I have 
something like this in mapfile:

LAYER
 NAME mylayer
 TYPE RASTER
 STATUS ON
 PROJECTION
   init=epsg:4326
 END 
 METADATA
   wms_srs   EPSG:4326
   wms_title  whatever
   gml_include_items value_0
   gml_value_0_alias Value 0
   gml_geometries none
 END
 OPACITY 0
 TILEINDEX mylayer_index
 TILEITEM LOCATION
 TEMPLATE void
 DUMP true
END

In OL, I am using something like:

   var layer = new OpenLayers.Layer.WMS(
   'mylayer',
   'http://my.domain.com/cgi-bin/mywms?',
   {
   format:'image/png',
   transparent:true,
   isBaseLayer:false,
   layers:'mylayer'
   });

   control = new OpenLayers.Control.WMSGetFeatureInfo({
   url:  http://my.domain.com/cgi-bin/mywms?;,
   layers: [layer],
   hover: false,
   infoFormat: 'gml',
   maxFeatures: 1
   });

wms_srs in WEB part is EPSG:900913 EPSG:4326 so it can serve data in 
both projections

The problem is - when I click to get the info I get Internal server 
error and in apache log I get Segmentation fault followed by Premature 
end of script headers: mywms

For test, I reprojected my source rasters to 900913, changed PROJECTION 
and wms_srs in LAYER to 900913 and then everything works.

Does anyone know what can be the problem? I am using MapServer 6.0.1 on 
debian os.

Thanks for any help

regards, dejan





___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users






___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users