[Mapserver-users] lat lon

Paul Dymecki millardymecki at sympatico.ca
Mon Mar 3 06:57:10 PST 2003


Ok sorry,

I have this entry in my epsg file under c:\Proj\ and c:\Proj\nad
## NAD83 LCC for Canada
<42304> +proj=lcc +ellps=GRS80 +lat_0=49 +lon_0=-95 +lat_1=49 +lat_2=77
+datum=NAD83 +units=m no_defs <>

I'm not sure if i have proj support i'll check into this though,
thx,
Paul


----- Original Message -----
From: "Ed McNierney" <ed at topozone.com>
To: "Paul Dymecki" <millardymecki at sympatico.ca>
Cc: <Mapserver-users at lists.gis.umn.edu>
Sent: Monday, March 03, 2003 9:47 AM
Subject: RE: [Mapserver-users] lat lon


Paul -

1. Please try to reply to the whole list, since someone else might be able
to answer your question better or more quickly than I can.

2. What projection is that EPSG code describing?  I cannot find an EPSG code
of 42304 in any of my EPSG tables - are you sure it's correct?  Does this
projection have a common name?

I have this entry in my epsg file under c:\Proj\ and c:\Proj\nad
## NAD83 LCC for Canada
<42304> +proj=lcc +ellps=GRS80 +lat_0=49 +lon_0=-95 +lat_1=49 +lat_2=77
+datum=NAD83 +units=m no_defs <>

3. Remember that what you've said (in this map file) is that the TIFF file
is of the same projection as the output image.  As long as the georeference
data for the TIFF matches the extents requested, you'll get a map.  If
you're using a TIFF with world file it's very easy to have the projection
completely wrong but still get a "correct" map.  But other layers won't
project properly on to it.

4. Do you have MapServer built with PROJ support?

 Not sure i'm on windows, will check into this?

- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242

-----Original Message-----
From: Paul Dymecki [mailto:millardymecki at sympatico.ca]
Sent: Monday, March 03, 2003 9:26 AM
To: Ed McNierney
Subject: Re: [Mapserver-users] lat lon


Hi Ed,
     My tiff is already displaying properly with (init=epsg:42304)  but
getting any lat/long data added is proving difficult to say the least.
Here is the first part of my map file with "Eman-sites" being the lat/long
data(last layer)
Paul


MAP

NAME "MAP OF CANADA"

  STATUS ON

  EXTENT -2200000 -712631 3072800 3840000

  SIZE 400 300

  #SHAPEPATH "./data/"

  SHAPEPATH "C:\2.0rc3\tutorial\data"

  SYMBOLSET "./etc/symbols.sym"

  FONTSET "./etc/fonts.txt"

  #IMAGETYPE PNG

  IMAGECOLOR 255 255 255

  UNITS METERS

  #

  # Start of web interface definition

  #

  WEB

    MINSCALE 2000000

    MAXSCALE 50000000

    IMAGEPATH "C:/temp/"

    IMAGEURL "/ms_tmp/"

  #  LOG "/tmp/gmap.log"

  END

  #

  # Start of reference object (keymap)

  #

  REFERENCE

    STATUS ON

    IMAGE "images/keymap.gif"

    SIZE 100 75

    EXTENT -2200000 -712631 3072800 3840000

    COLOR -1 -1 -1

    OUTLINECOLOR 255 0 0

  END

  #

  # Start of querymap object

  #

  QUERYMAP

    COLOR 255 0 0

    STYLE HILITE

  END

  PROJECTION

    "init=epsg:42304"

  END

  #

  # Start of legend object

  #

  LEGEND

    STATUS ON

    KEYSIZE 18 12

    TEMPLATE "ttt"

    LABEL

      TYPE BITMAP

      SIZE MEDIUM

      COLOR 0 0 89

    END

  END

  #

  # Start of scalebar object

  #

  SCALEBAR

    STATUS ON

    COLOR 255 255 255

    OUTLINECOLOR 0 0 0

    BACKGROUNDCOLOR 0 0 0

    IMAGECOLOR 255 255 255

    UNITS kilometers

    INTERVALS 5

    SIZE 150 5

    LABEL

      SIZE SMALL

      COLOR 0 0 0

    END

  END

  LAYER

    NAME "bathymetry"

    STATUS ON

    DATA "bath_mapserver.tif"

    TYPE RASTER

    TEMPLATE "ttt.html"

  END

    NAME "Eman-sites"

    STATUS ON

    DATA "sites.shp"

    TYPE POINT

    UNITS METERS

    SIZEUNITS METERS

    LABELITEM "Name"

    TOLERANCE 5

    TOLERANCEUNITS PIXELS

    TRANSFORM TRUE

    TEMPLATE "ttt.html"

    PROJECTION

      "proj=longlat"

      "ellps=GRS80"

      "unit=dd"

      "no_defs"

      ""

    END

    CLASS

      NAME "site"

      SYMBOL 2

      COLOR 255 51 102

      SIZE 7

      MINSIZE 1

      MAXSIZE 100

    END

  END




----- Original Message -----
From: Ed McNierney
To: Paul Dymecki ; MapServer List (E-mail)
Sent: Monday, March 03, 2003 9:10 AM
Subject: RE: [Mapserver-users] lat lon


Paul -

You need to know all the details of your TIFF's projection, so you can
specify it completely.  Are you using one or two standard parallels for your
LCC?  You need the lat and lon of the origin, the scale factor, any false
easting & northing, etc.

    - Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242
-----Original Message-----
From: Paul Dymecki [mailto:millardymecki at sympatico.ca]
Sent: Monday, March 03, 2003 9:05 AM
To: MapServer List (E-mail)
Subject: [Mapserver-users] lat lon


Hello all,
    I'm trying to display lat/long point data ontop of a tiff and was
wondering what should be the projection object for this layer would be?.
My map projection is lcc.
thx,
Paul




More information about the MapServer-users mailing list