Browse our Products
Aspose.GIS for .NET 26.4 Release Notes
This page contains release notes information for Aspose.GIS for .NET 26.4.
Full List of Issues Covering all Changes in this Release
| Key | Summary | Category |
|---|---|---|
| GISNET-2010 | Osm To GeoPackage (incorrect attribute name) | Bug |
| GISNET-2011 | Osm To Gml (incorrect attribute name) | Bug |
| GISNET-1977 | Gml to Gml throw exception and also to all other formats | Bug |
| GISNET-2000 | GML Conversion Produces Some Errors | Bug |
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);