Example #1
0
 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);
     }
 }
Example #2
0
 public static Territory From(Placemark placemark)
 {
     return(new PlacemarkConverter().TerritoryFrom(placemark));
 }