Skip to content

Commit

Permalink
doc(FeatureCollection): clarify FeatureCollection.extent projection.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed May 21, 2021
1 parent 73198c7 commit f612eb3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Core/Feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,13 @@ export default Feature;
* @property {Feature[]} features - The array of features composing the
* collection.
* @property {Extent?} extent - The 2D extent containing all the features
* composing the collection.
* composing the collection. The extent projection is the same local projection `FeatureCollection`.
* To transform `FeatureCollection.extent` to `FeatureCollection.crs` projection, the transformation matrix must be applied.
*
* **WARNING** if crs is `EPSG:4978` because the 3d geocentric system doesn't work with 2D `Extent`,
* The FeatureCollection.extent projection is the original projection.
* In this case, there isn't need to transform the extent.
*
* @property {string} crs - Geographic or Geocentric coordinates system.
* @property {boolean} isFeatureCollection - Used to check whether this is FeatureCollection.
* @property {number} size - The size structure, it's 3 for 3d and 2 for 2d.
Expand Down

0 comments on commit f612eb3

Please sign in to comment.