<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks Brent,<br>
I start to see a bit of light.<br>
So I tried to change units in meters but there is always something not
clear.<br>
<br>
I have :<br>
MAP<br>
&nbsp;&nbsp;&nbsp; NAME ASTRO<br>
&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp; EXTENT -18000000 -9000000 18000000 9000000<br>
&nbsp;&nbsp;&nbsp; UNITS meters<br>
&nbsp;&nbsp;&nbsp; TRANSPARENT ON<br>
&nbsp;&nbsp;&nbsp; SHAPEPATH "G:/GalexData/TestPoint"<br>
&nbsp;&nbsp;&nbsp; CONFIG "PROJ_LIB" "E:/ms4w/proj/nad/"<br>
<br>
&nbsp;&nbsp;&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "init=epsg:54009"&nbsp; # Mollweide<br>
&nbsp; &nbsp;&nbsp;&nbsp; END<br>
<br>
and at the layer level If I define epsg:54009 with MAXARC=1 and
MAXINTERVAL=1500000 the graticule is just rectangular grid.<br>
If I define epsg:4326 with MAXARC=1 and MAXINTERVAL=15 I can see the
whole mollweide sphere.<br>
My application use astronomic data then my shape files data are in sky
coordinates&nbsp; ( somenthing like Lon and Lat) .<br>
If I draw using mapserver one of this shape (see LAYER "TestPoints") ,
the objects go in the right position in the Mollweide projection , the
only thing is that the grid and the data are not using the same
projection.<br>
I tried to use Aitoff projection too. <br>
There isn't an epsg code for that, so I inserted one with an unused id
. <br>
But here too , in the layer definition I have to use epsg:4326 to plot
the points in the Aitoff projection but I am not able to draw the grid
sphere.<br>
<br>
Thanks a lot <br>
<br>
Antonio<br>
<br>
<br>
<br>
LAYER<br>
&nbsp;&nbsp; NAME "Grid"<br>
&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp;&nbsp; "DESCRIPTION" "Grid"<br>
&nbsp;&nbsp; END<br>
&nbsp;&nbsp; TYPE LINE<br>
&nbsp;&nbsp; STATUS OFF<br>
&nbsp;&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp;&nbsp; NAME "Graticule"<br>
&nbsp;&nbsp;&nbsp;&nbsp; COLOR 123 123 123<br>
&nbsp; END<br>
&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:4326"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #"init=epsg:54009" # Mollweide<br>
&nbsp; END<br>
&nbsp; GRID<br>
&nbsp;&nbsp;&nbsp; MAXARCS 2<br>
&nbsp;&nbsp; # MAXINTERVAL 15000000<br>
&nbsp; <br>
&nbsp; END<br>
<br>
<br>
<br>
LAYER<br>
&nbsp; NAME "TestPoints"<br>
&nbsp; TYPE POLYGON<br>
&nbsp; STATUS ON<br>
&nbsp; <br>
&nbsp; DATA "TestPoints"<br>
&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "init=epsg:4326"<br>
&nbsp; END<br>
&nbsp; <br>
&nbsp; LABELITEM 'tilename'<br>
&nbsp; DUMP true<br>
<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; NAME "TestPoint"<br>
&nbsp;&nbsp;&nbsp; STYLE <br>
&nbsp;&nbsp;&nbsp; &nbsp; SIZE 2<br>
&nbsp;&nbsp;&nbsp; &nbsp; OUTLINECOLOR 123 123 123<br>
&nbsp;&nbsp;&nbsp; &nbsp; COLOR 0 0 255<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; LABEL<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINFEATURESIZE 200<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp;<br>
&nbsp; END<br>
&nbsp; <br>
&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GML_INCLUDE_ITEMS "tilename,survey,ra,dec,nuvexptime,fuvexptime"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_SERVER_VERSION "1.1.1"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_FORMAT "image/png"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_TITLE "Galex AIS Survey"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_ABSTRACT "SDSS DR3 imaging level 0"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_SRS "EPSG:54009"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_NAME "TestPoint" <br>
&nbsp;&nbsp;&nbsp;&nbsp; #WMS_FORCE_SEPARATE_REQUEST "0"&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; <br>
END<br>
Brent Fraser wrote:
<blockquote cite="mid028401c782d4$1b4087c0$160002c0@shark" type="cite">
  <pre wrap="">Antonio,

  The values in the EXTENT must be in the units of the
PROJECTION, so I'm suprised that with "UNITS dd" it works at
all.  The units of the MAP should be "UNITS meters".  An
EXTENT of
"-18000000 -9000000 18000000 9000000" meters is an ok place
to start when you want to show the entire globe.

    The GRID objects have sparse documentation.  The MAXARCS
object specifies the maximum number of lines you want shown
on your map (in one direction), so MAXARCS 1 will try to
draw only one line.  From my notes MAXINTERVAL is "The
maximum number of intervals to try to use.  The distance
between the lines, in layer(?) units.  Most commonly changed
parameter."  Since its in the layer's units, using a
MAXINTERVAL 15 with EPSG:54009 would try to draw a line
every 15 meters (waay too many!), but with EPSG:4326 (a
geographic coordinate system with units of degrees), it
would try to draw one every 15 degrees (much more
reasonable).


    Mapserver uses Proj4 for the coordinate systems
operations.  You may want to look on the Proj4 web site
(<a class="moz-txt-link-freetext" href="http://proj.maptools.org/">http://proj.maptools.org/</a>), but I believe it does support
Aitoff.

Brent Fraser
GeoAnalytic Inc.
Calgary, Alberta

----- Original Message ----- 
From: "antonio" <a class="moz-txt-link-rfc2396E" href="mailto:volpicelli@OATO.INAF.IT">&lt;volpicelli@OATO.INAF.IT&gt;</a>
To: <a class="moz-txt-link-rfc2396E" href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">&lt;MAPSERVER-USERS@LISTS.UMN.EDU&gt;</a>
Sent: Thursday, April 19, 2007 3:41 PM
Subject: [UMN_MAPSERVER-USERS] Use of different epsg code


  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi ,
I am new of mapserver. I am using mapserver for an
    </pre>
  </blockquote>
  <pre wrap=""><!---->astronomic
  </pre>
  <blockquote type="cite">
    <pre wrap="">application and I would like to use Mollweide projection
    </pre>
  </blockquote>
  <pre wrap=""><!---->( epsg:54009).
  </pre>
  <blockquote type="cite">
    <pre wrap="">I am able to draw the graticule ( the ellipse  )  using
    </pre>
  </blockquote>
  <pre wrap=""><!---->this layer
  </pre>
  <blockquote type="cite">
    <pre wrap="">inside mapfile.
First of all in the top of mapfile I defined these :
MAP
   NAME ASTRO
   STATUS ON

   #EXTENT -180 -90 180  90    EXTENT -18000000 -9000000
    </pre>
  </blockquote>
  <pre wrap=""><!---->18000000 9000000
  </pre>
  <blockquote type="cite">
    <pre wrap="">     UNITS dd
   #IMAGECOLOR 0 123 123
   TRANSPARENT ON
   SHAPEPATH "G:/GalexData/TestPoint"
   CONFIG "PROJ_LIB" "E:/ms4w/proj/nad/"
.    PROJECTION
           "init=epsg:54009"
     END

.
.
.

The layer definition for the graticule:

LAYER
  NAME "Grid"
  METADATA
    "DESCRIPTION" "Grid"
  END
  TYPE LINE
  STATUS OFF
  CLASS
    NAME "Graticule"
    COLOR 123 123 123
 END
 PROJECTION
     "init=epsg:4326"
     #"init=epsg:54009"
 END
 GRID
   MAXARCS 1
   MAXINTERVAL 15
 END
END # Layer


So this work but I don't really understand why I have to
    </pre>
  </blockquote>
  <pre wrap=""><!---->define the
  </pre>
  <blockquote type="cite">
    <pre wrap="">EXTENT as -18000000 -9000000 18000000 9000000 and not
    </pre>
  </blockquote>
  <pre wrap=""><!---->as -180 -90 180  90
  </pre>
  <blockquote type="cite">
    <pre wrap="">and in the layer "Grid" definition I cannot define the
    </pre>
  </blockquote>
  <pre wrap=""><!---->init=epsg:54009
  </pre>
  <blockquote type="cite">
    <pre wrap="">but init=epsg:4326 . If I use 54009 , mapserver goes in
    </pre>
  </blockquote>
  <pre wrap=""><!---->stall , it gets
  </pre>
  <blockquote type="cite">
    <pre wrap="">98% of CPU and don't end never.
If now I want draw one polygon shape on this map and I use
    </pre>
  </blockquote>
  <pre wrap=""><!---->this layer :
  </pre>
  <blockquote type="cite">
    <pre wrap="">LAYER
 NAME "TestPoint"
 TYPE POLYGON
 STATUS ON

 DATA TestPoint
 PROJECTION
       "init=epsg:4326"
 END

 LABELITEM 'tilename'
 DUMP true

 CLASS
   NAME "TestPoint"
   STYLE
     SIZE 2
     OUTLINECOLOR 123 123 123
     COLOR 0 0 255
       END
   LABEL
     MINFEATURESIZE 200
   END

 END

  METADATA
     GML_INCLUDE_ITEMS
    </pre>
  </blockquote>
  <pre wrap=""><!---->"tilename,survey,ra,dec,nuvexptime,fuvexptime"
  </pre>
  <blockquote type="cite">
    <pre wrap="">     WMS_SERVER_VERSION "1.1.1"
     WMS_FORMAT "image/png"
     WMS_TITLE "Galex AIS Survey"
     WMS_ABSTRACT "SDSS DR3 imaging level 0"
     WMS_SRS "EPSG:4326"
     WMS_NAME "TestPoint"
    #WMS_FORCE_SEPARATE_REQUEST "0"       END
    END

and here too , I have to use epsg:4326 and not 54009.

There are someone that could help me about this and If I
    </pre>
  </blockquote>
  <pre wrap=""><!---->want to change
  </pre>
  <blockquote type="cite">
    <pre wrap="">the projection from Mollweide to Aitoff  , is it possible
    </pre>
  </blockquote>
  <pre wrap=""><!---->and supported
  </pre>
  <blockquote type="cite">
    <pre wrap="">by mapserver.
Thanks
Antonio
    </pre>
  </blockquote>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
/-------------------------------------------------------\
       PLEASE WARNING: E-mail is CHANGED
             <a class="moz-txt-link-abbreviated" href="mailto:volpicelli@oato.inaf.it">volpicelli@oato.inaf.it</a>
/-------------------------------------------------------\
</pre>
</body>
</html>