Skip to content

Commit

Permalink
Comment debug logging in wasm/js
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarteau committed Oct 8, 2024
1 parent f2a2ee9 commit 2d93715
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions js/proj4.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function defs(name) {

// Transform array or object to Proj point
function toPoint(coords) {
console.debug(coords);
//console.debug(coords);
if (Array.isArray(coords) && coords.length>1) {
return new Proj.Point(coords[0], coords[1], (coords.length > 2 ? coords[2] : 0.0));
} else if (typeof coords === 'object' && coords.x !== undefined && coords.y !== undefined) {
Expand Down Expand Up @@ -180,13 +180,13 @@ function proj4(fromProj, toProj, coords) {
obj = {
forward: function (coords) {
let rv = transformer(fromProj, toProj, coords);
console.debug("forward", rv);
//console.debug("forward", rv);
//return transformer(fromProj, toProj, coords);
return rv;
},
inverse: function (coords) {
let rv = transformer(toProj, fromProj, coords);
console.debug("inverse", rv);
//console.debug("inverse", rv);
//return transformer(toProj, fromProj, coords);
return rv;
}
Expand Down
2 changes: 1 addition & 1 deletion src/wasm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl transform::Transform for Point {

#[wasm_bindgen]
pub fn transform(src: &Projection, dst: &Projection, point: &mut Point) -> Result<(), JsError> {
log::debug!("transform: {}, {}, {}", point.x, point.y, point.z);
// log::debug!("transform: {}, {}, {}", point.x, point.y, point.z);

if point.x.is_nan() || point.y.is_nan() {
return Err(JsError::from(errors::Error::NanCoordinateValue));
Expand Down

0 comments on commit 2d93715

Please sign in to comment.