{Disarmed} Re: [Cartoweb-users] WMS layers

Emmanuel BELO emmanuel.belo at camptocamp.com
Mon Dec 3 10:33:30 EST 2007


In which order in your mapfile? Is it at the bottom?

Regards,

Emmanuel

MB wrote:
> trying to open site for you
> 
>  yes it is loaded by layers.ini  - you can see it in the screen capture
> 
> iit is getting the Roads legend from the wms site
> 
> ;;;;;;;;;;;;;;;;;;;
> 
> layers.background.className = LayerGroup
> layers.background.label = Background Data
> layers.background.rendering = tree
> layers.background.children =  ON, WMS, mtrans, ltrans, comtserv,
> comtfac, othfac, commserv, land
> 
> 
> ;;;;;;;;;;;;;;;;;;;;;;;
> 
> layers.WMS.className = Layer
> layers.WMS.label =  WMS layer test
> layers.WMS.msLayer = WMSlayer
> 
> 
> -------
> 
> the wms layers list is for the wms layer that users add ...
> 
> once you see the site this will help i am sure !  sorry about that
> 
> 
> 
> 
> Emmanuel BELO wrote the following on 03/12/2007 10:22 AM:
>> Hi,
>>
>> there is no difference for cartoweb between a shape or WMS layer. It's
>> all done by mapserver.
>>
>> Have you tried to put a shape in wgs84? Does it work?
>>
>> I can't reach your website, it's not public.
>>
>> Does your mapserver support gif?
>>
>> Is the layer loaded by cartoweb? layers.ini?
>>
>> regards,
>>
>> Emmanuel
>>
>>
>> MB wrote:
>>   
>>> thank you
>>>
>>> tried you code
>>>
>>> you can check the web site
>>> again - no go
>>>
>>> the reason i put in the  legend line is to see whether it is connecting
>>> to the wms site
>>> i have tried several sites - all with the same result
>>> so it is not a prob with the site which i can access with esri arcgis
>>> but with cartoweb application
>>>
>>> i am missing something here ...
>>>
>>> we really need to get this work as well as the WMS plugin -
>>> which also does not work
>>>
>>> please try loading a layer from the GEObase wms and
>>> see the results
>>>
>>> once again we get the layer legend image but nothing in the map widow
>>>
>>> thanks kindly
>>> mariange
>>>
>>> Emmanuel BELO wrote the following on 03/12/2007 10:02 AM:
>>>     
>>>> Have you tried this:
>>>>
>>>> LAYER
>>>>   NAME "WMSlayer"
>>>>   TYPE RASTER
>>>>   STATUS ON
>>>>   CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"
>>>>   CONNECTIONTYPE WMS
>>>>   METADATA
>>>>     "wms_srs"             "EPSG:4236"
>>>>     "wms_name"            "road"
>>>>     "wms_server_version"  "1.1.1"
>>>>     "wms_format"          "image/gif"
>>>>   END
>>>> END
>>>>
>>>> regards,
>>>>
>>>> Emmanuel
>>>>
>>>> MB wrote:
>>>>   
>>>>       
>>>>> i have opened the test web site to the public so that you can access it and
>>>>> perhaps help us here as this is puzzling
>>>>>
>>>>>
>>>>> http://tundra/cartoweb/GHtestWMS.php?reset_session
>>>>>
>>>>>
>>>>> this my map file
>>>>>
>>>>> #######
>>>>> LAYER
>>>>> NAME "WMSlayer"
>>>>> TYPE RASTER
>>>>>     STATUS ON
>>>>>     PROJECTION
>>>>>     "init=epsg:4326"
>>>>>      END
>>>>> CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"
>>>>> CONNECTIONTYPE WMS
>>>>> METADATA
>>>>> 'wms_srs' 'EPSG:4326'
>>>>> 'wms_name' 'road'
>>>>> 'wms_server_version' '1.1.1'
>>>>> 'wms_format' 'image/gif'
>>>>> 'wms_legend_graphic' 'true'
>>>>> END
>>>>> END
>>>>>
>>>>>
>>>>> ########
>>>>>
>>>>> the legend graphic is returned and added to the map legend
>>>>> as you can see -- the Roads layes with the red line legend
>>>>>
>>>>> nothing ever shows up on the map  -
>>>>> i have set all of the parameters
>>>>>
>>>>> it is not hidden in the ini files
>>>>>
>>>>>
>>>>> -----------------------
>>>>>
>>>>> same thing happens to the add WMS layer  option
>>>>> - nothing ever shows up
>>>>>
>>>>> i am going insane here trying to figure this out ?!
>>>>>
>>>>>
>>>>> map extents or what ?!
>>>>>
>>>>>
>>>>> any help would be much much apprecieated ..
>>>>>
>>>>>
>>>>> kind regards
>>>>>
>>>>> mariange
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Emmanuel BELO wrote the following on 03/12/2007 6:39 AM:
>>>>>     
>>>>>         
>>>>>> Hi,
>>>>>>
>>>>>> the url should be: 'http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?
>>>>>>
>>>>>> Mapserver sends by itself the right parameters to get the map,
>>>>>>
>>>>>> best regards,
>>>>>>
>>>>>> Emmanuel
>>>>>>
>>>>>> Oliver Christen wrote:
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>> Hi
>>>>>>>
>>>>>>> im not a wms specialist but shouldnt you have only one wms connection by
>>>>>>> layer ?
>>>>>>>
>>>>>>> and is the extent correctly set in your mapfile and/or initialmapstats
>>>>>>> for these data?
>>>>>>>
>>>>>>> regards
>>>>>>> Oliver
>>>>>>>
>>>>>>> ----- Original Message ----- From: "MB" <mariange at geog.utoronto.ca>
>>>>>>> To: <cartoweb-users at lists.maptools.org>
>>>>>>> Sent: Thursday, November 29, 2007 4:54 PM
>>>>>>> Subject: [Cartoweb-users] WMS layers
>>>>>>>
>>>>>>>
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>> hello
>>>>>>>> i cannot get any of these layers to show up in my cartoweb application
>>>>>>>>
>>>>>>>> i change the wms_name to reflect a layer that exists in the WMS but
>>>>>>>> nothing
>>>>>>>> ever shows up -  the layer name is generated in the legend so i
>>>>>>>> can tell that it is accessing the web site but why nothing in the map
>>>>>>>> window ?
>>>>>>>>
>>>>>>>> so i tried adding more to the url but still no go
>>>>>>>>
>>>>>>>> LAYER
>>>>>>>> NAME WMSlayer
>>>>>>>> TYPE RASTER
>>>>>>>> CONNECTION
>>>>>>>> 'http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&LAYERS=road&'
>>>>>>>>
>>>>>>>> #CONNECTION
>>>>>>>> 'http://www.geographynetwork.ca/wmsconnector/com.esri.wms.Esrimap/Geobase_NRN_Ontario_I_Detail?'
>>>>>>>>
>>>>>>>> #CONNECTION
>>>>>>>> '*MailScanner warning: numerical links are often malicious:* *MailScanner warning: numerical links are often malicious:* *MailScanner warning: numerical links are often malicious:* http://132.156.10.87/cgi-bin/atlaswms_en?VERSION=1.1.0&request=GetCapabilities&?'
>>>>>>>>
>>>>>>>> #CONNECTION
>>>>>>>> 'http://tundra.geog.utoronto.ca/cgi-bin/mapserv?map=/var/www/mapserver/testgeog.map&
>>>>>>>>
>>>>>>>> CONNECTIONTYPE WMS
>>>>>>>> METADATA
>>>>>>>> 'wms_srs' 'EPSG:4326'
>>>>>>>> 'wms_name' 'road'
>>>>>>>> 'wms_server_version' '1.1.1'
>>>>>>>> 'wms_format' 'image/png'
>>>>>>>> 'wms_legend_graphic' 'true'
>>>>>>>> END
>>>>>>>> END
>>>>>>>>
>>>>>>>>
>>>>>>>> thank you
>>>>>>>> -- 
>>>>>>>> Mariange Beaudry
>>>>>>>> Cartographer, GIS Analyst
>>>>>>>> Dept of Geography, University of Toronto
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Cartoweb-users mailing list
>>>>>>>> Cartoweb-users at lists.maptools.org
>>>>>>>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>>>>>>>
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>> _______________________________________________
>>>>>>> Cartoweb-users mailing list
>>>>>>> Cartoweb-users at lists.maptools.org
>>>>>>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>   
>>>>>>       
>>>>>>           
>>>>> -- 
>>>>> Mariange Beaudry
>>>>> Cartographer, GIS Analyst
>>>>> Dept of Geography, University of Toronto
>>>>> Rm 617a, Sidney Smith Hall, 100 St. George St.
>>>>> (416) 978-3378
>>>>>     
>>>>>         
>>>>   
>>>>       
>>> -- 
>>> Mariange Beaudry
>>> Cartographer, GIS Analyst
>>> Dept of Geography, University of Toronto
>>> Rm 617a, Sidney Smith Hall, 100 St. George St.
>>> (416) 978-3378
>>>     
>>
>>   
> 
> -- 
> Mariange Beaudry
> Cartographer, GIS Analyst
> Dept of Geography, University of Toronto
> Rm 617a, Sidney Smith Hall, 100 St. George St.
> (416) 978-3378

-- 
Camptocamp SA
Emmanuel BELO
PSE A
CH-1015 Lausanne

+41 21 619 10 25 (direct)
+41 21 619 10 10 (centrale)
+41 21 619 10 00 (fax)


More information about the Cartoweb-users mailing list