mirror of
https://github.com/bvanroll/cs-map-project.git
synced 2025-09-02 22:02:42 +00:00
can you listen? pls
This commit is contained in:
31
Datalaag/MultiPolygonPunten.cs
Normal file
31
Datalaag/MultiPolygonPunten.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user