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
- 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.
- Fix incorrect NOT IN behavior when NULL values are involved
- Gracefully handle unknown ordering fields in extended select command
- Fix GetSpatialContexts crash when schema cache is invalidated
- 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.
- 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
- 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
- Fix issue reading negative int64 values
- CLOBs are now read properly on Linux
- Unicode strings now insert properly on Linux
- 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
- 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
- Fix incorrectly reported column types
- Fix column aliasing in joined queries
- 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
- Fix "no data" value reported by provider
Download Links
4.0.1-Test release notes on GitHub













