[gdal-dev] Re: C#: Retrieve boundary of coordinate system

Tomas R monshi at home.se
Thu Jul 8 02:01:10 EDT 2010


  No one?

Ok, I guess then that there are no common function/method of doing this. 
My approach will the be trial and error. From WGS 84 transform to the 
local coordinate system and back again to WGS84 and check if the result 
seems valid.

Should work or any expert here have another solution?

Yours
Tomas

Tomas R skrev 2010-07-05 09:05:
>  Attacking GDAL via the C# interface and I have a question
>
> Have set up two (Osr) SpatialReferences  and transformations to and 
> form both. One system is WGS84 and the other is unknown.
>
> To get a consistent behaviour I need to retrieve the boundary, in 
> WGS84 coordinates, of the unknown system. If known I can fallback on 
> WGS84 when calls outside the scope of the coordinates system are made.
>  Should be easy to read of some attribute of the SpatialReference or 
> alike. But which/how?
>
> Any suggestions?
>
> Or how should I solve it - in general words:
> My application maps coordinates from and to WGS84 and serves them to 
> another via calls like PixelToGPS and GPSToPixel. The originating 
> coordinate system is always WGS84. Need to handle calls made outside 
> the scope of the coordinate system and my approach, to get a 
> consisting behaviour of the two functions, is to revert to WGS84 which 
> is defined at all possible points.
>
>
> Yours
> Tomas



More information about the gdal-dev mailing list