Browse our Products

Aspose.GIS for for Python via .NET 26.4 Release Notes

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
GISPYTHON-75Osm To GeoPackage (incorrect attribute name)Bug
GISPYTHON-76Osm To Gml (incorrect attribute name)Bug
GISPYTHON-77Gml to Gml throws exception and also to all other formatsBug
GISPYTHON-78GML Conversion Produces Some ErrorsBug

Public API and Backward Incompatible Changes

Following members have been added:

  • None

Following members have been removed:

  • None

Usage examples:

GISPYTHON-75. Osm To GeoPackage (incorrect attribute name)

# Convert OSM to GeoPackage and verify attribute count
source_path = "1.osm"
destination_path = "1.gpkg"

VectorLayer.convert(source_path, Drivers.osm_xml, destination_path, Drivers.geo_package)

with VectorLayer.open(destination_path, Drivers.geo_package) as layer:
    assert layer.count == 30
    assert layer.attributes.count == 35

GISPYTHON-76. Osm To Gml (incorrect attribute name)

# Convert OSM to GML with schema restoration and verify attribute count
source_path = "1.osm"
destination_path = "output.gml"

VectorLayer.convert(source_path, Drivers.osm_xml, destination_path, Drivers.gml)

opt = GmlOptions()
opt.restore_schema = True

with VectorLayer.open(destination_path, Drivers.gml, opt) as layer:
    assert layer.count == 30
    assert layer.attributes.count == 37

GISPYTHON-77. Gml to Gml throws exception and also to all other formats

# Convert GML to GML using source schema restoration
opt = GmlOptions()
opt.restore_schema = True

conversion_options = ConversionOptions()
conversion_options.source_driver_options = opt

source_path = "101_features.gml"
destination_path = "output.gml"

VectorLayer.convert(source_path, Drivers.gml, destination_path, Drivers.gml, conversion_options)

GISPYTHON-78. GML Conversion Produces Some Errors

# Convert problematic GML to GML with schema restoration
opt = GmlOptions()
opt.restore_schema = True

conversion_options = ConversionOptions()
conversion_options.source_driver_options = opt

source_path = "zak.gml"
destination_path = "output.gml"

VectorLayer.convert(source_path, Drivers.gml, destination_path, Drivers.gml, conversion_options)