<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=446243417-03012001>Joel;</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=446243417-03012001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=446243417-03012001>Here's
a little Avenue script that will build the tile theme for you. It will add
all the images in a view to the theme, and assign the image's filename (without
directories) to a 'Source' field in it's table.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=446243417-03012001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=446243417-03012001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=446243417-03012001>'--Start Script</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=446243417-03012001>theView = av.GetActiveDoc<BR>theFN =
FileDialog.Put("imgtile.shp".AsFileName, "*.shp", "Save Image Tiles")<BR>if
(theFN = nil) then return nil end<BR>theFTab = FTab.MakeNew(theFN,
Polygon)<BR>theFTab.AddFields({Field.Make("Source", #FIELD_CHAR, 64, 0)})<BR>for
each theTheme in theView.GetThemes<BR> if (theTheme.Is(ITheme))
then<BR> theNewRec = theFTab.AddRecord<BR>
theFTab.SetValue(theFTab.FindField("Shape"), theNewRec,
theTheme.ReturnExtent.AsPolygon)<BR>
theFTab.SetValue(theFTab.FindField("Source"), theNewRec,
theTheme.GetSrcName.GetFileName.GetBaseName)<BR>
end<BR>end<BR>theFTab.SetEditable(false)<BR>theView.AddTheme(FTheme.Make(theFTab))</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=446243417-03012001><FONT
color=#0000ff face=Arial size=2><SPAN class=446243417-03012001>'--End
Script</SPAN></FONT></SPAN></FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
owner-mapserver-users@lists.gis.umn.edu
[mailto:owner-mapserver-users@lists.gis.umn.edu]<B>On Behalf Of </B>Joel
Anderson<BR><B>Sent:</B> Wednesday, January 03, 2001 10:14 AM<BR><B>To:</B>
mapserver-users@lists.gis.umn.edu<BR><B>Subject:</B> Raster Image
Questions<BR><BR></DIV></FONT>
<DIV><FONT face=Arial size=2>Hello All!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Ok, calling all raster gurus out there: I've got
a problem I hope someone can help me with!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've got a bunch of USGS DOQs (both in BIL and
jpeg(COQ) format) I'd like to display in a couple of different ways: 1.
I'd like to be able to create a raster layer and display an
individual DOQ (COQ) in jpeg format, and 2. I'd like to be create a
shapefile to tile a series of DOQs(COQ), again in jpeg format (say, a township
or county). Unfortunately, I've not had any luck with either. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have created world files for these (which I'm
not 100% confident in), using Todd Poston's qdir extension. I'm also
wondering if I should be using a projection scheme here, but I'm not familiar
with using projections in mapserver, or with proj4. At any rate, I've still
got something broken, and am unsure how to proceed.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've been searching the archives for others who
have attempted this, and have found bits and pieces (so I guess it's
possible), but I think I am still missing something (the first clue was
no images displaying...). I was hoping some kind soul would be gracious enough
to walk me through the steps necessary to make these scenarios
work.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If anyone can help me out with this, I'll fedex
my right arm this afternoon.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Joel
Anderson</FONT></DIV></BLOCKQUOTE></BODY></HTML>