User Tools

Site Tools


doc:appunti:linux:sa:debian_11_12_mapserver_upgrade

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:sa:debian_11_12_mapserver_upgrade [2023/11/23 18:03] – [Name change of CGI parameters] niccolodoc: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:TRANSPARENT not longer valid ===== ===== MAP:TRANSPARENT not longer valid =====
  
-In MapServer 8 mapfiles it is not longer accepted the **TRANSPARENT** identifier inside the MAP object, you have to move it into the **OUTPUTFORMAT** objectsomething like this:+In MapServer 8 mapfiles the **TRANSPARENT** identifier is not longer accepted inside the MAP object, you have to move it into the **OUTPUTFORMAT** objectsomething like this:
  
 <file> <file>
Line 76: Line 76:
     &imgxy=1446+2274     &imgxy=1446+2274
 </code> </code>
 +
 +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.1700759027.txt.gz · Last modified: 2023/11/23 18:03 by niccolo