I've been using SharpMap for over 10 years to generate images of maps for inclusion in other media, such as PDF documents. In recent versions of .NET, the use of the System.Drawing library is being flagged for portability issues due to underlying use of Windows specific functionality. The recommendation is to move to the Micorosoft.Maui.Graphics library, which is portable across platforms. Some experiments using a generative AI tool to convert some other code I have from System.Drawing to Microsoft.Maui.Graphics indicates that most if not all of the needed functionality is available in the newer library, which wasn't the case when I first tired this a couple of years ago. It may be time to work towards converting SharpMap away from System.Drawing to allow for platform portability.
I've been using SharpMap for over 10 years to generate images of maps for inclusion in other media, such as PDF documents. In recent versions of .NET, the use of the System.Drawing library is being flagged for portability issues due to underlying use of Windows specific functionality. The recommendation is to move to the Micorosoft.Maui.Graphics library, which is portable across platforms. Some experiments using a generative AI tool to convert some other code I have from System.Drawing to Microsoft.Maui.Graphics indicates that most if not all of the needed functionality is available in the newer library, which wasn't the case when I first tired this a couple of years ago. It may be time to work towards converting SharpMap away from System.Drawing to allow for platform portability.