[Mapserver-users] How do I get the extent values?

Swaminathan, Gayathri gayathri at ou.edu
Tue Jun 1 11:05:11 PDT 2004


This is a multi-part message in MIME format.

------_=_NextPart_001_01C44802.FB7CF0AF
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,
When you mouse over on your added "Image or feature layer" in arcview,
the scale/extent in the top right corner changes...
So to determine extent you should be able to mouse over at the four
corners of your feature and get extents...
=20
Alternatively, you get this information from a metadata file
accompanying your shapefile.
=20
Gayathri

	-----Original Message-----
	From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Namnath,
Sharyn
	Sent: Tuesday, June 01, 2004 12:48 PM
	To: 'mapserver-users at lists.gis.umn.edu'
	Subject: [Mapserver-users] How do I get the extent values?
=09
=09

	I am trying to show my map using MapServer & PHP.  However, I
can't seem to figure out how to get the extent valuies

	=20

	Here is my .map file

	=20

	MAP

	    NAME HELLO

	    IMAGETYPE      PNG

	    STATUS ON

	    EXTENT 0 0 4000 3000

	    SIZE 400 300

	=20

	    WEB

	        IMAGEPATH "/Inetpub/wwwroot/MyOwnData/tmp/"

	        IMAGEURL "tmp/"

	    END

	=20

	LAYER # MODIS raster layer begins here

	  NAME         Italy

	  DATA         "data/Italy.jpg"

	  STATUS       DEFAULT

	  TYPE         RASTER

	  PROCESSING   "BANDS=3D1,2,3"

	  OFFSITE      71 74 65

	=20

	  PROJECTION

	    "init=3Depsg:4326"

	  END

	END # MODIS raster layer ends here

	=20

	END

	=20

	In the MapServer tutorial, it says that I can use ArcView to
determine the extent. I have ArcView, but I still can't figure out how
to get the extent in it.  I've tried a couple of different values from
Area Of Interest (Display & View), but none of those seem to work
either.

	=20

	Thanks for any help in advance,

	Sharyn


------_=_NextPart_001_01C44802.FB7CF0AF
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in =
1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV><SPAN class=3D578330518-01062004><FONT face=3DArial color=3D#000080 =

size=3D2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D578330518-01062004><FONT face=3DArial color=3D#000080 =
size=3D2>When=20
you mouse over on your added "Image or feature layer" in arcview, the=20
scale/extent in the top right corner changes...</FONT></SPAN></DIV>
<DIV><SPAN class=3D578330518-01062004><FONT face=3DArial color=3D#000080 =
size=3D2>So to=20
determine extent you should be able to mouse over at the four corners of =
your=20
feature and get extents...</FONT></SPAN></DIV>
<DIV><SPAN class=3D578330518-01062004><FONT face=3DArial color=3D#000080 =

size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D578330518-01062004><FONT face=3DArial color=3D#000080 =

size=3D2>Alternatively, you get this information from a metadata file =
accompanying=20
your shapefile.</FONT></SPAN></DIV>
<DIV><SPAN class=3D578330518-01062004><FONT face=3DArial color=3D#000080 =

size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D578330518-01062004><FONT face=3DArial color=3D#000080 =

size=3D2>Gayathri</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B>=20
  mapserver-users-admin at lists.gis.umn.edu=20
  [mailto:mapserver-users-admin at lists.gis.umn.edu] <B>On Behalf Of =
</B>Namnath,=20
  Sharyn<BR><B>Sent:</B> Tuesday, June 01, 2004 12:48 PM<BR><B>To:</B>=20
  'mapserver-users at lists.gis.umn.edu'<BR><B>Subject:</B> =
[Mapserver-users] How=20
  do I get the extent values?<BR><BR></FONT></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I am trying to show my =
map using=20
  MapServer & PHP.  However, I can't seem to figure out how to =
get the=20
  extent valuies</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Here is my .map=20
  file</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">MAP</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">    NAME=20
  HELLO</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">   =20
  IMAGETYPE      PNG</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">    =
STATUS=20
  ON</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">    =
EXTENT 0 0 4000=20
  3000</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">    SIZE =
400=20
  300</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">   =20
  WEB</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">       =20
  IMAGEPATH "/Inetpub/wwwroot/MyOwnData/tmp/"</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">       =20
  IMAGEURL "tmp/"</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">   =20
  END</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">LAYER # MODIS raster =
layer begins=20
  here</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"> =20
  NAME         =
</SPAN></FONT><FONT=20
  face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Italy</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"> =20
  DATA        =20
  "data/Italy.jpg"</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"> =20
  STATUS       DEFAULT</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"> =20
  TYPE         =
RASTER</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">  =
PROCESSING  =20
  "BANDS=3D1,2,3"</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"> =20
  OFFSITE      71 74 65</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"> =20
PROJECTION</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">   =20
  "init=3Depsg:4326"</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">  =
END</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">END # MODIS raster layer =
ends=20
  here</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">END</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">In the MapServer =
tutorial, it says=20
  that I can use ArcView to determine the extent. I have ArcView, but I =
still=20
  can't figure out how to get the extent in it.  I've tried a =
couple of=20
  different values from Area Of Interest (Display & View), but none =
of those=20
  seem to work either.</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks for any help in=20
  advance,</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">Sharyn</SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>
=00
------_=_NextPart_001_01C44802.FB7CF0AF--



More information about the MapServer-users mailing list