Skip to content

Conversation

@rouault
Copy link
Member

@rouault rouault commented Jun 16, 2025

Fixes #4522

  • Spherical case:
    Before:
$ bin/bench_proj_trans --pipeline "+proj=pipeline +inv +step +proj=geos +h=35785831.0 +lon_0=0 +ellps=sphere" 137881.85 4490747.09
137881.85 4490747.09 -> 0.034807228056148 0.850471730911161
Duration: 677 ms
Throughput: 7.39 million coordinates/s

After:

$ bin/bench_proj_trans --pipeline "+proj=pipeline +inv +step +proj=geos +h=35785831.0 +lon_0=0 +ellps=sphere" 137881.85 4490747.09
137881.85 4490747.09 -> 0.034807228056148 0.850471730911161
Duration: 602 ms
Throughput: 8.31 million coordinates/s
  • Ellipsoidal case:

Before:

$ bin/bench_proj_trans --pipeline "+proj=pipeline +inv +step +proj=geos +h=35785831.0 +lon_0=0 +ellps=WGS84" 137881.85 4490747.09
137881.85 4490747.09 -> 0.0349065842446029 0.855211334383648
Duration: 978 ms
Throughput: 5.11 million coordinates/s

After:

$ bin/bench_proj_trans --pipeline "+proj=pipeline +inv +step +proj=geos +h=35785831.0 +lon_0=0 +ellps=WGS84" 137881.85 4490747.09
137881.85 4490747.09 -> 0.0349065842446029 0.855211334383648
Duration: 668 ms
Throughput: 7.49 million coordinates/s

Fixes OSGeo#4522

Before:
```
$ bin/bench_proj_trans --pipeline "+proj=pipeline +inv +step +proj=geos +h=35785831.0 +lon_0=0 +ellps=WGS84" 137881.85 4490747.09
137881.85 4490747.09 -> 0.0349065842446029 0.855211334383648
Duration: 978 ms
Throughput: 5.11 million coordinates/s
```

After:
```
$ bin/bench_proj_trans --pipeline "+proj=pipeline +inv +step +proj=geos +h=35785831.0 +lon_0=0 +ellps=WGS84" 137881.85 4490747.09
137881.85 4490747.09 -> 0.0349065842446029 0.855211334383648
Duration: 668 ms
Throughput: 7.49 million coordinates/s
```
Before:
```
$ bin/bench_proj_trans --pipeline "+proj=pipeline +inv +step +proj=geos +h=35785831.0 +lon_0=0 +ellps=sphere" 137881.85 4490747.09
137881.85 4490747.09 -> 0.034807228056148 0.850471730911161
Duration: 677 ms
Throughput: 7.39 million coordinates/s
```

After:
```
$ bin/bench_proj_trans --pipeline "+proj=pipeline +inv +step +proj=geos +h=35785831.0 +lon_0=0 +ellps=sphere" 137881.85 4490747.09
137881.85 4490747.09 -> 0.034807228056148 0.850471730911161
Duration: 602 ms
Throughput: 8.31 million coordinates/s
```
@rouault rouault changed the title Geostationary projection: speed up inverse ellipsoidal computation Geostationary projection: speed up inverse spherical and ellipsoidal computation Jun 16, 2025
@rouault rouault merged commit 6456f9e into OSGeo:master Jun 18, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unecessary calculation in ellipsoidal inverse geos transform

1 participant