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

Francis Markham fmarkham at gmail.com
Thu Jul 8 02:14:10 EDT 2010


I think the EPSG dictionary defines areas of validity for the defined
coordinate systems.  That could be a starting point, although there
may be a better solution

-Francis

On 8 July 2010 16:01, Tomas R <monshi at home.se> wrote:
>  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
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>


More information about the gdal-dev mailing list