doc:appunti:linux:sa:debian_11_12_mapserver_upgrade
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:sa:debian_11_12_mapserver_upgrade [2023/11/23 17:55] – niccolo | doc:appunti:linux:sa:debian_11_12_mapserver_upgrade [2023/11/23 18:11] (current) – [MAP:TRANSPARENT not longer valid] niccolo | ||
---|---|---|---|
Line 45: | Line 45: | ||
===== MAP: | ===== MAP: | ||
- | In MapServer 8 mapfiles | + | In MapServer 8 mapfiles the **TRANSPARENT** identifier |
< | < | ||
Line 60: | Line 60: | ||
===== Name change of CGI parameters ===== | ===== Name change of CGI parameters ===== | ||
- | One of the biggest problem is the change of the name of some CGI parameters. | + | One of the biggest problem |
+ | |||
+ | I had web application based on OpenLayers 2.11, which included a MapServer bitmap layer. The JavaScript code automatically generates the request URL, something like this (parameters are split on different lines for readability): | ||
+ | |||
+ | < | ||
+ | / | ||
+ | & | ||
+ | & | ||
+ | & | ||
+ | & | ||
+ | & | ||
+ | & | ||
+ | & | ||
+ | & | ||
+ | & | ||
+ | </ | ||
+ | |||
+ | Unfortunately the **map_size** option is not longer accepted and the resulting PNG image has the default size declared into the MAP:SIZE object of the mapfile, instead of the requested 1446x2274 pixels. This causes a **totally distorted map** image into the web application! | ||
+ | |||
+ | This problem cannot be easily fixed, because the URL options are hard-coded into the OpenLayers code. So I had to replace all the OpenLayers 2.x code with the current **OpenLayers 8.x**, which required a total refactory of the code. | ||
doc/appunti/linux/sa/debian_11_12_mapserver_upgrade.1700758546.txt.gz · Last modified: 2023/11/23 17:55 by niccolo