Skip to content

Commit

Permalink
fix(print): bug in geopdf with projection string (#1160)
Browse files Browse the repository at this point in the history
  • Loading branch information
josee666 authored and cbourget committed Mar 21, 2023
1 parent 0bb6d19 commit b688d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/geo/src/lib/print/shared/geopdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function jsGeoPdfPlugin(jsPDFAPI) {
const proj_obj = this.internal.newAdditionalObject();

proj_obj.content = '<< /EPSG 3857 /Type /PROJCS /WKT (PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere"'+
',+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0]'+
',GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0]'+
',UNIT["Degree",0.017453292519943295]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0]'+
',PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0]'+
',PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]) >>';
Expand All @@ -51,7 +51,7 @@ export default function jsGeoPdfPlugin(jsPDFAPI) {

const title_obj = this.internal.newAdditionalObject();
const date = new Date().toLocaleDateString('en-CA');
title_obj.content = '<< /Name IGO2 /Type OCG /Date '+ date +' >>';
title_obj.content = '<< /Name IGO2 /Type /OCG /Date '+ date +' >>';

return bbox_obj.objId;
};
Expand Down

0 comments on commit b688d9a

Please sign in to comment.