No subject


Fri Feb 8 15:06:04 EST 2008


snippet at the bottom of Section 4 about gdaltindex and creating a tile
index shapefile.  I tried that. =20

Here's what I typed: gdaltindex u_of_ill.shp
~/Desktop/UofImapSquares/*.gif

Here's what was returned to me:
It appears no georeferencing is available for
`/home/jimbo/Desktop/UofImapSquares/A0.gif', skipping.
It appears no georeferencing is available for
`/home/jimbo/Desktop/UofImapSquares/A12.gif', skipping.
and so on.........

Ok.  Yes.  I know.  There's no georeferencing info attached.
But, how do I go about attaching georeferencing info? =20
And how do I create, edit, and view a shapefile?
And lastly, do I need a world file to determine a global position for
every tile?

I tried using a text editor Gedit (I figured What the Hey?) to open them
and nope - wasn't in UTF-8 encoding.

I did some digging Google and noticed that you can use ArcView GIS,
ArcMap, ArcGIS, and ArcCatalog to create, edit, and view shapefiles.

I also stumbled across posting that talked about ShapeLib created by
Eduardo Patto Kanegae and maintained by Frank Warmerdam.

I don't have money to spend on buying some GIS program, and ShapeLib
seems like the answer.

Could anyone help?

 - Chris






________________________________

Get news, entertainment and everything you care about at Live.com. Check
it out! <http://www.live.com/getstarted.aspx%20>=20

=20

________________________________

Explore the seven wonders of the world Learn more!
<http://search.msn.com/results.aspx?q=3D7+wonders+world&mkt=3Den-US&form=3D=
QBR
E>=20

=20

________________________________

Connect to the next generation of MSN Messenger  Get it now!
<http://imagine-msn.com/messenger/launch80/default.aspx?locale=3Den-us&so=
u
rce=3Dwlmailtagline>=20


------_=_NextPart_001_01C8008C.75E32C21
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" =
name=3D"country-region"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"PlaceName"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"PlaceType"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
 /* List Definitions */
 @list l0
	{mso-list-id:149754048;
	mso-list-type:hybrid;
	mso-list-template-ids:1505643766 -336300016 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
	{mso-level-start-at:0;
	mso-level-number-format:bullet;
	mso-level-text:-;
	mso-level-tab-stop:33.0pt;
	mso-level-number-position:left;
	margin-left:33.0pt;
	text-indent:-.25in;
	font-family:Arial;
	mso-fareast-font-family:"Times New Roman";}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Chris =
&#8211;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>(I added the list back to the reply =
line &#8211;
please always reply to the whole list &#8211; =
thanks)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>A world file is in the units of the =
image&#8217;s
projection, not the other way around.&nbsp; Having a world file does not =
mean
the image is in UTM projection.&nbsp; The UTM projection is a popular =
one, but
it&#8217;s certainly not the only one.&nbsp; For a map in Illinois UTM =
is
certainly a possibility, but an Illinois State Plane Coordinate System
projection is also a possibility &#8211; especially if the original =
imagery
came from the State of Illinois.&nbsp; And geographic lat/lon =
coordinates are
also a possibility due to the increasing number of people in the world =
who seem
to think the Earth is flat (at least on the =
Web).<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I don&#8217;t know which campus =
you&#8217;re
using, but if you&#8217;re at UIUC then the UTM coordinates will be in =
UTM Zone
16 with values of around 395000 (X or Easting) &nbsp;4440000 (Y or =
Northing).&nbsp;
If your numbers don&#8217;t look like those, they&#8217;re not =
UTM.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Oh, sorry &#8211; I started =
answering
before reading all the questions, and you later seem to confirm that =
your
coordinates are indeed UTM.&nbsp; But you got the formulas backwards, =
and X
should be positive while Y should be negative- not the other way =
around.&nbsp;
And the measurements in your world file are indeed in meters, but =
that&#8217;s
because those are the native units of the UTM projection being =
used.&nbsp;
There&#8217;s nothing that requires them to be in meters; many =
<st1:country-region
w:st=3D"on"><st1:place w:st=3D"on">US</st1:place></st1:country-region> =
state plane
coordinate systems use units of feet, and those would appear in the =
world file,
too.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Now it is highly unlikely that your =
pixel
resolution is different in each dimension.&nbsp; You could average those =
two
numbers, or double-check your coordinate values (you didn&#8217;t say =
what
source you used to get them).&nbsp; If you got this image from a GIS =
source, I
would say that if you think the dimensions are different you&#8217;re =
wrong,
but who knows what the University did to munge the image into a pretty
picture.&nbsp; So maybe the dimensions ARE different; that&#8217;s not
impossible, just odd.&nbsp; I still would double-check your measurements =
and
math, but if you get the same answer that&#8217;s =
OK.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Once you do that you just have to =
crank
out those world files!<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'margin-left:33.0pt;text-indent:-.25in;mso-list:l0 level1 =
lfo1'><![if !supportLists]><font
size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'><span style=3D'mso-list:Ignore'>-<font size=3D1 =
face=3D"Times New Roman"><span
style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font></span></span></font><![endif]><font size=3D2 color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Ed<o:p></o:p></sp=
an></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Ed =
McNierney<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>TopoZone.com<o:p></o:p></span></font=
></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> =
Christopher
Harris [mailto:docterrobert at msn.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, =
September 26,
2007 1:13 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Ed McNierney<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: =
[UMN_MAPSERVER-USERS]
Rasters, TileIndex and Shapefiles - Oh My! Really =
Confused</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'>Wow.&nbsp; Thanks Ed.&nbsp; You went to a lot of
trouble.&nbsp; Most of this stuff you've explained I have a handle =
on.&nbsp; I
wikipedia'd how to make a world file when I did that previous app.&nbsp; =
And
yes, it's the same app with the image that's in UTM projection.&nbsp; I
actually have one last question about that, but I'll do a separate post =
for
that.&nbsp; This is a modification of that app.&nbsp; See, I've been =
using this
&quot;Parking Lot&quot; map for the <st1:place =
w:st=3D"on"><st1:PlaceType w:st=3D"on">University</st1:PlaceType>
 of <st1:PlaceName w:st=3D"on">Illinois</st1:PlaceName></st1:place>, =
because I
couldn't find a better looking one.&nbsp; Well, yesterday, I noticed =
that you
could go their full campus map and right click on each individual tile =
and save
it as a .gif.&nbsp; I had tried this before but was apparently clicking =
on
certain, wrong areas of each tile every time where I guess the =
javascript was
blocking me.&nbsp; The javascript that they use displays info on certain
buildings when you click on them.&nbsp; If you happen to right-click on =
or
around a building and try to save, you can't.&nbsp; You have to click =
somewhere
else on the tile that's on or around a building.&nbsp; Anywho - my boss =
now
wants me to take what I've done with that one pic of&nbsp; the =
&quot;Parking
Lot&quot; and now apply it to a big tiled image of the entire campus =
(enter the
tiles I've saved).&nbsp; That's the back story as to what's going =
on.<br>
<br>
I have 3 questions now.<br>
<br>
#1 You asked if the image is in UTM.&nbsp; I'm basing the image =
projection on
the world file.&nbsp; I remember you (or maybe this one other guy on =
this list
serv) telling me before that you can't distinguish what projection a =
world file
is in - that that's one of the cons to world files.&nbsp; Every example =
I've
ever seen after typing in &quot;World File&quot; in Google shows a world =
file
that is in meters and says that it's using UTM projection.&nbsp; That's =
still
the case right?<br>
<br>
Oh, the lat/lon has to do with me reprojecting.&nbsp; See, someone =
passes me a
lat/lon coordinate (a center point).&nbsp; I then take that, and convert =
it to
UTM, because the map's projection is in UTM due to the world file being =
in UTM.<br>
<br>
Thanks for your time and patience by the way.&nbsp; You've been a huge =
help.<br>
<br>
#2 The one thing I'm hazy on in regard to the world file is: <br>
the 1st and 4th line - pixel size in the <i><span =
style=3D'font-style:italic'>x</span></i>-direction
and y-direction in map units/pixel<br>
<br>
I understand why x is positive and y is almost always negative.&nbsp; =
But, does
that mean, for example, <br>
if I type 2 for the 1st line and -2 for the fourth line, then there will =
be 2
meters per pixel going both directions?&nbsp; For that I could never =
find an
example of what they meant.&nbsp; I just assumed that.&nbsp; I usually =
work
best with seeing an example, and one was never provided on any of the =
pages I
visited.<br>
<br>
#3 </span></font><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&quot;The X pixel dimension will be =
(maxx
&#8211; minx) / xpixels, and the Y will be (miny &#8211; maxy) / =
ypixels.&nbsp;
You should find that the X number is -1 times the Y number.&quot;<br>
</span></font><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;color:black'><br>
Is pixel dimension related to question #2?&nbsp; For instance (in =
meters):<br>
<br>
TL - 393898 4441379 BR - 396253 4438945</span></font><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'><br>
</span></font><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;color:black'><br>
maxx=3D393898, maxy=3D4441379<br>
minx=3D396253, miny=3D4438945<br>
<br>
DeltaX=3D-2355, DeltaY=3D2434<br>
<br>
Say the mosaic's dimensions in pixels are.........: X=3D1500, =
Y=3D2000<br>
<br>
X pixel dimension =3D -2355/1500 =3D -1.57 meters/pixel<br>
Y pixel dimension =3D 2434/2000 =3D 1.217 meters/pixel<br>
<br>
That right?<br>
<br>
&nbsp;- Chris</span></font><font size=3D2 face=3DTahoma><span =
style=3D'font-size:
10.0pt;font-family:Tahoma'><o:p></o:p></span></font></p>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>

<hr size=3D2 width=3D"100%" align=3Dcenter>

</span></font></div>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>Subject: RE: =
[UMN_MAPSERVER-USERS]
Rasters, TileIndex and Shapefiles - Oh My! Really Confused<br>
Date: Wed, 26 Sep 2007 14:45:54 -0400<br>
From: ed at topozone.com<br>
To: docterrobert at MSN.COM; =
MAPSERVER-USERS at LISTS.UMN.EDU<o:p></o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Chris &#8211;</span></font><font =
size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>OK &#8211; it&#8217;s not as bad as =
all
that &#8211; don&#8217;t fire up Photoshop yet.&nbsp; If you have a set =
of
tiles which together create a seamless large image, and those tiles are =
of a
regular size and shape, don&#8217;t bother pasting them =
together.</span></font><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Each world file has six numbers in =
it, two
of which will be 0.&nbsp; For each image tile you need a world file that
contains the X/Y coordinates of the upper left pixel of the image (two
numbers), and the dimension (size) of each pixel in X (one number) and Y =
(one
number) units.&nbsp; In the vast majority of cases the last two numbers =
will be
identical except for sign (the Y value is normally a negative number =
since Y
values decrease as you go from the top to the bottom of the =
image).</span></font><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>If your images make a rectangle =
when
pasted together, just treat them as one.&nbsp; Find the X/Y coordinates =
of the
upper left corner of the entire image area, and the X/Y coordinates of =
the
lower right corner of the entire image area.&nbsp; Find the size of the =
entire
mosaiced rectangle in X and Y pixels.&nbsp; The X pixel dimension will =
be (maxx
&#8211; minx) / xpixels, and the Y will be (miny &#8211; maxy) / =
ypixels.&nbsp;
You should find that the X number is -1 times the Y =
number.</span></font><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>For all your world files, these two =
X and
Y extent values (the first and fourth lines) will be constants.&nbsp; =
The last
two lines are the upper left X and Y coordinates of each tile.&nbsp; =
Your tiles
will all have the same Y value across each row, and the same X value =
down each
column.&nbsp; You know what the upper-left corner of the upper-left tile =
is,
because you measured it.&nbsp; You know the number of X pixels in each =
tile and
the number of Y pixels in each tile, and you now know the size in X and =
Y units
of each pixel, so you know the extent of each image tile in X and Y =
units, so
you can calculate the upper-left corner coordinate of the image to the =
right
and the image below.&nbsp; Repeat until complete.</span></font><font =
size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>All your measurements need to be =
done in
the units of the image&#8217;s coordinate system.&nbsp; Is this the =
image you
were asking about earlier that&#8217;s in UTM projection?&nbsp; If so, =
you need
UTM coordinates, NOT lat/lon.&nbsp; I wouldn&#8217;t recommend Google =
Earth as
a very accurate way to do that, but if it&#8217;s close enough for you =
and easy
that&#8217;s OK.&nbsp; If you can easily find the corners of your image =
area on
a topo map you can do it on TopoZone and get UTM coordinates accurate to =
within
a few meters just by clicking on the spots that match the corner points =
of your
image.</span></font><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>If there isn&#8217;t an obvious =
landmark
at the corner, you can pick a prominent location NEAR the corner and =
just
measure the number of pixels away from the corner it is.&nbsp; =
It&#8217;s just
a bit more bookkeeping but does the same thing.</span></font><font =
size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal =
style=3D'margin-left:33.0pt;text-indent:-.25in'><font size=3D2
color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'>-</span></font><font size=3D1 color=3Dnavy><span =
style=3D'font-size-adjust: none;
font-stretch: normal'><span =
style=3D'font-size:7.0pt;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;
</span></span></font><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Ed</span></font><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Ed McNierney</span></font><font =
size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>TopoZone.com</span></font><font =
size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> UMN =
MapServer
Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] <b><span =
style=3D'font-weight:
bold'>On Behalf Of </span></b>Christopher Harris<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, =
September 26,
2007 11:15 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
MAPSERVER-USERS at LISTS.UMN.EDU<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re: =
[UMN_MAPSERVER-USERS]
Rasters, TileIndex and Shapefiles - Oh My! Really =
Confused<o:p></o:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;</span></font><font size=3D2 face=3DTahoma><span =
style=3D'font-size:
10.0pt;font-family:Tahoma'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'>Thanks again, Ed.&nbsp; I need to clear up some =
things that
I guess I didn't make clear.<br>
<br>
I know that a world file provides georeferencing.&nbsp; I meant to say =
that I
had a .gif that had no georeferencing info associated with it, and then =
added
one.&nbsp; From there I got my initial app to work (displaying the big =
map).<br>
<br>
One thing I omitted was that the little .gifs (tiles), when assembled, =
make up
a different big map pic then the one where mentioned =
:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&#8220;</span></font><font size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>it =
uses one .gif
(the big map pic), attaches the big map to the globe via a world =
file.&nbsp;
That big map .gif had no georeferencing info attached to =
it.&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'>Before I had a pic of a large section of a college
campus.&nbsp; Now I have a pic of the entire campus, but in little =
tiles.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'>I know Mapserver makes maps and not pics too.&nbsp; =
I probably
just worded something wrong.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&quot;So &#8211; what do you know =
about
these images?&nbsp; Do you really have a world file that correctly =
describes
your big GIF image?&nbsp; Do you know exactly how the little images were
created from the big image?&nbsp; If so, you should be able to figure =
out how
to generate world files for each individual image.&nbsp; If not, =
you&#8217;ll
need to get that information for your big image.&quot;<br>
<br>
</span></font><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;color:black'>Yes, I have a world file, but it's for =
the pic
that shows a large section of the campus - not for the big pic that is =
the sum
of the little pics.<br>
<br>
<br>
Ok, so then I have to have a world file for every little tile, but =
before that
I need to correctly set up the world file for the big pic, which I guess =
I'll
need to assemble in Photoshop.&nbsp; Does that sound right?&nbsp; I can =
do it,
it's just a bit tedious lining up the tiles and such.&nbsp; Also, how do =
you
correctly align a pic of some map on the globe.&nbsp; I've been using =
Google
Maps to do it.&nbsp; I'll sit there and study where the pic's corners =
should
approximately be, then get the lat/lon from that (clicking directions to =
or
from will yield the lat/lons).<br>
<br>
Thank you.<br>
<br>
&nbsp;- Chris&nbsp;</span></font><font size=3D2 face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'> =
<o:p></o:p></span></font></p>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>

<hr size=3D2 width=3D"100%" align=3Dcenter>

</span></font></div>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>Subject: RE: =
[UMN_MAPSERVER-USERS]
Rasters, TileIndex and Shapefiles - Oh My! Really Confused<br>
Date: Wed, 26 Sep 2007 13:36:42 -0400<br>
From: ed at topozone.com<br>
To: docterrobert at MSN.COM; =
MAPSERVER-USERS at LISTS.UMN.EDU<o:p></o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Chris &#8211;</span></font><font =
size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Let me suggest you try to get =
unconfused
just one step at a time!</span></font><font size=3D2 face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&#8220;</span></font><font size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>it =
uses one .gif
(the big map pic), attaches the big map to the globe via a world =
file.&nbsp; That
big map .gif had no georeferencing info attached to =
it.&#8221;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'>&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>That&#8217;s a bit of a
contradiction.&nbsp; A world file is one way of providing =
georeferencing.&nbsp;
If you&#8217;ve got an image &#8220;attached&#8221; to the Earth via a =
world
file, you&#8217;ve georeferenced it.</span></font><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>MapServer makes maps, not =
pictures.&nbsp;
One of the chief differences is that a map has geographic location =
information
associated with it.&nbsp; When you ask MapServer to generate a map for =
you, you
need to tell it the location of the map you want in some coordinate
system.&nbsp; In order for MapServer to know which of your GIF images to =
use in
making the output map, it needs to know the geographic location of each =
of
those images.&nbsp; Otherwise it couldn&#8217;t figure out which ones to =
use.</span></font><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>A TILEINDEX is step two in the
process.&nbsp; Once you have a set of more than 1 properly georeferenced =
images
that you&#8217;d like to use like a single logical image, you can create =
a
TILEINDEX to do that.&nbsp; But you have to completely and correctly =
make it
through step one first.&nbsp; Once you get the individual images =
properly
georeferenced, gdaltindex will just work.</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>So &#8211; what do you know about =
these
images?&nbsp; Do you really have a world file that correctly describes =
your big
GIF image?&nbsp; Do you know exactly how the little images were created =
from
the big image?&nbsp; If so, you should be able to figure out how to =
generate
world files for each individual image.&nbsp; If not, you&#8217;ll need =
to get
that information for your big image.</span></font><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>If you do have that world file and =
know
how the tiles were created, let us know (you can post the world file in =
your
reply &#8211; it&#8217;s just six lines of text).</span></font><font =
size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal =
style=3D'margin-left:33.0pt;text-indent:-.25in'><font size=3D2
color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'>-</span></font><font size=3D1 color=3Dnavy =
face=3DTahoma><span
style=3D'font-size:7.0pt;font-family:Tahoma;color:navy'>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;color:navy'>Ed</span></font><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Ed McNierney</span></font><font =
size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>TopoZone.com</span></font><font =
size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><font size=3D2
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></=
p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> UMN =
MapServer
Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] <b><span =
style=3D'font-weight:
bold'>On Behalf Of </span></b>Christopher Harris<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, =
September 26,
2007 10:02 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
MAPSERVER-USERS at LISTS.UMN.EDU<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> =
[UMN_MAPSERVER-USERS]
Rasters, TileIndex and Shapefiles - Oh My! Really =
Confused<o:p></o:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;</span></font><font size=3D2 face=3DTahoma><span =
style=3D'font-size:
10.0pt;font-family:Tahoma'><o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>Hi.&nbsp; I have a map =
that is
broken up into a bunch of .gif tiles.&nbsp; I want to display them on a =
layer
in Mapserver.&nbsp; I have working version of what I want to accomplish, =
but it
uses one .gif (the big map pic), attaches the big map to the globe via a =
world
file.&nbsp; That big map .gif had no georeferencing info attached to =
it.<br>
<br>
These .gifs have no georeferencing information included or attached as =
well.<br>
<br>
I read Section 4 (and Section 9 too) on the mapserver site page:
http://mapserver.gis.umn.edu/docs/howto/raster_data<br>
<br>


More information about the mapserver-users mailing list