[gdal-dev] GetAreaOfUse() and EPSG:29902

Even Rouault even.rouault at spatialys.com
Tue Jan 3 09:51:18 PST 2023


Simon,

epsg.io is not a reference site. You should rather consult epsg.org

For CRS EPSG:29902, it refers to extent 
https://epsg.org/extent_3767/Ireland-onshore.html which has -5.93° as 
east longitude

https://epsg.org/extent_1305/Europe-Ireland-Republic-and-Ulster-onshore.html 
has -5.34° as east longitude.  So epsg.io is perhaps confused by which 
extent to use, or an update has occured between the last state of the 
database it used and today.

Even

Le 03/01/2023 à 18:33, Simon Wright a écrit :
>
> Dear All
>
> Happy New Year!
>
> I’m trying to use the GetAreaOfUse() method on a 
> osgeo.osr.SpatialReference to check the validity of coordinates.
>
> With the following for the Irish National Grid (EPSG:29902) I get the 
> WGS84 bounds – west, east, south, north - of the spatial reference 
> system to be -10.56, -5.93, 51.39, 55.43:
>
> >>> from osgeo import osr
>
> >>> srs = osr.SpatialReference()
>
> >>> srs.ImportFromEPSG(29902)
>
> 0
>
> >>> aou = srs.GetAreaOfUse()
>
> >>> aou.west_lon_degree, aou.east_lon_degree, aou.south_lat_degree, 
> aou.north_lat_degree
>
> (-10.56, -5.93, 51.39, 55.43)
>
> However, at https://epsg.io/29902 the WGS84 
> <https://epsg.io/29902%20the%20WGS84> bounds are listed as -10.56, 
> -5.34, 51.39, 55.43.
>
> How is the GetAreaOfUse() method implemented? And is there a bug in 
> the values stored for the EPSG:29902 projection?  Or is there another 
> reason why the values differ to those listed at epsg.io.
>
> Many thanks, best wishes, Simon.
>
> **
>
> **
>
> **
>
> **
>
> *Simon Wright*
>
> *JBA Risk Management Limited*
>
> -- 
>
> e: ​ 	*Simon.Wright at jbarisk.com* <mailto:Simon.Wright at jbarisk.com>
> d: 	+44 (0)1756 587258
> t: 	*+44 (0)1756 799919* <tel:+44%20(0)1756%20799919>
>
> 	
>
> *www.jbarisk.com* <http://www.jbarisk.com/>
>
> Facebook <https://www.facebook.com/TheFloodPeople>
>
> 	
> LinkedIn <https://www.linkedin.com/company/jba-risk-management/>
>
> 	
> Twitter <https://twitter.com/JBARisk>
>
> 	
> YouTube <https://www.youtube.com/channel/UC0iatom2jYbW96voW0rlpCw>
>
> 	
>
> All JBA Risk Management's email messages contain confidential 
> information and are intended only for the individual(s) named. If you 
> are not the named addressee you should not disseminate, distribute or 
> copy this e-mail.
> Please notify the sender immediately by email if you have received 
> this email by mistake and delete this email from your system.
> JBA Risk Management Limited is registered in England, company number 
> 07732946, 1 Broughton Park, Old Lane North, Broughton, Skipton, North 
> Yorkshire, BD23 3FD, England.
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230103/5b856e13/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image600659.png
Type: image/png
Size: 9321 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230103/5b856e13/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image372249.png
Type: image/png
Size: 651 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230103/5b856e13/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image259261.png
Type: image/png
Size: 715 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230103/5b856e13/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image886659.png
Type: image/png
Size: 966 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230103/5b856e13/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image857924.png
Type: image/png
Size: 784 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230103/5b856e13/attachment-0009.png>


More information about the gdal-dev mailing list