1

Closed

Just in time Known Coordinate System Category creation

description

Propose we implement JIT known coordinate system category initialization to reduce load time and memory consumption of the DotSpatial.Projections.dll. Currently, every known coordinate system is created when the DLL loads. See discussion http://dotspatial.codeplex.com/discussions/352844 .
Closed May 4, 2012 at 7:34 PM by mudnug
I'm assigning this to the DotSpatial 1.2 release where it will appear in a week or two. Vatavian: Feel free to re-open or create a new issue if you want to do something more here.

comments

vatavian wrote May 3, 2012 at 2:48 PM

First draft of VB.Net refactoring code that can perform this task is available at: http://hspf.com/pub/D4EM/Refactor.zip
Sample output of this refactoring is available at:
http://hspf.com/pub/D4EM/Africa.cs

kellison wrote May 3, 2012 at 3:38 PM

Might want to change to have the leading character of the private field be lower case. For example, change

_AfricaAlbersEqualAreaConic;
to
_africaAlbersEqualAreaConic;

kellison wrote May 4, 2012 at 6:08 PM

Technically this is fixed now (JIT creation of Categories). We can still take it a step further and implement at individual coordinate system level as vatavian has proposed with refactoring code. But, I am changing this Issue to Fixed.