Kiểm tệp toạ độ vườn trước khi nộp EUDRCheck plot coordinate files before filing under the EUDR
Kiểm tệp toạ độ lô (GeoJSON, KML hoặc CSV lưu từ Excel) theo quy cách tệp GeoJSON của hệ thống EU, giải thích từng lỗi bằng lời dễ hiểu và xuất tệp GeoJSON sạch. Miễn phí. Tệp được xử lý ngay trên máy bạn, không gửi lên máy chủ nào.Checks plot coordinate files (GeoJSON, KML or CSV saved from Excel) against the EU Information System's GeoJSON file rules, explains each problem in plain words and exports a clean GeoJSON file. Free. The file is processed on your own computer and is never uploaded.
hoặc kéo thả tệp vào đây · .geojson .json .kml .csvor drop a file here · .geojson .json .kml .csv
Công cụ kiểm những gìWhat it checks
- Toạ độ là độ thập phân WGS84 (không phải mét VN-2000/UTM), trong khoảng hợp lệ; tự sửa kinh/vĩ độ bị đảo (lô ở Việt Nam) và toạ độ độ-phút-giây.
- Ít nhất 6 chữ số thập phân (Quy định EU 2023/1115): toạ độ chỉ có 3 chữ số trở xuống bị báo lỗi, 4 chữ số được cảnh báo (5 chữ số không cảnh báo vì Excel hay bỏ số 0 ở cuối); tệp sạch làm tròn đúng 6 chữ số.
- Đa giác: khép kín (tự khép), ít nhất 3 điểm, không tự cắt, không đi qua cùng một điểm hai lần, không có lỗ, không trùng điểm liên tiếp (tự bỏ).
- Lô dạng điểm: có diện tích; lô trên 4 ha phải là đa giác (Quy định EU 2023/1115, Điều 2(28)).
- Diện tích khai so với diện tích đa giác đo được (lệch trên 20% thì cảnh báo).
- Kiểm thêm của công cụ: chồng lấn giữa các lô, điểm trùng nhau, điểm nằm trong lô khác (chỉ cảnh báo, lô vẫn ở trong tệp sạch); hai lô trùng hệt ranh thì lô sau bị báo lỗi.
- Thuộc tính EU:
ProducerName,ProducerCountry(mã 2 chữ, vd VN),ProductionPlace,Area(ha); tệp sạch giữ thêm cộtplot_idđể đối chiếu (hệ thống EU bỏ qua thuộc tính khác), chỉ ghiAreacho lô dạng điểm; tối đa 25 MB.
- Coordinates are WGS84 decimal degrees (not VN-2000/UTM metres) within range; swapped longitude/latitude (plots in Viet Nam) and degrees-minutes-seconds are fixed.
- At least six decimal places (Regulation (EU) 2023/1115): coordinates with 3 or fewer are an error, 4 a warning (5 pass because Excel drops trailing zeros); the clean file is rounded to exactly 6.
- Polygons: closed (closed automatically), at least 3 points, no self-intersection, no point visited twice, no holes, no repeated consecutive points (removed).
- Point plots: an area is given; plots over 4 ha must be polygons (Regulation (EU) 2023/1115, Art. 2(28)).
- Declared area against the measured polygon area (warning above 20% difference).
- Extra checks by this tool: overlaps between plots, identical points, points inside another plot (warnings only; plots stay in the clean file); of two plots with the same boundary, the second is an error.
- EU properties:
ProducerName,ProducerCountry(2-letter code, e.g. VN),ProductionPlace,Area(ha); the clean file also keepsplot_idfor matching (the EU system ignores other properties) and writesAreafor point plots only; at most 25 MB.
Tệp CSV / ExcelCSV / Excel files
Lưu bảng Excel thành CSV. Cần cột vi_do và kinh_do (hoặc lat, lon). Nên có ma_lo, ten_nong_ho, quoc_gia, dia_chi, dien_tich (ha). Mỗi lô 1 dòng = lô dạng điểm; nhiều dòng cùng ma_lo (và cùng chủ hộ) = các đỉnh của đa giác theo thứ tự đi quanh ranh lô; nên có cột thu_tu_diem (1, 2, 3…); ô mã lô gộp/trống chỉ được lấy theo dòng trên khi có cột này, nếu không công cụ báo lỗi để bạn điền lại. Diện tích tính bằng sào/công không tự đổi (khác nhau theo vùng). Không có cột mã lô thì mỗi dòng là một lô dạng điểm. Công cụ báo lỗi, không tự đoán, khi: các dòng cùng mã lô cách nhau quá 3 km, ghi diện tích khác nhau, ghi tên chủ hộ khác nhau, hoặc đa giác dựng ra lệch quá 2 lần diện tích khai. Không có cột mã nước mà lô nằm ở Việt Nam thì tự ghi VN. Toạ độ cũng có thể nằm chung một cột toa_do dạng “12.681234, 108.051234” (như chép từ Google Maps). Dấu phẩy thập phân (12,681234) và dấu chấm phẩy đều được. Diện tích tính bằng ha; nếu tên cột có “m2” thì tự đổi từ m². Nên lưu bằng “CSV UTF-8” để giữ dấu tiếng Việt. Một lô dạng điểm nằm sát (dưới 30 m) ranh một đa giác cùng chủ hộ bị báo lỗi vì có thể là đỉnh gõ sai mã lô. Đọc được cả tệp xuất từ KoboToolbox/ODK (cột geoshape, gps). Có cột thứ tự điểm thì mỗi lần đánh số lại từ 1 là một lô mới; thứ tự mỗi lô phải bắt đầu từ 1 (hoặc đánh số nối tiếp cả tệp) và liền nhau, ô thứ tự để trống cho lô điểm được; đỉnh cuối lặp lại đỉnh 1 được coi là điểm đóng; cột STT chỉ được dùng làm thứ tự điểm khi nó đánh lại từ 1 cho mỗi lô (STT theo thôn hay theo hộ thì bỏ qua); dòng tiêu đề nhóm như “Thôn 1” được bỏ qua; có cả mã hộ và số lô (Lô 1, Lô 2 ở mỗi hộ) thì mã lô là “mã hộ · số lô” (không có mã hộ thì “tên · số lô”; có cột tờ bản đồ thì thêm số tờ); nhiều dòng liền nhau cùng tên, sát nhau, không có mã lô hay thứ tự điểm bị báo lỗi vì không rõ là đỉnh hay lô riêng — bảng đỉnh đa giác nên luôn có cột thu_tu_diem (Điểm 1, 2, 3…) để tránh lỗi này; lô không bắt đầu từ 1, bị hở (1, 2, 4) hoặc lẻ 1 dòng giữa chừng bị báo lỗi, kèm lô liền trên (đỉnh gõ sai mã thường thuộc lô đó). Dòng có mã lô/tên mà thiếu toạ độ, các dòng cùng mã lô bị xen dòng lô khác, và lô nằm ngoài Việt Nam khi cả tệp ở Việt Nam cũng bị báo lỗi. Tệp .xlsx/.kmz cần lưu lại thành CSV/KML.
Save the Excel sheet as CSV. Required columns: lat and lon (or vi_do, kinh_do). Recommended: plot_id, ProducerName, ProducerCountry, ProductionPlace, Area (ha). One row per plot = point plot; several rows with the same plot_id (and producer) = polygon vertices in order around the boundary; add a point-order column (1, 2, 3…); blank or merged id cells take the row above only when that column exists, otherwise the tool reports an error. Areas in sào/công are not converted (they differ by region). Without a plot-id column every row is a point plot. The tool reports an error instead of guessing when rows of one id are more than 3 km apart, give different areas or different producer names, or build a polygon more than twice or less than half the declared area. Without a country column, plots in Viet Nam get VN. Coordinates may also be in one coordinates column like “12.681234, 108.051234” (as copied from Google Maps). Decimal commas and semicolon separators work. Area is in hectares; if the column name contains “m2” it is converted from m². Save as “CSV UTF-8” to keep accented characters. A point plot within 30 m of a polygon of the same producer is an error, as it may be a corner with a mistyped id. KoboToolbox/ODK exports (geoshape and gps columns) are read too. With a point-order column, each restart at 1 starts a new plot; each plot's order must start at 1 (or continue a running number through the file) with no gaps; a blank order cell is fine for a point plot, and a last corner repeating corner 1 closes the ring; an STT column is used as point order only when it restarts at 1 for each plot (STT per village or per household is ignored); section rows such as “Thôn 1” are skipped; with both a household code and a plot number (Lô 1, Lô 2 per household) the plot id is “household · plot” (without a household code, “name · plot”; with a map-sheet column, the sheet is added); several consecutive close rows of one name with no plot id or point order are an error (corners or separate plots?) — polygon corner sheets should always have a point_order column to avoid this; a plot that does not start at 1, has a gap (1, 2, 4) or a lone row mid-sequence is an error, as is the plot just above it (a mistyped corner usually belongs there). Rows with an id or name but no coordinates, rows of one id interleaved with another plot, and plots outside Viet Nam in an otherwise Vietnamese file are errors too. Save .xlsx/.kmz files as CSV/KML first.
Bước tiếp theo: kiểm rừng 2020Next step: the 2020 forest check
Tải tệp sạch lên Whisp (FAO, miễn phí) để xem lô nào cần xem lại so với bản đồ rừng năm 2020.
Upload the clean file to Whisp (FAO, free) to see which plots need review against 2020 forest maps.