Skip to content

Move TurfAssertions.getCoord() to TurfMeta.getCoord() to follow Turf.js#818

Merged
osana merged 1 commit into
masterfrom
osana-turf-getCoord
May 22, 2018
Merged

Move TurfAssertions.getCoord() to TurfMeta.getCoord() to follow Turf.js#818
osana merged 1 commit into
masterfrom
osana-turf-getCoord

Conversation

@osana

@osana osana commented May 16, 2018

Copy link
Copy Markdown
Contributor

@osana osana requested a review from cammace May 16, 2018 19:31
@osana osana force-pushed the osana-turf-getCoord branch 3 times, most recently from cc62a39 to a0d02fe Compare May 21, 2018 18:14
@osana osana requested a review from langsmith May 22, 2018 17:46
if (obj.geometry() instanceof Point) {
return (Point) obj.geometry();
}
throw new TurfException("A feature with a Point geometry is required.");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capitalize feature 🙏

@osana osana force-pushed the osana-turf-getCoord branch from a0d02fe to 46416a8 Compare May 22, 2018 18:12
* @see <a href="http://turfjs.org/docs/#getcoord">Turf getCoord documentation</a>
* @since 1.2.0
*/
public static Point getCoord(Feature obj) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a semver change, you need to deprecate and point to using the other method instead of deleting it here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cammace this exactly what I was not sure about.
This issue indeed said: deprecate but then
#738
contained name changes and you reviewed it.
Some of those name changes were for API's since 1.2

Should I deprecate those as well instead of changename

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, those need to be fixed also. Sorry for missing that in #738

@osana osana merged commit b075a78 into master May 22, 2018
@osana osana deleted the osana-turf-getCoord branch May 22, 2018 18:31
@osana osana mentioned this pull request May 31, 2018
13 tasks
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.

Move Turf getCoord to correct class

3 participants