Projection on mapserver WMS versus cgi-bin
Sandro Danilo Gatto
prof_gatto at YAHOO.COM.BR
Wed Feb 16 05:20:41 PST 2005
Hello
I've been making some tests with mapserver 4.4.1 as a
WMS server and I came across a strange behavior (at
least, from my point of view).
I get a blank image if I type the following URL:
http://localhost/cgi-bin/mapserv441.exe?service=wms&version=1.1.1&request=getmap&map=C:\Arquivos%20de%20programas\Apache%20Group\Apache2\htdocs\sigppt\wms.map&layers=area_edificada
Well, the problem is: I get a perfect image, with all
the data I want, if I type
http://localhost/cgi-bin/mapserv441.exe?mode=map&map=C:\Arquivos%20de%20programas\Apache%20Group\Apache2\htdocs\sigppt\wms.map&layer=area_edificada
It works if I use project as
PROJECTION
"init=epsg:29118"
END
instead of 29100, but the images returned by wms and
cgi-bin are different (wms returns a "wider" image).
Note that the map file is exactly the same and that
both URL work perfect if Mapserver is version 4.0.1.
Could somebody tell me what I'm doing wrong?
Thanks to all
Sandro
The map file is the following:
----------------------
MAP
NAME wms_
STATUS ON
IMAGETYPE PNG24
EXTENT -78 -36 -30 8 # minx miny maxx maxy
SIZE 425 325
IMAGECOLOR 255 251 234
SYMBOLSET "symbols/symbols35.sym"
FONTSET "fonts/fonts.list"
UNITS dd
WEB
METADATA
"WMS_TITLE" "Base de Dados de Testes"
"WMS_ONLINERESOURCE"
"http://localhost/cgi-bin/mapserver441.exe"
"WMS_SRS" "EPSG:29100"
"WMS_EXTENT" "-78 -36 -30 8"
END
END
PROJECTION
"init=epsg:29100"
END
LAYER
NAME area_edificada
CONNECTIONTYPE postgis
CONNECTION "user=usuario dbname=sig host=host
password=pass"
DATA "geom from area_edificada using unique code
using SRID=29100"
STATUS ON
TYPE POLYGON
SIZEUNITS meters
LABELITEM "code"
LABELMAXSCALE 250000
CLASS
NAME 'Area Edificada'
COLOR 202 0 0
LABEL
COLOR 0 0 0
POSITION CC
TYPE truetype
FONT arial
SIZE 25
END
END
DUMP TRUE
METADATA
WMS_SRS "EPSG:29100"
WMS_TITLE "Area Edificada"
WMS_ABSTRACT "Area Edificada"
WMS_EXTENT "-78 -36 -30 8"
END
END
END
----------------------------
=====
--------------------------------------
Prof. Msc Sandro Danilo Gatto
Faculdades Integradas IPEP
prof_gatto at yahoo.com.br
_______________________________________________________
Yahoo! Acesso Grátis - Instale o discador do Yahoo! agora. http://br.acesso.yahoo.com/ - Internet rápida e grátis
More information about the MapServer-users
mailing list