[Mapserver-users] Projection conversion

nicolas.fortin at ec.gc.ca nicolas.fortin at ec.gc.ca
Wed Oct 29 14:26:54 EST 2003


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_01C39E52.9C47BD80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
=20
I'm new to mapserver and I'm making some tests to make it work with =
Oracle
spatial (very simple tests though).
=20
One of my test consist of two layers, one in Lambert Conformal Conic =
(LCC)
and the other in NAD83 MTM Zone 8.
=20
I wonder if I have to do something special to make Mapserver convert =
between
projection...
=20
For the mapfile below, only the LCC layer is visible in the bounding =
box.
=20
# BEGIN MAPFILE
# Mapserver test 3 for Oracle
# Nicolas Fortin, Env Can nicolas.fortin at ec.gc.ca
<mailto:nicolas.fortin at ec.gc.ca>=20
=20
NAME MS_ORA_TEST_3
EXTENT 7613000 1218000 7620000 1227000
#EXTENT 275000 5019000 280000 5027000
SIZE 350 450
PROJECTION
  "init=3Depsg:102002"
END
=20
LAYER # Test table
  NAME "PointTest"
  TYPE POINT
  CONNECTIONTYPE oraclespatial
  CONNECTION "martins/****@bayfield <mailto:martins/****@bayfield> "
  DATA "GEOLOC FROM MARTINS.CT_LCC_MI"
  STATUS DEFAULT
  DUMP TRUE
 =20
  PROJECTION
    "init=3Depsg:102002"
  END
 =20
  CLASS # PolyClass
    NAME "Point"
    COLOR 0 100 240
    OUTLINECOLOR 0 0 0
  END
=20
END # LAYER
=20
LAYER # Test table
  NAME Shoreline
  TYPE LINE
  CONNECTIONTYPE oraclespatial
  CONNECTION "usr_bathy/****@bayfield <mailto:usr_bathy/****@bayfield> =
"
  DATA "GEOLOC FROM USR_BATHY.SHORELINE USING SRID 82196"
  STATUS DEFAULT
  DUMP TRUE
 =20
  PROJECTION
    "init=3Depsg:2145"
  END
 =20
  CLASS # PolyClass
    NAME "Shoreline"
    COLOR 0 0 0
    #LABEL
    #  COLOR 0 0 0
    #END # LABEL
  END
 =20
END # LAYER
=20
END
# END MAPFILE

Thx,

Nicolas Fortin=20
Math=E9maticien, Programmeur, Analyste de donn=E9es=20
SMC-Qu=E9bec Hydrologie, Environnement Canada=20
1141, Rte de l'=C9glise, Sainte-Foy(QC) G1V 4H5=20
(418)648-2516=20
nicolas.fortin at ec.gc.ca <mailto:nicolas.fortin at ec.gc.ca
<mailto:nicolas.fortin at ec.gc.ca> >=20

=20

------_=_NextPart_001_01C39E52.9C47BD80
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1264" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=805162019-29102003>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=805162019-29102003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=805162019-29102003>I'm new to mapserver 
and I'm making some tests to make it work with Oracle spatial (very simple tests 
though).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=805162019-29102003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=805162019-29102003>One of my test 
consist of two layers, one in Lambert Conformal Conic (LCC)&nbsp;and the other 
in NAD83 MTM Zone 8.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=805162019-29102003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=805162019-29102003>I wonder if I have 
to do something special to make Mapserver convert between 
projection...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=805162019-29102003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=805162019-29102003>For the mapfile 
below, only the LCC layer is visible in the bounding box.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=805162019-29102003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=805162019-29102003># BEGIN 
MAPFILE</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=805162019-29102003># Mapserver test 3 
for Oracle<BR># Nicolas Fortin, Env Can <A 
href="mailto:nicolas.fortin at ec.gc.ca">nicolas.fortin at ec.gc.ca</A></SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=805162019-29102003>NAME 
MS_ORA_TEST_3<BR>EXTENT 7613000 1218000 7620000 1227000<BR>#EXTENT 275000 
5019000 280000 5027000<BR>SIZE 350 450<BR>PROJECTION<BR>&nbsp; 
"init=epsg:102002"<BR>END</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=805162019-29102003>LAYER # Test 
table<BR>&nbsp; NAME "PointTest"<BR>&nbsp; TYPE POINT<BR>&nbsp; CONNECTIONTYPE 
oraclespatial<BR>&nbsp; CONNECTION "<A 
href="mailto:martins/****@bayfield">martins/****@bayfield</A>"<BR>&nbsp; DATA 
"GEOLOC FROM MARTINS.CT_LCC_MI"<BR>&nbsp; STATUS DEFAULT<BR>&nbsp; DUMP 
TRUE<BR>&nbsp; <BR>&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp; 
"init=epsg:102002"<BR>&nbsp; END<BR>&nbsp; <BR>&nbsp; CLASS # 
PolyClass<BR>&nbsp;&nbsp;&nbsp; NAME "Point"<BR>&nbsp;&nbsp;&nbsp; COLOR 0 100 
240<BR>&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<BR>&nbsp; END</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=805162019-29102003>END # 
LAYER</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=805162019-29102003>LAYER # Test 
table<BR>&nbsp; NAME Shoreline<BR>&nbsp; TYPE LINE<BR>&nbsp; CONNECTIONTYPE 
oraclespatial<BR>&nbsp; CONNECTION "<A 
href="mailto:usr_bathy/****@bayfield">usr_bathy/****@bayfield</A>"<BR>&nbsp; 
DATA "GEOLOC FROM USR_BATHY.SHORELINE USING SRID 82196"<BR>&nbsp; STATUS 
DEFAULT<BR>&nbsp; DUMP TRUE<BR>&nbsp; <BR>&nbsp; 
PROJECTION<BR>&nbsp;&nbsp;&nbsp; "init=epsg:2145"<BR>&nbsp; END<BR>&nbsp; 
<BR>&nbsp; CLASS # PolyClass<BR>&nbsp;&nbsp;&nbsp; NAME 
"Shoreline"<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp; 
#LABEL<BR>&nbsp;&nbsp;&nbsp; #&nbsp; COLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp; #END # 
LABEL<BR>&nbsp; END<BR>&nbsp; <BR>END # LAYER</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=805162019-29102003>END</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=805162019-29102003>#&nbsp;END 
MAPFILE<BR></DIV></SPAN></FONT>
<DIV><SPAN class=805162019-29102003><FONT face=Arial 
size=2>Thx,</FONT></SPAN></DIV>
<P><B><I><FONT face="Bookman Old Style" color=#000080 size=2>Nicolas 
Fortin</FONT></I></B><I></I> <BR><B><FONT face=Arial size=1>Mathématicien, 
Programmeur, Analyste de données</FONT></B> <BR><B><FONT face=Arial 
size=1>SMC-Québec Hydrologie, Environnement Canada</FONT></B> <BR><B><FONT 
face=Arial size=1>1141, Rte de l'Église, Sainte-Foy(QC) G1V 4H5</FONT></B> 
<BR><B><FONT face=Arial size=1>(418)648-2516</FONT></B> <BR><U><FONT face=Arial 
color=#0000ff size=1>nicolas.fortin at ec.gc.ca &lt;<A 
href="mailto:nicolas.fortin at ec.gc.ca">mailto:nicolas.fortin at ec.gc.ca</A>&gt;</FONT></U> 
</P>
<DIV>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C39E52.9C47BD80--



More information about the mapserver-users mailing list