[mapserver-users] Multiple projection problem

Matthew Hatcher MJHatcher at space.qinetiq.com
Thu Aug 15 05:39:56 EDT 2002


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.
**********************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020815/afb0261e/attachment.html


More information about the mapserver-users mailing list