Border BorderFrom(Placemark placemark) { if (placemark?.MultiGeometry?.Polygon != null) { return(BorderFrom(placemark.MultiGeometry.Polygon.FirstOrDefault())); } else if (placemark?.Polygon != null) { return(BorderFrom(placemark.Polygon)); } else { return(null); } }
public static Territory From(Placemark placemark) { return(new PlacemarkConverter().TerritoryFrom(placemark)); }