Skip to content

Commit

Permalink
Définition de l'étendue guyanaise
Browse files Browse the repository at this point in the history
Issue: #236131

Change-Id: I1e695d269b1afa82d2e5907e2076231695aa9d09
  • Loading branch information
Clément GRENOT committed Dec 10, 2024
1 parent cd67e96 commit 25b5cd1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
9 changes: 8 additions & 1 deletion client-ng/src/components/OlMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,14 @@ export default {
})
this.proj = this.map.getView().getProjection()
this.epsg = 'EPSG:' + this.srid
proj4.defs(this.epsg, '+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs')
switch(srid) {
case "2154":
proj4.defs(this.epsg, '+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs')
break;
case "2972":
proj4.defs(this.epsg, '+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs')
break;
}
register(proj4)
this.constructMap()
_.delay(this.map.updateSize.bind(this.map), 10)
Expand Down
9 changes: 8 additions & 1 deletion client-ng/src/components/OlMap/OlMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,14 @@ export default {
this.proj = this.map.getView().getProjection()
this.epsg = 'EPSG:' + this.srid;
proj4.defs(this.epsg, '+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs')
switch(srid) {
case "2154":
proj4.defs(this.epsg, '+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs')
break;
case "2972":
proj4.defs(this.epsg, '+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs')
break;
}
register(proj4);
this.map.getView().fit(this.extent);
this.mapCreated = true;
Expand Down
1 change: 1 addition & 0 deletions remocra/src/main/webapp/js/app/remocra/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//Ext.Loader.setConfig({ enabled : false });

Proj4js.defs["EPSG:2154"] = "+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs";
Proj4js.defs["EPSG:2972"] = "+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs";
Proj4js.defs["EPSG:3857"] = "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs";

Ext.require('Sdis.Remocra.bugfixes.Bugfixes');
Expand Down

0 comments on commit 25b5cd1

Please sign in to comment.