Beginner-application with wms usage?help please

Piero Cavalieri piero.cavalieri at HEIDI.IT
Mon Nov 7 08:54:20 PST 2005


Where is the wms request in:

http://www.geoland.at/geolandWMS/service.aspx?
???

Example request is:

http://stage/Scripts/mapserv.exe?
map=E:/itasca2/itasca2.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=D
TM&

If u are working with .NET in cgi mode, maybe u should do requests using:

(HttpWebRequest) WebRequest.Create(queryString);

where query string is like above, built from form like so:

//LAYERS
for (int i=0; i< layer.Items.Count; i++) {
  if (layer.Items[i].Selected) {
    layers += "&layer=" + layer.Items[i].Value;
  }
}
queryString += layers;

and so on for other relevant things.

Piero.



CTS-Team ha scritto:

>Hello,
>im new in the mapserver bussines and i want to build a mapserver
application
>which displays me a map of the WMS from
>http://www.geoland.at/geolandWMS/service.aspx?
>but i have no idea how?
>i wrote a mapfile for my mapserver:
>--------------------------------------------------------
>MAP
>IMAGETYPE JPEG
>SIZE 1000 800
>EXTENT -180 -90 180 90
>
>
>MAP
>WEB
>IMAGEPATH "../tmp/"
>TEMPLATE templ.html
>IMAGEURL "../tmp/"
>END
>END
>
>LAYER
>NAME "layer_xne1"
>TYPE RASTER
>STATUS ON
>CONNECTION "http://www.geoland.at/geolandWMS/service.aspx?"
>CONNECTIONTYPE WMS
>METADATA
>"wms_srs"             "EPSG:31297"
>"wms_name"            "Hintergrundbild"
>"wms_server_version"  "1.1.0"
>"wms_formatlist"      "image/gif,image/png,image/jpeg,image/wbmp"
>"wms_format"          "image/jpeg"
>"wms_latlonboundingbox" "-180 -90 180 90"
>END
>END
>-----------------------------------------------------------------
>but my mapserver only provides a white image?
>
>has anyone a link, where i can find good information or could anyone send
me
>a mapfile which includes all the necessary information?
>
>we work on a diploma project called cts - http://cts.hyphro.at
>
>thank you
>regards, norbert
>



More information about the MapServer-users mailing list