Skip to content

Commit

Permalink
Skip records with invalid lat/lng values
Browse files Browse the repository at this point in the history
  • Loading branch information
keichan34 committed Mar 13, 2024
1 parent 2847a78 commit 9e23b81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/csv-to-geojson.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const csvToGeoJSON = (csvString) => {
const lonValue = parseFloat(record[lonField]);

if (isNaN(latValue) || isNaN(lonValue)) {
return null;
// 緯度・経度の値が数値でない場合はスキップ
continue;
}

// recordから緯度・経度のフィールドを削除
Expand Down

0 comments on commit 9e23b81

Please sign in to comment.