Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

面的输出有问题 #3

Open
z954134 opened this issue Jun 14, 2024 · 1 comment
Open

面的输出有问题 #3

z954134 opened this issue Jun 14, 2024 · 1 comment

Comments

@z954134
Copy link

z954134 commented Jun 14, 2024

1.用china.json强制所有面都输出,但实际上很多面都没有出来
2.有孔的面输出的是错误的

@z954134
Copy link
Author

z954134 commented Jun 14, 2024

我找到原因了:MvtBuilder.java中 @NotNull List commands(@NotNull Polygon polygon) {
if (Orientation.isCCW(exteriorRing.getCoordinates())) {
exteriorRing = (LineString) exteriorRing.reverse();
}
内外环判断反了,isCCW是说明是否是逆时针,并不是顺时针

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

No branches or pull requests

1 participant