Here is something that just entered into my stream of consciousness.
Is it worth building a pure .net MapGuide API? Note that my question is not “can we?” but rather “should we?”
Because what is the MapGuide API technically speaking? It is nothing more than a C++ object-oriented abstraction of a TCP/IP connection to a MapGuide Server process. We can easily build the same abstractions in .net (using TcpClient). The real “effort” is figuring out the wire formats and protocols for how data is to be sent and received via TCP/IP to the MapGuide Server process, and you know what? Maestro has already figured out some of that, and for the rest we can always refer to the MapGuide source code and see how they do it.
This pure .net approach would give us an API surface area similar to what is currently offered by the official MapGuide API, except for:
Coordinate System APIs (we can’t exactly port that over to .net)
Geometry APIs (likewise)
Which isn’t exactly bad news as these parts are replaceable/interchangeable. That’s what we already do in the Maestro API, we let NetTopologySuite handle geometry duties and farm coordinate system functionality off to Proj.Net
If P/Invoke (the mechanism by which the SWIG-generated libraries work in .net) proves to be too much of a pain to deal with for ASP.net vNext, this pure .net approach could be a feasible alternative provided you are willing to give up the use of MgCoordinateSystem, MgGeometry and friends. In return, you would have a single, 100% managed, NuGet-able library that has none of the bitness, dll and deployment problems that is symptomatic of the current .net MapGuide API, but with 80% of the functionality.
So what do you think? Would this be something you would use for building your own MapGuide applications in .net? If you already use the Maestro API for building your applications, I guess that answer would be yes.
These thoughts are brought to you by Microsoft’s announcement of open sourcing .net and their next version of ASP.net, and my firing synapses thinking about how .net MapGuide applications can be a first-class citizen in both Windows and Linux in this new exciting .net world.
from Planet GS via John Jason Fallows in Inoreader http://ift.tt/1xp6xWL
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
More Stories
‘My 401k Misses You’: Black Woman Pumped To Meet Donald Trump In Philadelphia – July 18, 2023 at 04:56PM
Energy Provider Warns of Impending ‘Crisis,’ ‘Blackout Conditions’ Driven By Biden Plans – July 18, 2023 at 04:20PM
Dog starts barking at cows crossing a bridge, so the cows stop to have a look. – July 17, 2023 at 02:27PM