[mapserver-users] Multiple projection problem
Stepan Kafka
stepan.kafka@centrum.cz
Thu, 15 Aug 2002 15:56:40 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0005_01C24474.584CABB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Hi Matt!
Your map has set output projection to WGS84, but initial map extent is
clearly set for different projection.
Stepan Kafka
-----Puvodní zpráva-----
Od: owner-mapserver-users@lists.gis.umn.edu
[mailto:owner-mapserver-users@lists.gis.umn.edu]za uživatele Matthew Hatcher
Odesláno: 15. srpna 2002 11:40
Komu: mapserver-users@lists.gis.umn.edu
Predmet: [mapserver-users] Multiple projection problem
Hi people,
I'm having problems with using different projections in MapServer. If I
try and merge data in different projections, the datasets requiring
reprojecting don't get displayed.
I am using the NT MapServer 3.6.1 binary compiled with GDAL and PROJ4
support. My WMS default projection is lat/long, but I have datasets in UK
National Grid (epsg:27700) which it should be possible to reproject.
I'm having this problem with both rasters and vectors, but I've only
included my vector map file below.
Help would be appreciated!!
Matt Hatcher.
--- map file ---
#
# Start of map file
#
NAME MAIN
STATUS ON
SIZE 600 350
EXTENT -140570 -33340 956950 606250 # osgb
UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 192 192 192
# you may need to change this to match your MapServer build
#IMAGETYPE PNG
#
# Projection definition, consult the PROJ.4 documentation for parameter
discussion
#
PROJECTION
"init=epsg:4326"
END
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
TEMPLATE test.html
MINSCALE 1000
MAXSCALE 7000000
IMAGEPATH "w:\wwwroot\tmp\"
IMAGEURL "/tmp/"
METADATA
WMS_TITLE "foo"
WMS_ACCESSCONSTRAINTS none
# change this value to match your setup
WMS_ONLINERESOURCE "foo"
WMS_SRS "EPSG:27700 EPSG:4326" # OSGB and lat/long
END
END
#
# Start of layer definitions
#
LAYER
NAME "uk_osgb"
TYPE LINE
STATUS DEFAULT
DATA uk_osgb
GROUP uk_osgb
CLASS
COLOR 0 0 128
END
METADATA
WMS_TITLE "UK outline"
WMS_ABSTRACT "Boundary of UK region"
WMS_GROUP_TITLE "UK boundaries"
WMS_SRS "EPSG:27700 EPSG:4326"
END
PROJECTION
"init=epsg:27700"
END
END
END # Map File
**********************************************************************
The information contained in this email and any subsequent
correspondence is private and is intended solely for the
intended recipient(s). For those other than the intended
recipient(s) any disclosure, copying, distribution, or any
action taken or omitted to be taken in reliance on such
information is prohibited and may be unlawful.
**********************************************************************
------=_NextPart_000_0005_01C24474.584CABB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3DISO-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D942555113-15082002><FONT face=3DArial color=3D#0000ff =
size=3D2>Hi=20
Matt!</FONT></SPAN></DIV>
<DIV><SPAN class=3D942555113-15082002><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D942555113-15082002><FONT face=3DArial color=3D#0000ff =
size=3D2> Your map has set output projection to WGS84, =
but=20
initial map extent is clearly set for different=20
projection.</FONT></SPAN></DIV>
<DIV><SPAN class=3D942555113-15082002><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D942555113-15082002><FONT face=3DArial color=3D#0000ff =
size=3D2>Stepan=20
Kafka</FONT></SPAN></DIV>
<DIV><SPAN class=3D942555113-15082002><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid">
<DIV class=3DOutlookMessageHeader><FONT face=3D"Times New Roman"=20
size=3D2>-----Původn=ED zpr=E1va-----<BR><B>Od:</B>=20
owner-mapserver-users@lists.gis.umn.edu=20
[mailto:owner-mapserver-users@lists.gis.umn.edu]<B>za u=9Eivatele</B> =
Matthew=20
Hatcher<BR><B>Odesl=E1no:</B> 15. srpna 2002 11:40<BR><B>Komu:</B>=20
mapserver-users@lists.gis.umn.edu<BR><B>Předmět:</B> =
[mapserver-users]=20
Multiple projection problem<BR><BR></FONT></DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma size=3D2>Hi=20
people,</FONT></SPAN></DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma size=3D2>I'm =
having=20
problems with using different projections in MapServer. If I try and =
merge=20
data in different projections, the datasets requiring reprojecting =
don't get=20
displayed.</FONT></SPAN></DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma size=3D2>I =
am using the NT=20
MapServer 3.6.1 binary compiled with GDAL and PROJ4 support. My WMS =
default=20
projection is lat/long, but I have datasets in UK National Grid =
(epsg:27700)=20
which it should be possible to reproject.</FONT></SPAN></DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma size=3D2>I'm =
having this=20
problem with both rasters and vectors, but I've only included my =
vector map=20
file below.</FONT></SPAN></DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma =
size=3D2>Help would be=20
appreciated!!</FONT></SPAN></DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma =
size=3D2>Matt=20
Hatcher.</FONT></SPAN></DIV>
<DIV><FONT face=3DTahoma size=3D2></FONT> </DIV>
<DIV><FONT face=3DTahoma size=3D2></FONT> </DIV>
<DIV><FONT face=3DTahoma size=3D2></FONT> </DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma size=3D2>--- =
map file=20
---</FONT></SPAN></DIV>
<DIV><SPAN class=3D500133709-15082002><XMP>#
# Start of map file
#
NAME MAIN
STATUS ON
SIZE 600 350
EXTENT -140570 -33340 956950 606250=A0=A0=A0 # osgb
UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 192 192 192
# you may need to change this to match your MapServer build
#IMAGETYPE PNG
#
# Projection definition, consult the PROJ.4 documentation for parameter =
discussion
#
PROJECTION
"init=3Depsg:4326"
END
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
TEMPLATE test.html
MINSCALE 1000
MAXSCALE 7000000
IMAGEPATH "w:\wwwroot\tmp\"
IMAGEURL "/tmp/"
METADATA
WMS_TITLE "foo"
WMS_ACCESSCONSTRAINTS none
# change this value to match your setup
WMS_ONLINERESOURCE "foo"
WMS_SRS "EPSG:27700 EPSG:4326" # OSGB and lat/long
END
END
#
# Start of layer definitions
#
LAYER
NAME "uk_osgb"
TYPE LINE
STATUS DEFAULT
DATA uk_osgb
GROUP uk_osgb
CLASS
COLOR 0 0 128
END
METADATA
WMS_TITLE "UK outline"
WMS_ABSTRACT "Boundary of UK region"
WMS_GROUP_TITLE "UK boundaries"
WMS_SRS "EPSG:27700 EPSG:4326"
END
=20
PROJECTION
"init=3Depsg:27700"
END
END
END # Map File
</XMP></SPAN></DIV>
<DIV><FONT face=3DTahoma size=3D2></FONT> </DIV><CODE><FONT=20
=
size=3D3><BR><BR>********************************************************=
**************<BR>The=20
information contained in this email and any =
subsequent<BR>correspondence is=20
private and is intended solely for the <BR>intended recipient(s). For =
those=20
other than the intended<BR>recipient(s) any disclosure, copying, =
distribution,=20
or any <BR>action taken or omitted to be taken in reliance on such=20
<BR>information is prohibited and may be=20
=
unlawful.<BR>************************************************************=
**********<BR></BLOCKQUOTE></FONT></CODE></BODY></HTML>
------=_NextPart_000_0005_01C24474.584CABB0--