Browse our Products

Aspose.GIS for .NET 26.4 Release Notes

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
GISNET-2010Osm To GeoPackage (incorrect attribute name)Bug
GISNET-2011Osm To Gml (incorrect attribute name)Bug
GISNET-1977Gml to Gml throw exception and also to all other formatsBug
GISNET-2000GML Conversion Produces Some ErrorsBug

Public API and Backward Incompatible Changes

Following members have been added:

  • None

Following members have been removed:

  • None

Usage examples:

GISNET-2010. Osm To GeoPackage (incorrect attribute name)

// Make fix for incorrect attribute name during conversion to GeoPackage. Sample below contain ":" in attribute name.
string sourcePath = Path.Combine(TestConfiguration.TestDataPath, "osm", "1.osm");
string destinationPath = GetOutputPath(".gpkg");
VectorLayer.Convert(sourcePath, Drivers.OsmXml, destinationPath, Drivers.GeoPackage);
using (var layer = VectorLayer.Open(destinationPath, Drivers.GeoPackage))
{
    Assert.AreEqual(30, layer.Count);
    Assert.AreEqual(35, layer.Attributes.Count);
}

GISNET-2011. Osm To Gml (incorrect attribute name)

// Make fix for incorrect attribute name during conversion to Gml. Sample below contain ":" in attribute name and it woks fine now.
string sourcePath = Path.Combine(TestConfiguration.TestDataPath, "osm", "1.osm");
string destinationPath = GetOutputPath(".gml");
VectorLayer.Convert(sourcePath, Drivers.OsmXml, destinationPath, Drivers.Gml);
using (var layer = VectorLayer.Open(destinationPath, Drivers.Gml, new GmlOptions { RestoreSchema = true }))
{
    Assert.AreEqual(30, layer.Count);
    Assert.AreEqual(37, layer.Attributes.Count);
}

GISNET-1977. Gml to Gml throw exception and also to all other formats

// There was exception during GmlRestoration schema for "101_features.gml" sample.
// After fix code below works fine:
ConversionOptions conversionOptions = new ConversionOptions();
conversionOptions.SourceDriverOptions = new GmlOptions { RestoreSchema = true };
string sourcePath = Path.Combine(TestConfiguration.TestDataPath, "gml", "101_features.gml");
string destinationPath = GetOutputPath(".gml");
VectorLayer.Convert(sourcePath, Drivers.Gml, destinationPath, Drivers.Gml, conversionOptions);

GISNET-2000. GML Conversion Produces Some Errors

// 1. We get exception "Error while parsing 'schemaLocation' attribute of the root element: tokens count is odd" for 'zak.gml' sample previously.
// 2. Also there was exception 'duplicate column name: name'
//
// After fixes this code works correct:
ConversionOptions conversionOptions = new ConversionOptions();
conversionOptions.SourceDriverOptions = new GmlOptions { RestoreSchema = true };
string sourcePath = Path.Combine(TestConfiguration.TestDataPath, "gml", "zak.gml");
string destinationPath = GetOutputPath(".gml");
VectorLayer.Convert(sourcePath, Drivers.Gml, destinationPath, Drivers.Gml, conversionOptions);