[Mapserver-users] lat lon
Ed McNierney
ed at topozone.com
Mon Mar 3 09:13:45 PST 2003
Paul -
This is a bit of a shot in the dark, but in your PROJECTION block for the lat/lon data, take out the "unit=dd" statement. It's not needed (and should be UNITS (plural) anyway) and might be breaking the projection.
You also don't seem to have a LAYER block surrounding the layer definition for your lat/lon data - but that should give you a map file parsing error. Is your map file correct?
- Ed
-----Original Message-----
From: Paul Dymecki [mailto:millardymecki at sympatico.ca]
Sent: Monday, March 03, 2003 11:59 AM
To: Ed McNierney
Cc: Mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] lat lon
Yup i've it's supported so that's not the prob,
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 11:43 AM
Subject: RE: [Mapserver-users] lat lon
> From a command prompt, run "mapserv -v" and look for "SUPPORTS=PROJ" in
the message that's printed.
>
> - Ed
>
> -----Original Message-----
> From: Paul Dymecki [mailto:millardymecki at sympatico.ca]
> Sent: Monday, March 03, 2003 11:42 AM
> To: Ed McNierney
> Cc: Mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] lat lon
>
>
> Hi Ed,
> Sorry for a silly question but how would i know if i have proj support
> or not under windows? I know i have proj support from mapscript (ie my
> php_proj.dll is installed and running) but not sure of mapserver?
> 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?
>
> 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?
>
> - 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
>
>
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list