[Mapbender-users] newbie, unable to add wms

Arnulf Christl arnulf.christl at ccgis.de
Fri Jun 2 03:10:27 EDT 2006


Richard Greenwood wrote:
> On 6/1/06, Vera Schulze <v.schulze at ccgis.de> wrote:
>> Richard Greenwood schrieb:
>> > On 6/1/06, Vera Schulze <v.schulze at ccgis.de> wrote:
>> >> Hi Rich,
>> >>
>> >> I just tested this WMS. It works fine when you turn off the 
>> sublayers in
>> >> the GUI WMS settings.
>> >>
>> >> So before adding the WMS to a gui, load the Capabilites Document, turn
>> >> off the sublayers and you can see the map and add it to other guis of
>> >> this owner.
>> >>
>> >> See Arnulfs posting about Mapbender supporting nested layers for more
>> >> information on this topic.
>> >>
>> >> Hope that helps,
>> >> Vera
>> >
>> >
>> > Thanks, that is good news. I do not yet see how to load the
>> > Capabilites Document, but at least I know what I am looking for.
>> >
>> > Thank you,
>> > Rich
>> >
>>
>> Hi Rich,
>>
>> to load the Capabilities document of an wms just open an admin-gui in
>> Mapbender, click on the link "LOAD WMS" and enter here the URL:
>>
>> http://www2.tetonwyo.org/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1 
>>
>>
>> For more information you can also look into the Mapbender-Wiki
>>
>> www.mapbender.org
>>
>> We try to make it bilingual, but give us a hint if something is missing.
>>
>> regards,
>> Vera
> 
> 
> Vera,
> 
> Again - thank you. I am still getting some errors, but it appears to
> be due to improper layer titles. I have a title "5' elevation
> contours" in which the single quote (') is causing the insert to fail.
> And this is important for me to learn as I test my WMS with various
> different clients.
> 
> Did that layer title not cause an error for you? I am using
> postgres.Are you using MySQL?
> 
> I can not find the wiki at www.mapbener.org, nor can I create an
> account, any idea what I might be doing wrong?
> 
> Thanks,
> Rich

hI rICH,
(capslock sucks...)

== SQL Insert Fails ==
You identified the problem correctly, single quotes confuse the inserts. 
We are about to release version 2.4 which implements all SQL inserts 
with prepared statements. This was done to prevent people from hacking 
SQL injections into places they should not and makes the client more 
robust against security attacks. As a side effect it will also be able 
to handle your "5' elevations" (and as Vera is currently testing with 
mapbender_dev 2.4 she did not run into trouble).

If you plan to create a WMS for general use I would advise you to not 
use special chars as many html clients might run into trouble. The 
problem is that all handling of layer names must escape the strings 
which is no big deal really but a nuisance to developers. We estimate a 
few hours only but I dunno whether we will be able to squeeze it in for 
release 2.4.

((this copies to dev list, someone interested?))

== Troubleshooting loading WMS ==
The most common problem that people have with adding remote WMS is that 
the Mapbender server installation is not allowed to url_fopen 
capabilities documents, read more here:
http://www.mapbender.org/index.php/Allow_url_fopen

== Wiki ==
you want to look for mapbender with a "d" like in "bend the maps to 
suite your needs" which is Mapbender's tagline...

http://www.mapbender.org actually is a Wiki but it is moderated because 
of two reasons. Initially we had it open but ran into annoying trouble 
with spam robots, so we closed it for anonymous editing. Additionally 
this Wiki contains the full documentation and we do resource planning 
and all kinds of administrivia there so we like to know who wants to 
hack it. Restrictions to get an account are very low, having talked to 
you for me already is enough. It is a little harder to get SVN commit 
access.

If you want a Wiki account just apply for it through info at mapbender.org.

Best regards,
Arnulf.




More information about the Mapbender_users mailing list