[Mapserver-users] Projection and/or Extent problem

Eric Fegraus fegraus at nceas.ucsb.edu
Wed Jun 9 16:11:47 EDT 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.&nbsp; =
Have it installed on Linux with Apache.&nbsp; I'm trying to make an =
image of one of my shapefiles.&nbsp; 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).&nbsp; Have a feeling it must be due to my =
extent and/or Projection.&nbsp; 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">&nbsp;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">&nbsp; IMAGETYPE PNG</FONT>

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

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

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

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

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

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp; SHAPEPATH =
&quot;data&quot;</FONT>

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

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

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

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

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

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp; =
&quot;proj=3Dutm&quot;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp; =
&quot;zone=3D36&quot;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp; =
&quot;south&quot;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp; =
&quot;ellps=3DWGS84&quot;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp; =
&quot;datum=3DWGS84&quot;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp; =
&quot;units=3Dm&quot;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp; =
&quot;no_defs&quot;</FONT>

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

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

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

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

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

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

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

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

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp; =
&quot;proj=3Dutm&quot;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp; =
&quot;datum=3DWGS84&quot;</FONT>

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

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

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

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

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

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

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

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

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

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp; 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