AW: Re: [UMN_MAPSERVER-USERS] AW: Re: [UMN_MAPSERVER-USERS] Beginner-application with wms usage?help please

Piero Cavalieri piero.cavalieri at HEIDI.IT
Tue Nov 8 10:02:11 EST 2005


Sorry, I didn't understood. I don't know what's the problem (maybe
srs/extent).
As always try to start with simple application, so to eliminate potential
problems.

Sorry...
    P.

CTS-Team ha scritto:

>thank you for you fast answer!
>i think there is a little misunderstanding.
>we want to build a WMS Client in html/php, the WMS Server is provided by
>www.geoland.at i want to generate a map like this:
>http://www.geoland.at/geolandWMS/service.aspx?
bbox=377676.524318283,435533.868010964,378664.743068283,436318.357594298&wid
th=500&height=300&layers=Orientierungskarte&Name=geoland_at_wms&Service=WMS&
Version=1.1.1&request=GetMap&srs=EPSG:31297&format=image/jpeg&styles=
>but in my client page (templ.html) it doesn't work if i want to integrate
it
>in my Client. So i tried to use a WMS layer defined in my geoland.map file,
>but i only get a blank - white map.
>i also will chech out the itasca example, thank you.
>
>
>best regards, norbert
>
>
>--------- Original-Nachricht --------
>Von: Piero Cavalieri <piero.cavalieri at HEIDI.IT>
>An: MAPSERVER-USERS at LISTS.UMN.EDU <MAPSERVER-USERS at LISTS.UMN.EDU>
>Betreff: Re: [UMN_MAPSERVER-USERS] AW: Re: [UMN_MAPSERVER-USERS]
>Beginner-application with wms usage?help please
>Datum: 08/11/05 10:22
>
>>In index.php, there's no php scripting at all, so you can change extension
>>to .html.
>>You are using html interface with no server side html generation, so I
>>don't understand the aspx extension you where using (it seems you are not
>>in .NET environment).
>>You are doing application like Itasca sample application, provided in
>>Mapserver site, so I suggest to have it running.
>>If you later want to use a scripting language like php, I suggest you
>
>start
>
>>with gmap sample application (if using scripting language to make
>
>requests,
>
>>it's different approach respect cgi).
>>
>>To try the cgi, with Apache, maybe something like:
>>
>>http://localhost/cgi-bin/mapserv.exe?
>>
>map=E:/itasca2/itasca2.map&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=Ge
tMap&amp;LAYERS=a
>
>>Layer&amp;
>>
>>
>>Piero
>>
>>
>>
>>CTS-Team ha scritto:
>>
>>&gt;Hello, thank you for your fast answer!
>>&gt;
>>&gt;I have 3 files (which are attached), i'm running mapserver in my
>
>cgi-bin of
>
>>&gt;my appache webserver.
>>&gt;
>>&gt;if you have the time to, please look at my files and maybe you can
>
>help me?
>
>>&gt;
>>&gt;thank you very much,
>>&gt;regards norbert
>>&gt;--------- Original-Nachricht --------
>>&gt;Von: Piero Cavalieri &lt;piero.cavalieri at HEIDI.IT&gt;
>>&gt;An: MAPSERVER-USERS at LISTS.UMN.EDU
>
>&lt;MAPSERVER-USERS at LISTS.UMN.EDU&gt;
>
>>&gt;Betreff: Re: [UMN_MAPSERVER-USERS] Beginner-application with wms
>
>usage?help
>
>>&gt;please
>>&gt;Datum: 07/11/05 17:54
>>&gt;
>>&gt;&gt;Where is the wms request in:
>>&gt;&gt;
>>&gt;&gt;http://www.geoland.at/geolandWMS/service.aspx?
>>&gt;&gt;???
>>&gt;&gt;
>>&gt;&gt;Example request is:
>>&gt;&gt;
>>&gt;&gt;http://stage/Scripts/mapserv.exe?
>>&gt;&gt;
>>
>&gt;map=E:/itasca2/itasca2.map&amp;amp;SERVICE=WMS&amp;amp;VERSION=1.1.1&am
p;amp;REQUEST=Ge
>
>>tMap&amp;amp;LAYERS=D
>>&gt;
>>&gt;&gt;TM&amp;amp;
>>&gt;&gt;
>>&gt;&gt;If u are working with .NET in cgi mode, maybe u should do requests
>
>using:
>
>>&gt;&gt;
>>&gt;&gt;(HttpWebRequest) WebRequest.Create(queryString);
>>&gt;&gt;
>>&gt;&gt;where query string is like above, built from form like so:
>>&gt;&gt;
>>&gt;&gt;//LAYERS
>>&gt;&gt;for (int i=0; i&amp;lt; layer.Items.Count; i++) {
>>&gt;&gt;  if (layer.Items[i].Selected) {
>>&gt;&gt;    layers += &amp;quot;&amp;amp;layer=&amp;quot; +
>
>layer.Items[i].Value;
>
>>&gt;&gt;  }
>>&gt;&gt;}
>>&gt;&gt;queryString += layers;
>>&gt;&gt;
>>&gt;&gt;and so on for other relevant things.
>>&gt;&gt;
>>&gt;&gt;Piero.
>>&gt;
>>
>>
>>
>>
>>
>



More information about the mapserver-users mailing list