Hey,
I heard you added Geo PDF support maybe a month ago.I managed to create a GeoPdfFeaturelayer but when layer is about to be opened “object reference not set to an instance of an object” exception is thrown at ThinkGeo.Core.GdalFeatureSource.OpenCore()
Here’s the code and Geo PDF file. Thanks.
mapView.MapUnit = GeographyUnit.Meter;
var path = Path.Combine(Directory.GetCurrentDirectory(), "Capital.pdf");
var layer = new GeoPdfFeatureLayer(path);
var overlay = new LayerOverlay();
overlay.Layers.Add(layer);
mapView.Overlays.Add(overlay);
mapView.Refresh();
I’m using ThinkGeo.UI.WPF 13.0.0-beta315, ThinkGeo.Core 13.0.0-beta266 and ThinkGeo.GeoPdf 13.0.0-beta022 (also ThinkGeo.Dependency.Gdal 12.3.2)
Capital.pdf (1.3 MB)
I have downloaded sample PDF files from https://terragotech.com/resources/sample-geopdfs/