[mapserver-users] Multiple projection problem

Matthew Hatcher MJHatcher@space.qinetiq.com
Thu, 15 Aug 2002 10:39:56 +0100


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2443F.B74695C0
Content-Type: text/plain; charset="ISO-8859-1"

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_001_01C2443F.B74695C0
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=3D"Content-Type" CONTENT=3D"text/html; charset=3DISO-8859-=
1">


<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<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>&nbsp;</DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma size=3D2>I'm havi=
ng problems=20
with using different projections in MapServer. If I try and merge 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>&nbsp;</DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma size=3D2>I am usi=
ng the NT=20
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:2770=
0)=20
which it should be possible to reproject.</FONT></SPAN></DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma size=3D2>I'm havi=
ng this=20
problem with both rasters and vectors, but I've only included my vector map=
 file=20
below.</FONT></SPAN></DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma size=3D2>Help wou=
ld be=20
appreciated!!</FONT></SPAN></DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D500133709-15082002><FONT face=3DTahoma size=3D2>Matt=20
Hatcher.</FONT></SPAN></DIV>
<DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</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 dis=
cussion
#
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>&nbsp;</DIV><CODE><FONT SIZE=3D3><=
BR>
<BR>
**********************************************************************<BR>
The information contained in this email and any subsequent<BR>
 correspondence is private and is intended solely for the <BR>
intended recipient(s). For those other than the intended<BR>
 recipient(s) any disclosure, copying, distribution, or any <BR>
action taken or omitted to be taken in reliance on such <BR>
information is prohibited and may be unlawful.<BR>
**********************************************************************<BR>
</FONT></CODE>
</BODY></HTML>

------_=_NextPart_001_01C2443F.B74695C0--