Skip to content

Commit

Permalink
minor fixes for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterprovoost committed Nov 5, 2023
1 parent 4a7fe20 commit f112722
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wkt.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function fetchProj(inputEpsg) {
function extractAndParseCrs(input) {

// const regexLiteral = new RegExp("<.*>\s*(.*)");
const regexPostgis = new RegExp("SRID=[0-9]+;\s*(.*)");
const regexPostgis = new RegExp("SRID=[0-9]+;\\s*(.*)");

let crsPart, wktPart, parsedEpsg;

Expand Down Expand Up @@ -109,11 +109,11 @@ async function transformInput(input) {

// TODO: move
const uint8 = Geometry.parse(wktPart).toWkb();
const hex = Buffer.from(uint8).toString("hex"). toUpperCase();
const hex = Buffer.from(uint8).toString("hex").toUpperCase();
input.wkb = hex;

const uint8Ewkb = Geometry.parse("SRID=" + input.epsg + ";" + wktPart).toEwkb();
const hexEwkb = Buffer.from(uint8Ewkb).toString("hex"). toUpperCase();
const hexEwkb = Buffer.from(uint8Ewkb).toString("hex").toUpperCase();
input.ewkb = hexEwkb;

} catch (e) {
Expand Down

0 comments on commit f112722

Please sign in to comment.