Mapserver & Oracle: WMS request works, but plain mode=map request doesn't
Bart van den Eijnden
bartvde at XS4ALL.NL
Wed Apr 13 11:20:44 PDT 2005
Hi,
Not completely, I just realized STATUS DEFAULT is probably not what you
want for WMS (since with a WMS you can turn layers on or off, and with
status default a layer is always on). This is okay for copyright notices,
but not for most layers.
So a better solution is:
http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/testi/testi2.map&mode=map&layers=maa
Best regards,
Bart
On Thu, 14 Apr 2005 21:03:18 +0300, Jussi Rasinmäki
<jussi.rasinmaki at HELSINKI.FI> wrote:
> Hi,
>
> Indeed..., problem solved.
>
> Thanks,
>
> Jussi
>
> ----- Original Message -----
> From: "Bart van den Eijnden" <bartvde at xs4all.nl>
> To: "Jussi Rasinmäki" <jussi.rasinmaki at helsinki.fi>;
> <MAPSERVER-USERS at lists.umn.edu>
> Sent: Wednesday, April 13, 2005 8:49 PM
> Subject: Re: [UMN_MAPSERVER-USERS] Mapserver & Oracle: WMS request works,
> but plain mode=map request doesn't
>
>
>> Hi,
>>
>> Can you try defining STATUS DEFAULT at your LAYER?
>>
>> Best regards,
>> Bart
>>
>> On Thu, 14 Apr 2005 20:38:14 +0300, Jussi Rasinmäki
>> <jussi.rasinmaki at HELSINKI.FI> wrote:
>>
>>> Hi all,
>>>
>>> I've got a map file that uses Oracle as data source (see below)
>>> The following request produces a blank page:
>>> http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/testi/testi2.map&mode=map
>>> but this one
>>> http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/testi/testi2.map&request=map&layers=maa&bbox=2499999,6849999,2530000,6870000&version=1.1.0&format=png&width=500&height=500
>>> returns what it is supposed to.
>>>
>>> Why?
>>>
>>> Cheers,
>>>
>>> Jussi Rasinmäki
>>>
>>> ==============
>>> MAP
>>> IMAGETYPE PNG
>>> EXTENT 2499999 6849999 2530000 6870000
>>> SIZE 400 300
>>> IMAGECOLOR 255 255 255
>>>
>>> PROJECTION
>>> "init=epsg:2392"
>>> END
>>>
>>> # Start of LAYER
>>> EFINITIONS ---------------------------------------------
>>> LAYER
>>> NAME maa
>>> TYPE POLYGON
>>> CONNECTIONTYPE ORACLESPATIAL
>>> CONNECTION "usr/psw at sid"
>>> DATA "GEOLOC FROM MAA USING SRID 294913"
>>> DUMP TRUE
>>> CLASS
>>> OUTLINECOLOR 0 0 0
>>> COLOR 0 128 128
>>> END
>>> PROJECTION
>>> "init=epsg:2392"
>>> END
>>> END # Maa polygon layer ends here
>>> # End of LAYER DEFINITIONS -------------------------------
>>> END # end of map file/object
>>>
>>
>>
>>
>> --
>> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
>>
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
More information about the MapServer-users
mailing list