mirror of
https://github.com/bvanroll/cs-map-project.git
synced 2025-08-28 19:32:44 +00:00
31 lines
752 B
C#
31 lines
752 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using GeoJSON.Net.Geometry;
|
|
|
|
namespace Datalaag
|
|
{
|
|
public class MultiPolygonPunten
|
|
{
|
|
public List<PolygonPunten> PolygonPunten;
|
|
|
|
public string Naam;
|
|
|
|
|
|
public MultiPolygonPunten(MultiPolygon multiPolygon, string naam = "")
|
|
{
|
|
PolygonPunten = new List<PolygonPunten>();
|
|
Naam = naam;
|
|
foreach (Polygon polygon in multiPolygon.Coordinates)
|
|
{
|
|
PolygonPunten.Add(new PolygonPunten(polygon, naam));
|
|
}
|
|
}
|
|
|
|
|
|
public override string ToString()
|
|
{
|
|
if (string.Equals(Naam, "", StringComparison.Ordinal)) return "UNKNOWN";
|
|
else return Naam;
|
|
}
|
|
}
|
|
} |