<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@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","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
p
        {mso-style-priority:99;
        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","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Tamas,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Here is how I specified the source when opening the dataset:<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoPlainText><<<<<o:p> </o:p></p>
<p class=MsoPlainText> String filename = "<a
href="http://openaerialmap.org/static/ww.xml">http://openaerialmap.org/static/ww.xml</a>";<o:p></o:p></p>
<p class=MsoPlainText> Gdal.AllRegister();<o:p></o:p></p>
<p class=MsoPlainText> Dataset dataSet = Gdal.OpenShared(fileName, 0); <o:p></o:p></p>
<p class=MsoPlainText>>>>>><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks, M<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>--------------<o:p></o:p></span></p>
<p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Marcelo Simas Oliveira<o:p></o:p></span></p>
<p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>GeoStats LP<o:p></o:p></span></p>
<p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>530 Means St., Ste. 310<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Atlanta, Georgia 30318<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>(404) 588-1004<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>www.geostats.com<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Tamas Szekeres
[mailto:szekerest@gmail.com] <br>
<b>Sent:</b> Monday, January 26, 2009 10:36 AM<br>
<b>To:</b> Marcelo Oliveira<br>
<b>Cc:</b> gdal-dev@lists.osgeo.org<br>
<b>Subject:</b> Re: [gdal-dev] Open Aerial Map Access via C#<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>I just wanted to know how did
you specify the <GDAL_WMS> service description XML when opening the
dataset. Because the error you mentioned sounds like you have an invalid
Projection tag in this file.<br>
<br>
Best regards,<br>
<br>
Tamas<br>
<br>
<o:p></o:p></p>
<div>
<p class=MsoNormal>2009/1/26 Marcelo Oliveira <<a
href="mailto:moliveira@geostats.com">moliveira@geostats.com</a>><o:p></o:p></p>
<div>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'>Here is what the URL returns:</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><<<< </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><LayerSet
Name="OAM" ShowAtStartup="true"
ShowOnlyOneLayers="false"></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>−</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><ChildLayerSet
Name="openaerialmap" ShowAtStartup="false" ShowOnlyOneLayer="true"></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>−</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><QuadTileSet
ShowAtStartup="true"></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><Name>openaerialmap</Name></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><Description>OpenAerialMap
data.</Description></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><DistanceAboveSurface>0</DistanceAboveSurface></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>−</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><BoundingBox></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>−</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><West></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><Value>-180.0</Value></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'></West></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>−</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><South></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><Value>-90.0</Value></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'></South></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>−</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><East></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><Value>180.0</Value></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'></East></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>−</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><North></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><Value>90.0</Value></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'></North></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'></BoundingBox></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><TerrainMapped>false</TerrainMapped></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>−</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><ImageAccessor></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><LevelZeroTileSizeDegrees>180.0</LevelZeroTileSizeDegrees></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><NumberLevels>20</NumberLevels></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><TextureSizePixels>256</TextureSizePixels></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><ImageFileExtension>jpeg</ImageFileExtension></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>−</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><ImageTileService></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><ServerUrl><a
href="http://tile.openaerialmap.org/tiles/" target="_blank">http://tile.openaerialmap.org/tiles/</a></ServerUrl></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><DataSetName>openaerialmap</DataSetName></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'></ImageTileService></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'></ImageAccessor></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>−</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><ExtendedInformation></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><Abstract>SRS:EPSG:4326</Abstract></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'></ExtendedInformation></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'></QuadTileSet></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'></ChildLayerSet></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'></LayerSet></span><o:p></o:p></p>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'>>>>> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>--------------</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>Marcelo Simas Oliveira</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>GeoStats LP</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>530 Means St., Ste. 310</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>Atlanta, Georgia 30318</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>(404) 588-1004</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'><a
href="http://www.geostats.com" target="_blank">www.geostats.com</a></span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
</div>
<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>
<p><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:
10.0pt'> Tamas Szekeres [mailto:<a href="mailto:szekerest@gmail.com"
target="_blank">szekerest@gmail.com</a>] <br>
<b>Sent:</b> Monday, January 26, 2009 10:24 AM<br>
<b>To:</b> Marcelo Oliveira<br>
<b>Cc:</b> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [gdal-dev] Open Aerial Map Access via C#</span><o:p></o:p></p>
</div>
<div>
<div>
<p> <o:p></o:p></p>
<p style='margin-bottom:12.0pt'>Marcelo,<br>
<br>
How is your <GDAL_WMS>.. service configuration looking like?<br>
<br>
Best regards,<br>
<br>
Tamas<br>
<br>
<br>
<o:p></o:p></p>
<div>
<p>2009/1/26 Marcelo Oliveira <<a href="mailto:moliveira@geostats.com"
target="_blank">moliveira@geostats.com</a>><o:p></o:p></p>
<p>Hi There,<br>
<br>
I am using the GDAL build that comes with FWTools2.2.6 (GDAL 1.6.0dev)<br>
to try to open OAM ("<a href="http://openaerialmap.org/static/ww.xml"
target="_blank">http://openaerialmap.org/static/ww.xml</a>") using the<br>
C# bindings for GDAL and it throws the following exception:<br>
<br>
<<<<<br>
GDALWMS: Bad projection specified.<br>
>>>><br>
<br>
The source code that causes the exception to be thrown is :<br>
<br>
<<<<<br>
String filename = "<a
href="http://openaerialmap.org/static/ww.xml" target="_blank">http://openaerialmap.org/static/ww.xml</a>";<br>
Gdal.AllRegister();<br>
Dataset dataSet = Gdal.OpenShared(fileName,
0); <----<br>
>>>>><br>
<br>
However, I can open and extract pieces of this dataset using gdalinfo<br>
and gdal_translate via the command line. Is this a know limitation of<br>
the C# bindings or am I doing something wrong?<br>
<br>
Thanks, M<br>
<br>
--------------<br>
Marcelo Simas Oliveira<br>
GeoStats LP<br>
530 Means St., Ste. 310<br>
Atlanta, Georgia 30318<br>
(404) 588-1004<br>
<a href="http://www.geostats.com" target="_blank">www.geostats.com</a><br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></p>
</div>
<p> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>