Tuesday, 24 November 2026

This is amazing!

I have some ideas for a future project once MapGuide Open Source 4.0.1 final is out the door. I'm committed to the AI coding assistance train so this is something I will be definitely vibe coding into existence. Again, being an actual software developer, I will know if the AI will be generating useful code or garbage and can steer these agents as necessary if they start to go off the rails.

The problem however is that I have zero context around how one vibe codes from scratch. All my applications of "vibe coding" have been from a maintenance context against an already established code base, so it was more like "vibe maintenance".

This future project will be a desktop GUI app, so the main unknown is how can we vibe code a UI with particular design into existence? Surely such an agent will need mockups and screenshots as reference material. I could screenshot some pre-existing apps as a point of reference but I worry the agent will just try to re-create it 1:1 which is not what I'm after.

So that leaves us with mockups so I did some research into tools for generating mockups that can feed/export their designs into something that AI coding agents can consume. This was where I ran into Google Stitch.

The UI looked very approachable, one giant text box stating what do you want to design. So like Aladdin making his first wish to the genie, I wrote my prompt:
A desktop app shell similar to VSCode
Stitch then asked me several follow up questions to get a feel for what kind of desktop app I'm trying to build. I said a desktop GIS application, and then a few moments later, it cooked up a mockup that is 80% of what I had already envisioned!



I am not a UX designer so my mind is absolutely blown away at what Stitch just produced for me! I was then able to further rapidly iterate on this design with additional plain english instructions and was massively impressed at how fast the design converged towards my desired vision!

The final bow that will tie everything together and I haven't fully found out yet is finding out if Google Stitch will export this mockup to a format that is digestible for AI coding agents so that I can just say "implement the UI per this design" and point it towards this exported mockup.

If the UI looks familiar, that's because it is! I will just leave it at that for now.

Monday, 16 November 2026

Announcing: MapGuide Open Source 4.0.1-Test

I am pleased to announce the release of MapGuide Open Source 4.0.1-Test

The reason this is a 4.0.1-Test instead of just 4.0.1 is because the volume of changes since 4.0 is such that I wasn't comfortable with going straight to a 4.0.1 release. I needed a -Test release and several weeks of breathing space to collect any issue reports and be able to act on them to make sure we didn't miss anything important.

Before we continue, I want to make this declarative statement crystal clear in no uncertain terms:

This release was (un-repentantly and un-apologetically) made with AI assistance from DeepSeek. I have made no secrets about my AI usage in the lead-up to this release. If the fact that my usage of AI offends your sensibilities and makes MapGuide "AI slop" in your eyes, then I wish you all the best in looking for an alternative GIS web mapping server. I'm not going to expend any efforts to convince you to stay. It is because of AI assistance that I am able to make this release *now* instead of probably ... a year from now if I were to apply regular human effort to implement the volume of changes in this release.

With that statement out of the way, here's what's new in this release. It's a big list, so strap in!

MapGuide changes

  • Updated bundled Apache, Tomcat and PHP (mitigated against php2shell)
    • Apache httpd 2.4.71
    • Tomcat 9.0.123
    • PHP 8.3.36
  • Windows installer migrated to Wix 6.x. If you encounter installer issues, let us know on the mapguide-users mailing list ASAP.
  • New experimental OpenAPI spec + swagger UI for the mapagent. The mapagent is not a RESTful interface, which presented some interesting challenges describing the API surface with OpenAPI, but we've made it work for the most part!
  • New experimental Linux support for MapGuide Portable
    • The OSGeo.MapGuide.Portable nuget package can now be used to build apps for both Windows and Linux. The viewer nuget packages built on top of this are still Windows-only.
  • Ubuntu installer script now optionally lets you install msttcorefonts
  • Linux installer scripts now auto-probe and auto-configure known font directories in serverconfig.ini
  • MultiGeometry/GeometryCollection instances now render and select properly
  • Massive memory leak sweep from ASAN-instrumented test runs
  • Massive hardening sweep to address potential buffer overflows and input validation gaps
  • Fix MgNullPropertyValueException when selecting features and attribute data contains NULL values
  • Fix web tier init failures leaving the process permanently broken and improper web tier teardown
    • Should improve stability if using IIS and reduce the need to force app pool recycling
  • Fix MgDrawingService.EnumerateLayers() API not working on Linux
  • Fix leaking byte arrays when passed to MgByteReader.Read() for Java and PHP
  • Fix incorrect distance measurement on coordinate systems like Web Mercator
  • Fix MgNamedCollection potentially holding stale refs
  • Fix incorrect arc calculations
  • Fix name element duplication for KML elements
  • Fix excess KML placemark elements when Advanced Stylization is enabled
  • Fix correctness of "batch sorted block" feature join algorithm
  • Fix Advanced Stylization area symbolization clipping not applying
  • Fix cases where negative render times could be reported by performance report
  • Fix assorted incorrect mapagent behavior
  • Fix striped raster rendering in some cases
  • Improve error message quality when its localized form cannot be retrieved
  • Improve robust CPU perf counter reading on Linux
  • Document log properties in serverconfig.ini
  • Improved BerkeleyDB error message quality (some were previously masked as "bad memory allocation")
  • Improve handling of bigger selections and properly escape id values with single-quotes

FDO changes

Core/General
  • Massive memory leak sweep across core and various providers. Debug runs of FDO core + provider test suites now produce 0 leaks on both Linux and Windows.
  • Massive hardening sweep to address potential buffer overflows and input validation gaps
  • GenericRdbms: The FDO_TRACE_FILE facility is now available for Linux
  • GenericRdbms: Fix various reported capabilities vs reality mismatches
  • GenericRdbms: Harden against queries referencing non-existent classes and properties
  • Use the safer mkstemp API for temp file name generation
  • Honor indentation settings when writing feature schemas to XML
  • Fix XmlFeatureSerializer not honoring XML flags
  • Fix properties with NULL values not included in XML output
  • Improve handling of large chains of OR conditions
  • GenericRdbms: Each FDO provider is now is own deb package on Ubuntu instead of all being bundled under a monolithic fdo-rdbms package.
SDF
  • Fix incorrect NOT IN behavior when NULL values are involved
  • Gracefully handle unknown ordering fields in extended select command
SHP
  • Fix GetSpatialContexts crash when schema cache is invalidated
SQLite
  • Fix filtering on numbers with more than 5 decimal places
  • Fix filtering on dates returning wrong results
  • A "Default" spatial context is now returned if the data store has no coordinate system metadata
  • Properly fix thread-safety on both Windows and Linux when building internal metadata.
    • The deadlock on Linux (reason for original fix being rolled back) was due to using a non-recursive pthread mutex.
OGR
  • Re-architect provider internals for better stability when consumed from a .net client FDO application
  • MultiGeometry/GeometryCollection instances are now read by the provider properly
  • Fix "Invalid index: -1" errors from missing properties
GDAL
  • Prevent blank horizontal stripes when up-sampling rasters
  • We try to include the underlying GDAL error message in more places where exceptions are thrown
  • Update configuration doc XML schema to cover missing elements
King Oracle
  • Fix issue reading negative int64 values
  • CLOBs are now read properly on Linux
  • Unicode strings now insert properly on Linux
SQL Server Spatial
  • The SQL Server Spatial FDO provider is now available for Linux
    • You will need to install the Microsoft ODBC Driver for SQL Server. The ubuntu installer package will install this for you automatically
  • New experimental environment variable (FDO_SQS_PERF) that improves provider performance in various areas
    • Set =1 to opt-in
  • Provider now prefers Microsoft ODBC driver 17/18 before falling back to SQL Server Native Client.
  • Fix poor error message when inserting a row into a table without a primary key
  • Fix spatial contexts with dots in its name not being destroyable
  • Fix query with explicit property list losing all geometry types on its query result geometry property
  • Queries against geography columns apply polygon vertex ordering fixes if required
PostgreSQL
  • Curve geometries now auto-linearized for versions of PostGIS that do not natively accept curve geometries in their spatial operators
  • Now uses proper bind variables for geometry values, eliminating the ugly wkb->hex->wkb roundtrip in SQL query generation
  • Fix failing queries that involve coalesced geometry expressions
MySQL
  • Fix incorrectly reported column types
  • Fix column aliasing in joined queries
ODBC
  • New experimental Linux support for the ODBC FDO provider
    • Previously, we built the provider but did not vet any supported behavior
    • Vetted ODBC drivers for Linux (based on test suites)
      • mdb-tools
      • ODBC Driver for SQL Server
    • Your mileage may vary for any other drivers
WMS
  • Fix "no data" value reported by provider

Download Links

Trac has been on the fritz lately, so the release notes which has the download links have been mirrored to my mapguide-fdo-docs repo on GitHub.

4.0.1-Test release notes on GitHub

All of this ... just works?

As I am doing my final spot checks on a MapGuide Open Source 4.0.1-Test release, I am lamenting that MapGuide Maestro was still windows-only and even though a multi-platform rewrite is in my plans, that is in the distant future. Meaning that to spot-check functionality on an MGOS Linux installation, I'd have to either:

  1. Make raw HTTP requests to its mapagent (painstaking)
  2. Spin up a Windows VM to run Maestro that connects out to the mapagent on that MGOS Linux installation (less painstaking, but still painful)
But then I thought a bit harder. Thanks to the efforts of Lord Gaben, gaming is now viable on Linux. Most windows games that don't use invasive kernel anti-cheats "just work" now out-of-the-box on Linux. It's part of the reason I was comfortable jumping ship from Windows 10 when it went EOL last year.

But I have been viewing this strictly from a gaming context, maybe we can apply that same logic to windows apps in general?

I go and download the latest zip release of MapGuide Maestro from GitHub, extracted the contents to some folder.

Then I open a terminal in that folder and ran: 

wine Maestro.exe

And ... it just works!





This is on Fedora 44, my daily driver OS and one of the major Linux distros!

Does Maestro under Wine operate flawlessly? Not sure. YMMV. Does this invalidate the need for a multi-platform rewrite of Maestro? Not exactly, that plan is still in place. But this discovery is a nice stop-gap measure to tide the Linux users over until then!

So if your Linux distro can run Steam, it can probably run Maestro as well!