Comments (4)
It's measuring the surface area on a unit sphere covered by the cell. 6 times a level 0's average area is 4 * pi. (6 sides on a cube, not 4)
from s2-geometry-library-java.
To add context here (because I got here and scratched my head for a bit):
- S2 assumes the earth is a perfect sphere
- The surface area of a sphere is given by
4*pi*radius
. - If we assume radius is 1 ("a unit") then the surface area of a sphere is simply
4*pi
, or12.5664...
- Note that
12.5664 / 6 (the six sides of the cube!) = 2.0944...
which is the number you have - As we've not got a unit for our radius of one, our number also has no unit so in answer to your explicit question: There isn't one!
Now, your implicit question of how we obtain something that we can interpret more easily:
- I know that the total area of one cube face given by S2's authors is
85,011,012.19 km^2
- If
2.0944... = 85,011,012.19
then1 = 40,589,768.4219...
km - Therefore, to convert to km^2 I multiply an S2 area by
40,589,768.4219...
- I have not validated the accuracy of this compared to a projection of a polygon but it's in the ballpark based on me drawing squares over the middle east. It'll never be perfect as the Earth is pretty far from a perfect sphere!
Please correct me if I'm wrong, this makes sense in my head. Oh, and I've been liberal on the rounding here! Your mileage will vary but I'd advise working the above out to a precision that fits your use case!
from s2-geometry-library-java.
The unit of measure, when the sphere is radius 1, is called a "steradian", basically the spherical equivalent of the 2D radian. It has the nice property that a number 10% the size of the whole 4*pi value is in fact 10% of the land area, so it's linear with the size of the surface being covered.
from s2-geometry-library-java.
I'm closing this but feel free to reopen if there are any other questions about this.
from s2-geometry-library-java.
Related Issues (20)
- S2polygon.getCentroid seems wrong in some case? HOT 4
- S2CellCreation HOT 3
- Retrieve cell based on shortest distance
- Create cell by mentioning level HOT 1
- Support adding an offset to an S2LatLng, compute the heading/angle, etc.
- [BUG] OOM happened when S2RegionCoverer try to getCovering !!!
- [BUG] OOM happened when S2RegionCoverer try to getCovering !!! HOT 6
- bug in initToUnion HOT 3
- Query on polylines HOT 1
- CellID lost when S2RegionCoverer.getCovering() HOT 6
- S2RegionCoverer.getCoveringInternal Tries to cover whole globe! HOT 1
- Adding additional attribute to S2Polygon class for custom feature? HOT 4
- does S2 support maven version in repository? HOT 2
- Information: Library S2 Geometry in Kotlin exists
- Java port for S2RegionTermIndexer (c++) HOT 3
- S1Angle.fromEarthDistance HOT 1
- [FR] Are there J2CL annotations for this library? HOT 4
- Latest version in maven repo? HOT 9
- S2ContainsPointQuery - Different Result between Java and CPP HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s2-geometry-library-java.