[Qgis-developer] CRS caching and custom CRS update

Leyan ouyang.leyan.ml at hotmail.com
Wed Jun 12 06:13:19 PDT 2013


Hi all,

In 1.8, if I update a custom CRS, I can directly use the new value for 
this CRS, while in master, I have to restart QGIS to be able to use the 
updated parameters. They are displayed when I choose the CRS, but not 
used during the actual transformation, which is a severe regression in 
my opinion as it makes the whole custom CRS management very confusing.

Ihad a look at the code and it is linked to the CRS caching mechanism 
mhugent added 6 months ago 
(https://github.com/qgis/Quantum-GIS/commit/8dc0135b2c30697512a90a575b041562245c9447 
).

How can this be best solved? Simply reverting the patch is a 
possibility, but not the most satisfying. I tried to implement asimple 
"updateCache" function that we could call after modyfing a custom CRS, 
but it seems I missed something as I did not getthe wanted result. Could 
someone more familiar with the code have a look ?

Regards,

Leyan




More information about the Qgis-developer mailing list