<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:st="&#1;" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="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]-->
<title>GeoTIFF geographic grid alignment</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 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
        {margin:0in;
        margin-bottom:.0001pt;
        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;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Tim,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I think the GeoTIFF spec tries to show
through its examples that although the orientation of the positive J raster
space axis is usually in the opposite direction of the positive Y model space
axis, it is expected that both pixel scales will be positive under these
conditions. (They probably could have been clearer if they described full map
extents of the images in the examples). Negation should be used appropriately
as the current condition differs from that usual condition. This is also
supported by the example on page 27 where the ModelTransformationTag content
equivalents of an image with tiepoint (I,J,K,X,Y,Z) and scale (Sx, Sy, Sz) is
provided. So I think you have that right in your example.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>We use a -0.5, -0.5 translation to
translate pixel is area to pixel is point just has you have done below.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Max<o:p></o:p></span></font></p>

<div>

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

<hr size=2 width="100%" align=center tabindex=-1>

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

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
geotiff-bounces@lists.maptools.org [mailto:geotiff-bounces@lists.maptools.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>dburken@comcast.net<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, May 10, 2010 1:48 PM<br>
<b><span style='font-weight:bold'>To:</span></b> tjn98<br>
<b><span style='font-weight:bold'>Cc:</span></b> Geotiff@lists.maptools.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Geotiff] GeoTIFF
geographic grid alignment</span></font><o:p></o:p></p>

</div>

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

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=black
face=Arial><span style='font-size:12.0pt;font-family:Arial;color:black'>Hi,<br>
<br>
If </span></font><font size=2 color=black face=Consolas><span style='font-size:
10.0pt;font-family:Consolas;color:black'>RasterPixelIsPoint I think it would be
(0.5, -0.5).<br>
<br>
Dave<br>
<br>
</span></font><font color=black face=Arial><span style='font-family:Arial;
color:black'>----- Original Message -----<br>
From: &quot;tjn98&quot; &lt;tim.nightingale@stfc.ac.uk&gt;<br>
To: Geotiff@lists.maptools.org<br>
Sent: Monday, May 10, 2010 10:28:07 AM GMT -05:00 US/Canada Eastern<br>
Subject: [Geotiff] GeoTIFF geographic grid alignment<br>
<br>
</span></font><font size=2 color=black face=Consolas><span style='font-size:
10.0pt;font-family:Consolas;color:black'>Dear All,<br>
<br>
&nbsp;&nbsp;I&#8217;m looking for some guidance on the correct interpretation
of<br>
GeoTIFF raster spaces, in particular their correct alignments at the<br>
half-pixel level. Judging by the number of mutually contradictory<br>
examples I&#8217;ve found, this is a common source of confusion.<br>
<br>
&nbsp;&nbsp;My interpretation of the rather terse text in the GeoTIFF Format<br>
Specification (Revision 1.0) is that, for the example of a global<br>
map measuring 129,600 longitude pixels by 64,800 latitude pixels,<br>
a &#8220;PixelIsArea&#8221; raster described by:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;ModelTiepointTag = (0.0, 0.0, 0.0, -180.0, 90.0, 0.0)<br>
&nbsp;&nbsp;&nbsp;&nbsp;ModelPixelScaleTag = (0.002777777778, 0.002777777778,
0.0) <br>
&nbsp;&nbsp;&nbsp;&nbsp;GeoKeyDirectoryTag:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GTModelTypeGeoKey
&nbsp;&nbsp;&nbsp;= 2 &nbsp;&nbsp;&nbsp;(ModelTypeGeographic)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GTRasterTypeGeoKey
&nbsp;&nbsp;= 1 &nbsp;&nbsp;&nbsp;(RasterPixelIsArea)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GeographicTypeGeoKey = 4326
(GCS_WGS_84)<br>
<br>
exactly fits into a &#8211;180 -&gt; 180 by &#8211;90 -&gt; 90 degree box that
touches<br>
the edges of the extreme cell boundaries, and that a &#8220;PixelIsPoint&#8221;<br>
raster, whose entries fall exactly in the centre of the
&#8220;PixelIsArea&#8221;<br>
cells in the first example is described by:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;ModelTiepointTag = (-0.5, -0.5, 0.0, -180.0, 90.0, 0.0)<br>
&nbsp;&nbsp;&nbsp;&nbsp;ModelPixelScaleTag = (0.002777777778, 0.002777777778,
0.0) <br>
&nbsp;&nbsp;&nbsp;&nbsp;GeoKeyDirectoryTag:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GTModelTypeGeoKey
&nbsp;&nbsp;&nbsp;= 2 &nbsp;&nbsp;&nbsp;(ModelTypeGeographic)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GTRasterTypeGeoKey
&nbsp;&nbsp;= 2 &nbsp;&nbsp;&nbsp;(RasterPixelIsPoint)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GeographicTypeGeoKey = 4326
(GCS_WGS_84)<br>
<br>
&nbsp;&nbsp;Variants I have seen include both +0.5 and &#8211;0.5 pixel offsets
for<br>
the PixelIsArea case, negative ModelPixelScaleTag values for the<br>
&#8220;J&#8221; direction and 0.0 pixel offsets for the PixelIsPoint case.
QGIS,<br>
for example, appears to assume the last.<br>
<br>
&nbsp;&nbsp;Can anyone help?<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;Many thanks,<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tim.<br>
<br>
------------------------------------------------------------------------<br>
&nbsp;Dr T.J. Nightingale<br>
&nbsp;&nbsp;Space Science and Technology Department<br>
&nbsp;&nbsp;&nbsp;Rutherford Appleton Laboratory<br>
&nbsp;&nbsp;&nbsp;&nbsp;Chilton, Didcot
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Phone:
+44/0 1235 445914<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Oxon OX11 0QX
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fax:
&nbsp;&nbsp;+44/0 1235 445848<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<st1:country-region w:st="on"><st1:place
 w:st="on">United Kingdom</st1:place></st1:country-region>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Email:
<a href="tim.nightingale@stfc.ac.uk" target="_blank">tim.nightingale@stfc.ac.uk</a><br>
------------------------------------------------------------------------ <br>
<br>
<br>
</span></font><font color=black face=Arial><span style='font-family:Arial;
color:black'><o:p></o:p></span></font></p>

<p><font size=3 color=black face=Arial><span style='font-size:12.0pt;
font-family:Arial;color:black'>-- <br>
Scanned by iCritical. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:black'><br>
<br>
_______________________________________________ Geotiff mailing list Geotiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/geotiff<o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>