[Mapserver-users] Projection and/or Extent problem

Eric Fegraus fegraus at nceas.ucsb.edu
Wed Jun 9 13:11:47 PDT 2004


This is a multi-part message in MIME format.

------=_NextPart_000_0006_01C44E23.51E72060
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,

I'm beginning with Mapserver.  Have it installed on Linux with Apache.  =
I'm
trying to make an image of one of my shapefiles.  The image is created =
but
the size of the shapefile as part of the image is about 1/100 the size =
of
the image (i.e. most all the image is white and the shapefile appears in =
the
top left corner of the image).  Have a feeling it must be due to my =
extent
and/or Projection.  Any ideas?

Thanks!
Eric
-------------------------------------------------------------------------=
---
-----------------------------------
 Start of map file
#
MAP
  IMAGETYPE PNG
  NAME Test
  STATUS ON
  SIZE 400 400
  EXTENT 283091.000000 352956.000000 7529638.000000 7427241.000000
  UNITS METERS
  SHAPEPATH "data"
  IMAGECOLOR 255 255 255
  #
  # Projection definition, consult the PROJ.4 documentation for =
parameter
discussion
  #
   PROJECTION
     "proj=3Dutm"
     "zone=3D36"
     "south"
     "ellps=3DWGS84"
     "datum=3DWGS84"
     "units=3Dm"
     "no_defs"
  #
  #   OR:
  #
#     "init=3Depsg:32736"
   END
#-- Begin layer defs.---------------------

  LAYER
    PROJECTION
     "proj=3Dutm"
     "datum=3DWGS84"
    END
    NAME SOILS_shape  =20
    TYPE POLYGON
    STATUS DEFAULT
    DATA SOILS_shape
        CLASS
           OUTLINECOLOR 128 128 128
           COLOR 225 225 185
        END #-- End class def.
  END #--End Layer def.

END #-- End Map File


------=_NextPart_000_0006_01C44E23.51E72060
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.4630.0">
<TITLE>Projection and/or Extent problem</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hello,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I'm beginning with Mapserver.  =
Have it installed on Linux with Apache.  I'm trying to make an =
image of one of my shapefiles.  The image is created but the size =
of the shapefile as part of the image is about 1/100 the size of the =
image (i.e. most all the image is white and the shapefile appears in the =
top left corner of the image).  Have a feeling it must be due to my =
extent and/or Projection.  Any ideas?</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks!</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Eric</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">----------------------------------------------------------=
-----------------------------------------------------</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial"> Start of map file</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">MAP</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  IMAGETYPE PNG</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  NAME Test</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  STATUS ON</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  SIZE 400 400</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  EXTENT 283091.000000 =
352956.000000 7529638.000000 7427241.000000</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  UNITS METERS</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  SHAPEPATH =
"data"</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  IMAGECOLOR 255 255 255</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  #</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  # Projection definition, =
consult the PROJ.4 documentation for parameter discussion</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  #</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">   PROJECTION</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">     =
"proj=3Dutm"</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">     =
"zone=3D36"</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">     =
"south"</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">     =
"ellps=3DWGS84"</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">     =
"datum=3DWGS84"</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">     =
"units=3Dm"</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">     =
"no_defs"</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  #</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  #   OR:</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  #</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#     =
"init=3Depsg:32736"</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">   END</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#-- Begin layer =
defs.---------------------</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">  LAYER</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">    PROJECTION</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">     =
"proj=3Dutm"</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">     =
"datum=3DWGS84"</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">    END</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">    NAME =
SOILS_shape   </FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">    TYPE POLYGON</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">    STATUS =
DEFAULT</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">    DATA =
SOILS_shape</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        CLASS</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">         &nbs=
p; OUTLINECOLOR 128 128 128</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">         &nbs=
p; COLOR 225 225 185</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        END #-- End =
class def.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">  END #--End Layer def.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">END #-- End Map File</FONT>
</P>

</BODY>
</HTML>
------=_NextPart_000_0006_01C44E23.51E72060--




More information about the MapServer-users mailing list