Skip to content

Commit

Permalink
Merge pull request #433 from openaddresses/try-without-wkb
Browse files Browse the repository at this point in the history
Try skipping the WKB conversion to see if that's causing memory problems
  • Loading branch information
iandees authored Feb 23, 2025
2 parents a2bba6c + 9c0b2aa commit e6ad170
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions task/collect.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,12 @@ async function parquet_datas(tmp, datas, name) {

// GeoParquet expects the geometry as a WKB
let wkbGeometry = null;
if (record.geometry && record.geometry.type) {
wkbGeometry = wkx.Geometry.parseGeoJSON(record.geometry).toWkb();
} else {
console.error(`not ok - ${resolved_data_filename} line ${line_count} has no geometry: ${line}`);
continue;
}
// if (record.geometry && record.geometry.type) {
// wkbGeometry = wkx.Geometry.parseGeoJSON(record.geometry).toWkb();
// } else {
// console.error(`not ok - ${resolved_data_filename} line ${line_count} has no geometry: ${line}`);
// continue;
// }

await writer.appendRow({
source_name: data,
Expand Down

0 comments on commit e6ad170

Please sign in to comment.