I wonder how this URL is mapped to the WMS driver by default.<br>For a valid WMS connection string please refer to:<br><a href="http://www.gdal.org/frmt_wms.html">http://www.gdal.org/frmt_wms.html</a><br><br>This URL is reported by gdalinfo as:<br>
<br>gdalinfo <a href="http://openaerialmap.org/static/ww.xml">http://openaerialmap.org/static/ww.xml</a><br>ERROR 4: `/vsimem/http/02802DC8.dat' not recognised as a supported file format.<br><br>ERROR 4: `/tmp/02802DC8.dat' not recognised as a supported file format.<br>
<br>gdalinfo failed - unable to open '<a href="http://openaerialmap.org/static/ww.xml">http://openaerialmap.org/static/ww.xml</a>'.<br><br><br><br><br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">
2009/1/26 Marcelo Oliveira <span dir="ltr"><<a href="mailto:moliveira@geostats.com">moliveira@geostats.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Tamas,</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Here is how I specified the source when opening the dataset:</span></p><div class="Ih2E3d">
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><<<< </p>
<p> String filename = "<a href="http://openaerialmap.org/static/ww.xml" target="_blank">http://openaerialmap.org/static/ww.xml</a>";</p>
<p> Gdal.AllRegister();</p>
<p> Dataset dataSet = Gdal.OpenShared(fileName, 0); </p>
<p>>>>>> </p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
</div><p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thanks, M</span></p><div class="Ih2E3d">
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="PT-BR">--------------</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="PT-BR">Marcelo Simas Oliveira</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="PT-BR">GeoStats LP</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="PT-BR">530 Means St., Ste. 310</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Atlanta, Georgia 30318</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">(404) 588-1004</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><a href="http://www.geostats.com" target="_blank">www.geostats.com</a></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
</div><div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Tamas Szekeres
[mailto:<a href="mailto:szekerest@gmail.com" target="_blank">szekerest@gmail.com</a>] <br>
<b>Sent:</b> Monday, January 26, 2009 10:36 AM<div><div></div><div class="Wj3C7c"><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#</div></div></span></p>
</div><div><div></div><div class="Wj3C7c">
<p> </p>
<p style="margin-bottom: 12pt;">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>
</p>
<div>
<p>2009/1/26 Marcelo Oliveira <<a href="mailto:moliveira@geostats.com" target="_blank">moliveira@geostats.com</a>></p>
<div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Here is what the URL returns:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><<<< </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><LayerSet
Name="OAM" ShowAtStartup="true"
ShowOnlyOneLayers="false"></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">−</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><ChildLayerSet
Name="openaerialmap" ShowAtStartup="false" ShowOnlyOneLayer="true"></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">−</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><QuadTileSet
ShowAtStartup="true"></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><Name>openaerialmap</Name></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><Description>OpenAerialMap
data.</Description></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><DistanceAboveSurface>0</DistanceAboveSurface></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">−</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><BoundingBox></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">−</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><West></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><Value>-180.0</Value></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"></West></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">−</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><South></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><Value>-90.0</Value></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"></South></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">−</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><East></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><Value>180.0</Value></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"></East></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">−</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><North></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><Value>90.0</Value></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"></North></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"></BoundingBox></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><TerrainMapped>false</TerrainMapped></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">−</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><ImageAccessor></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><LevelZeroTileSizeDegrees>180.0</LevelZeroTileSizeDegrees></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><NumberLevels>20</NumberLevels></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><TextureSizePixels>256</TextureSizePixels></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><ImageFileExtension>jpeg</ImageFileExtension></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">−</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><ImageTileService></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><ServerUrl><a href="http://tile.openaerialmap.org/tiles/" target="_blank">http://tile.openaerialmap.org/tiles/</a></ServerUrl></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><DataSetName>openaerialmap</DataSetName></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"></ImageTileService></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"></ImageAccessor></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">−</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><ExtendedInformation></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><Abstract>SRS:EPSG:4326</Abstract></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"></ExtendedInformation></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"></QuadTileSet></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"></ChildLayerSet></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"></LayerSet></span></p>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">>>>> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">--------------</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Marcelo Simas Oliveira</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">GeoStats LP</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">530 Means St., Ste. 310</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Atlanta, Georgia 30318</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">(404) 588-1004</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><a href="http://www.geostats.com" target="_blank">www.geostats.com</a></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
</div>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> 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></p>
</div>
<div>
<div>
<p> </p>
<p style="margin-bottom: 12pt;">Marcelo,<br>
<br>
How is your <GDAL_WMS>.. service configuration looking like?<br>
<br>
Best regards,<br>
<br>
Tamas<br>
<br>
<br>
</p>
<div>
<p>2009/1/26 Marcelo Oliveira <<a href="mailto:moliveira@geostats.com" target="_blank">moliveira@geostats.com</a>></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></p>
</div>
<p> </p>
</div>
</div>
</div>
</div>
</div>
<p> </p>
</div></div></div>
</div>
</blockquote></div><br>