Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Allow altitude to be encoded

Đang mở
#76 8 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu bằng việc xem xét đặc tả vector tile hiện tại và cuộc thảo luận được liên kết về các khối 3D. Giải quyết ngữ nghĩa của các lệnh, các giới hạn độ cao và sự tương tác với độ phân giải tile và layer extent; công việc được xem là hoàn tất khi đặc tả có một thiết kế 2.5D đã được thống nhất và không mơ hồ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Ultimately including 3D solids is what I would like however that is a complex issue that may confuse the specification or probably should be its own specification. See issues here: https://3d.bk.tudelft.nl/hledoux/blog/your-solids-the-same/

An intermediate step to provide 2.5D could be to allow 2 more commands and an altitude parameter

Command Id Parameters Parameter Count
MoveTo 1 dX, dY 2
LineTo 2 dX, dY 2
MoveTo3 5 dX, dY, dAltitude 3
LineTo3 6 dX, dY, dAltitude 3
ClosePath 7 No parameters 0
Example Command Integers
Command ID Count CommandInteger Binary Representation [Count][Id]
MoveTo 1 1 9 [00000000 00000000 0000000 00001][001]
MoveTo 1 120 961 [00000000 00000000 0000011 11000][001]
LineTo 2 1 10 [00000000 00000000 0000000 00001][010]
LineTo 2 3 26 [00000000 00000000 0000000 00011][010]
MoveTo3 5 1 13 [00000000 00000000 0000000 00001][101]
MoveTo3 5 120 965 [00000000 00000000 0000011 11000][101]
LineTo3 6 1 14 [00000000 00000000 0000000 00001][110]
LineTo3 6 3 30 [00000000 00000000 0000000 00011][110]
ClosePath 7 1 15 [00000000 00000000 0000000 00001][111]

Calling it altitude hopefully conveys the intent to provide 2.5D for simplicity. The MoveTo3 and LineTo3 work the same as the corresponding MoveTo and LineTo.

This also maps to the TopoJson and GeoJson allowing an altitude to be defined in their coordinates specification.

The remaining problem is around specifying the bounds for the altitude and the extent. As the tiles won't stack. One option is to interpret the value using the tile resolution and the existing layer extent field. Values will be positive and negative.

Hopefully this will trigger some discussion :)

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
1k
Fork
213
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mapbox/vector-tile-spec

Tất cả issue của mapbox/vector-tile-spec

Issue tương tự

Thêm issue về Documentation

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.