[gdal-dev] Open Aerial Map Access via C#

Tamas Szekeres szekerest at gmail.com
Mon Jan 26 10:36:05 EST 2009


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.

Best regards,

Tamas


2009/1/26 Marcelo Oliveira <moliveira at geostats.com>

>  Here is what the URL returns:
>
>
>
> <<<<
>
> <LayerSet Name="OAM" ShowAtStartup="true" ShowOnlyOneLayers="false">
>
> -
>
> <ChildLayerSet Name="openaerialmap" ShowAtStartup="false"
> ShowOnlyOneLayer="true">
>
> -
>
> <QuadTileSet ShowAtStartup="true">
>
> <Name>openaerialmap</Name>
>
> <Description>OpenAerialMap data.</Description>
>
> <DistanceAboveSurface>0</DistanceAboveSurface>
>
> -
>
> <BoundingBox>
>
> -
>
> <West>
>
> <Value>-180.0</Value>
>
> </West>
>
> -
>
> <South>
>
> <Value>-90.0</Value>
>
> </South>
>
> -
>
> <East>
>
> <Value>180.0</Value>
>
> </East>
>
> -
>
> <North>
>
> <Value>90.0</Value>
>
> </North>
>
> </BoundingBox>
>
> <TerrainMapped>false</TerrainMapped>
>
> -
>
> <ImageAccessor>
>
> <LevelZeroTileSizeDegrees>180.0</LevelZeroTileSizeDegrees>
>
> <NumberLevels>20</NumberLevels>
>
> <TextureSizePixels>256</TextureSizePixels>
>
> <ImageFileExtension>jpeg</ImageFileExtension>
>
> -
>
> <ImageTileService>
>
> <ServerUrl>http://tile.openaerialmap.org/tiles/</ServerUrl>
>
> <DataSetName>openaerialmap</DataSetName>
>
> </ImageTileService>
>
> </ImageAccessor>
>
> -
>
> <ExtendedInformation>
>
> <Abstract>SRS:EPSG:4326</Abstract>
>
> </ExtendedInformation>
>
> </QuadTileSet>
>
> </ChildLayerSet>
>
> </LayerSet>
>
> >>>>
>
>
>
> --------------
>
> Marcelo Simas Oliveira
>
> GeoStats LP
>
> 530 Means St., Ste. 310
>
> Atlanta, Georgia 30318
>
> (404) 588-1004
>
> www.geostats.com
>
>
>
> *From:* Tamas Szekeres [mailto:szekerest at gmail.com]
> *Sent:* Monday, January 26, 2009 10:24 AM
> *To:* Marcelo Oliveira
> *Cc:* gdal-dev at lists.osgeo.org
> *Subject:* Re: [gdal-dev] Open Aerial Map Access via C#
>
>
>
> Marcelo,
>
> How is your <GDAL_WMS>.. service configuration looking like?
>
> Best regards,
>
> Tamas
>
>
>
>  2009/1/26 Marcelo Oliveira <moliveira at geostats.com>
>
> Hi There,
>
> I am using the GDAL build that comes with FWTools2.2.6 (GDAL 1.6.0dev)
> to try to open OAM ("http://openaerialmap.org/static/ww.xml") using the
> C# bindings for GDAL and it throws the following exception:
>
> <<<<
> GDALWMS: Bad projection specified.
> >>>>
>
> The source code that causes the exception to be thrown is :
>
> <<<<
>        String filename = "http://openaerialmap.org/static/ww.xml";
>        Gdal.AllRegister();
>        Dataset  dataSet = Gdal.OpenShared(fileName, 0); <----
> >>>>>
>
> However,  I can open and extract pieces of this dataset using gdalinfo
> and gdal_translate via the command line.  Is this a know limitation of
> the C# bindings or am I doing something wrong?
>
> Thanks, M
>
> --------------
> Marcelo Simas Oliveira
> GeoStats LP
> 530 Means St., Ste. 310
> Atlanta, Georgia 30318
> (404) 588-1004
> www.geostats.com
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090126/07fe193d/attachment-0001.html


More information about the gdal-dev mailing list