mirror of
https://github.com/bvanroll/cs-map-project.git
synced 2025-08-29 03:42:42 +00:00
initial commit
This commit is contained in:
13
.idea/.idea.opdracht2/.idea/.gitignore
generated
vendored
Normal file
13
.idea/.idea.opdracht2/.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Rider ignored files
|
||||
/modules.xml
|
||||
/contentModel.xml
|
||||
/.idea.opdracht2.iml
|
||||
/projectSettingsUpdater.xml
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
5
.idea/.idea.opdracht2/.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
5
.idea/.idea.opdracht2/.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
@@ -0,0 +1,5 @@
|
||||
<component name="ProjectCodeStyleConfiguration">
|
||||
<state>
|
||||
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
|
||||
</state>
|
||||
</component>
|
4
.idea/.idea.opdracht2/.idea/encodings.xml
generated
Normal file
4
.idea/.idea.opdracht2/.idea/encodings.xml
generated
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
|
||||
</project>
|
8
.idea/.idea.opdracht2/.idea/indexLayout.xml
generated
Normal file
8
.idea/.idea.opdracht2/.idea/indexLayout.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ContentModelUserStore">
|
||||
<attachedFolders />
|
||||
<explicitIncludes />
|
||||
<explicitExcludes />
|
||||
</component>
|
||||
</project>
|
6
.idea/.idea.opdracht2/.idea/misc.xml
generated
Normal file
6
.idea/.idea.opdracht2/.idea/misc.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptSettings">
|
||||
<option name="languageLevel" value="ES6" />
|
||||
</component>
|
||||
</project>
|
6
.idea/.idea.opdracht2/.idea/vcs.xml
generated
Normal file
6
.idea/.idea.opdracht2/.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
7
.idea/.idea.opdracht2/riderModule.iml
generated
Normal file
7
.idea/.idea.opdracht2/riderModule.iml
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="RIDER_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$/../.." />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
BIN
.vs/opdracht2/DesignTimeBuild/.dtbcache.v2
Normal file
BIN
.vs/opdracht2/DesignTimeBuild/.dtbcache.v2
Normal file
Binary file not shown.
BIN
.vs/opdracht2/v16/.suo
Normal file
BIN
.vs/opdracht2/v16/.suo
Normal file
Binary file not shown.
25
opdracht2.sln
Normal file
25
opdracht2.sln
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.30309.148
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "opdracht2", "opdracht2\opdracht2.csproj", "{81E4F6D2-D6A1-410F-9255-B76BFCD03B87}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{81E4F6D2-D6A1-410F-9255-B76BFCD03B87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{81E4F6D2-D6A1-410F-9255-B76BFCD03B87}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{81E4F6D2-D6A1-410F-9255-B76BFCD03B87}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{81E4F6D2-D6A1-410F-9255-B76BFCD03B87}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {6F766F4D-A5C0-4C55-8E0F-B6A7D2CC716A}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
9
opdracht2/App.xaml
Normal file
9
opdracht2/App.xaml
Normal file
@@ -0,0 +1,9 @@
|
||||
<Application x:Class="opdracht2.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:opdracht2"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
18
opdracht2/App.xaml.cs
Normal file
18
opdracht2/App.xaml.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace opdracht2
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
}
|
||||
}
|
10
opdracht2/AssemblyInfo.cs
Normal file
10
opdracht2/AssemblyInfo.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Windows;
|
||||
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||
//(used if a resource is not found in the page,
|
||||
// or application resource dictionaries)
|
||||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||
//(used if a resource is not found in the page,
|
||||
// app, or any theme specific resource dictionaries)
|
||||
)]
|
441
opdracht2/GeoJsonParser.cs
Normal file
441
opdracht2/GeoJsonParser.cs
Normal file
@@ -0,0 +1,441 @@
|
||||
using GeoJSON.Net.Converters;
|
||||
using GeoJSON.Net.Geometry;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Numerics;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Security.Cryptography.Pkcs;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Shapes;
|
||||
using Point = System.Windows.Point;
|
||||
using Polygon = System.Windows.Shapes.Polygon;
|
||||
|
||||
namespace opdracht2
|
||||
{
|
||||
public static class GeoJsonParser
|
||||
{
|
||||
//public GeoJsonParser(string json)
|
||||
//{
|
||||
//}
|
||||
public static double maximumXWaarde,
|
||||
maximumYWaarde,
|
||||
minimumXWaarde,
|
||||
minimumYWaarde,
|
||||
schaalXWaarde,
|
||||
schaalYWaarde;
|
||||
public static double epsilon;
|
||||
|
||||
public static Tuple<List<System.Windows.Shapes.Polygon>, List<Ellipse>> TriangulateJsonData(string json,
|
||||
double x, double y)
|
||||
{
|
||||
epsilon = .003;
|
||||
schaalXWaarde = x;
|
||||
schaalYWaarde = y;
|
||||
maximumXWaarde = double.MinValue;
|
||||
minimumXWaarde = double.MaxValue;
|
||||
maximumYWaarde = double.MinValue;
|
||||
minimumYWaarde = double.MaxValue;
|
||||
List<System.Windows.Shapes.Polygon> returnWaarde = new List<System.Windows.Shapes.Polygon>();
|
||||
foreach(JObject v in JObject.Parse(json)["features"])
|
||||
{
|
||||
try
|
||||
{
|
||||
List<List<Point>> PolygonsInPolygonsLijst = maakPolygonLijst(JsonConvert.DeserializeObject<MultiPolygon>(v["geometry"].ToString()));
|
||||
List<Point> EnkelePolygonLijst = maakPolygonLijn(PolygonsInPolygonsLijst, maximumXWaarde, maximumYWaarde,
|
||||
minimumXWaarde, minimumYWaarde);
|
||||
returnWaarde.AddRange(maakDriehoeken(EnkelePolygonLijst));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.WriteLine("couldnt parse " + v["properties"]["name"]);
|
||||
}
|
||||
|
||||
//JsonConvert.DeserializeObject<MultiPolygon>(JObject.Parse(v.ToString())["geometry"].ToString());
|
||||
}
|
||||
|
||||
return new Tuple<List<System.Windows.Shapes.Polygon>, List<Ellipse>>(NormalizePolygon(returnWaarde), new
|
||||
List<Ellipse>());
|
||||
/*
|
||||
* List<List<Point>> PolygonsInPolygonsLijst =
|
||||
maakPolygonLijst(
|
||||
JsonConvert.DeserializeObject<MultiPolygon>(JObject.Parse(json)["features"][0]["geometry"]
|
||||
.ToString()));
|
||||
List<Point> EnkelePolygonLijst = maakPolygonLijn(PolygonsInPolygonsLijst, maximumXWaarde, maximumYWaarde,
|
||||
minimumXWaarde, minimumYWaarde);
|
||||
return new Tuple<List<System.Windows.Shapes.Polygon>, List<Ellipse>>(maakDriehoeken(EnkelePolygonLijst),
|
||||
maakPunten(EnkelePolygonLijst));
|
||||
*/
|
||||
}
|
||||
|
||||
private static List<Ellipse> maakPunten(List<Point> enkelePolygonLijst)
|
||||
{
|
||||
List<Ellipse> returnWaarde = new List<Ellipse>();
|
||||
foreach (Point c in enkelePolygonLijst)
|
||||
{
|
||||
Ellipse dot = new Ellipse();
|
||||
dot.Stroke = Brushes.Black;
|
||||
dot.StrokeThickness = 1;
|
||||
dot.Height = 5;
|
||||
dot.Width = 5;
|
||||
dot.Fill = new SolidColorBrush(Colors.Black);
|
||||
dot.Margin = new Thickness(c.X, c.Y, 0, 0);
|
||||
returnWaarde.Add(dot);
|
||||
}
|
||||
|
||||
return returnWaarde;
|
||||
}
|
||||
|
||||
private static List<System.Windows.Shapes.Polygon> maakDriehoeken(List<Point> polygonLijst)
|
||||
{
|
||||
List<System.Windows.Shapes.Polygon> returnWaarde = new List<System.Windows.Shapes.Polygon>();
|
||||
int i = 0;
|
||||
while (true)
|
||||
{
|
||||
|
||||
if (i >= polygonLijst.Count)
|
||||
{
|
||||
i = 0;
|
||||
}
|
||||
|
||||
int punt1Index = i;
|
||||
int punt2Index = i + 1;
|
||||
if (punt2Index >= polygonLijst.Count) punt2Index -= polygonLijst.Count;
|
||||
int punt3Index = i + 2;
|
||||
if (punt3Index >= polygonLijst.Count) punt3Index -= polygonLijst.Count;
|
||||
|
||||
if (polygonLijst.Count == 3)
|
||||
{
|
||||
returnWaarde.Add(createNewPolygon(polygonLijst[punt1Index], polygonLijst[punt2Index],
|
||||
polygonLijst[punt3Index]));
|
||||
break;
|
||||
}
|
||||
//double angle = getAngle(f2[i], f2[i + 1], f2[i + 2]);
|
||||
//double hoek = berekenHoekVanPunten(polygonLijst[punt2Index].X, polygonLijst[punt2Index].Y,
|
||||
|
||||
// polygonLijst[punt1Index].X, polygonLijst[punt1Index].Y, polygonLijst[punt3Index].X,
|
||||
//polygonLijst[punt3Index].Y);
|
||||
double hoek = getAngle(polygonLijst[punt1Index], polygonLijst[punt2Index], polygonLijst[punt3Index]);
|
||||
if (hoek < 180)
|
||||
{
|
||||
returnWaarde.Add(createNewPolygon(polygonLijst[punt1Index], polygonLijst[punt2Index],
|
||||
polygonLijst[punt3Index]));
|
||||
polygonLijst.RemoveAt(punt2Index);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
return returnWaarde;
|
||||
}
|
||||
|
||||
//https://stackoverflow.com/a/31334882
|
||||
private static double getAngle(Point p1, Point p2, Point p3)
|
||||
{
|
||||
//double p12 = neemLengteTussen2Punten(p2, p1);
|
||||
//double p13 = neemLengteTussen2Punten(p2, p3);
|
||||
//double p23 = neemLengteTussen2Punten(p1, p3);
|
||||
//double top = Math.Pow(p12, 2) + Math.Pow(p13, 2) + Math.Pow(p23, 2);
|
||||
//double bottom = 2 * p12 * p13;
|
||||
|
||||
//return Math.Acos(top/bottom);
|
||||
//double t = Math.Atan2(p3.Y - p1.Y, p3.X - p1.X);
|
||||
//double v = Math.Atan2(p2.Y - p1.Y, p2.X - p1.X);
|
||||
|
||||
//return t - v;
|
||||
return Math.Atan2(p3.Y - p1.Y, p3.X - p1.X) - Math.Atan2(p2.Y - p1.Y, p2.X - p1.X);
|
||||
}
|
||||
|
||||
//https://stackoverflow.com/a/39673693
|
||||
private static double berekenHoekVanPunten(double P1X, double P1Y, double P2X, double P2Y,
|
||||
double P3X, double P3Y)
|
||||
{
|
||||
double numerator = P2Y * (P1X - P3X) + P1Y * (P3X - P2X) + P3Y * (P2X - P1X);
|
||||
double denominator = (P2X - P1X) * (P1X - P3X) + (P2Y - P1Y) * (P1Y - P3Y);
|
||||
double ratio = numerator / denominator;
|
||||
double angleRad = Math.Atan(ratio);
|
||||
double angleDeg = (angleRad * 180) / Math.PI;
|
||||
if (angleDeg < 0)
|
||||
{
|
||||
angleDeg = 180 + angleDeg;
|
||||
}
|
||||
return angleDeg;
|
||||
}
|
||||
|
||||
private static double neemLengteTussen2Punten(Point punt1, Point punt2)
|
||||
{
|
||||
return Math.Sqrt((Math.Pow((punt1.X - punt2.X), 2) + (Math.Pow(punt1.Y - punt2.Y, 2))));
|
||||
}
|
||||
|
||||
private static System.Windows.Shapes.Polygon createNewPolygon(Point punt1, Point punt2, Point punt3)
|
||||
{
|
||||
System.Windows.Shapes.Polygon returnWaarde = new System.Windows.Shapes.Polygon();
|
||||
PointCollection puntCollectie = new PointCollection();
|
||||
puntCollectie.Add(punt1);
|
||||
puntCollectie.Add(punt2);
|
||||
puntCollectie.Add(punt3);
|
||||
returnWaarde.Points = puntCollectie;
|
||||
returnWaarde.StrokeThickness = 1;
|
||||
|
||||
|
||||
// deze code zorgt ervoor dat de driehoeken duidelijker zijn op de afbeelding door de kleur willekeurig te selecteren
|
||||
Random random = new Random();
|
||||
Type brushType = typeof(Brushes);
|
||||
PropertyInfo[] properties = brushType.GetProperties();
|
||||
int randomIndex = random.Next(properties.Length);
|
||||
Brush willekeurigeBrush = (Brush) properties[randomIndex].GetValue(null, null);
|
||||
returnWaarde.Fill = willekeurigeBrush;
|
||||
returnWaarde.Stroke = willekeurigeBrush;
|
||||
|
||||
return returnWaarde;
|
||||
}
|
||||
|
||||
private static List<List<Point>> maakPolygonLijst(MultiPolygon multiPolygon)
|
||||
{
|
||||
List<List<Point>> polygonAlsVectorLijst = new List<List<Point>>();
|
||||
|
||||
foreach (GeoJSON.Net.Geometry.Polygon p in multiPolygon.Coordinates)
|
||||
{
|
||||
List<Point> polygonLijst = new List<Point>();
|
||||
foreach (LineString lineString in p.Coordinates)
|
||||
{
|
||||
foreach (Position positie in lineString.Coordinates)
|
||||
{
|
||||
if (positie.Longitude < minimumXWaarde)
|
||||
{
|
||||
minimumXWaarde = positie.Longitude;
|
||||
}
|
||||
|
||||
if (positie.Longitude > maximumXWaarde)
|
||||
{
|
||||
maximumXWaarde = positie.Longitude;
|
||||
}
|
||||
|
||||
if (positie.Latitude < minimumYWaarde)
|
||||
{
|
||||
minimumYWaarde = positie.Latitude;
|
||||
}
|
||||
|
||||
if (positie.Latitude > maximumYWaarde)
|
||||
{
|
||||
maximumYWaarde = positie.Latitude;
|
||||
}
|
||||
Point punt = new Point(positie.Longitude, positie.Latitude);
|
||||
if (!polygonLijst.Contains(punt)) polygonLijst.Add(new Point( positie.Longitude, positie.Latitude));
|
||||
}
|
||||
}
|
||||
|
||||
polygonLijst = DP(polygonLijst);
|
||||
polygonAlsVectorLijst.Add(polygonLijst);
|
||||
if (polygonAlsVectorLijst.Count > 1)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
maximumXWaarde = maximumXWaarde - minimumXWaarde;
|
||||
maximumYWaarde = maximumYWaarde - minimumYWaarde;
|
||||
return polygonAlsVectorLijst;
|
||||
}
|
||||
|
||||
private static List<Point> maakPolygonLijn(List<List<Point>> multiPolygon, double Xmax, double Ymax,
|
||||
double Xmin, double Ymin)
|
||||
{
|
||||
//zoek dichtsbijzijnde punt wanneer toevoegen volgende vector en voeg pas vanaf dat punt toe.
|
||||
bool richting = true; //richting van inlezen polygon (met klok mee, tegen in klok)
|
||||
List<Point> returnWaarde = new List<Point>();
|
||||
foreach (List<Point> polygon in multiPolygon)
|
||||
{
|
||||
if (richting)
|
||||
{
|
||||
polygon.Reverse();
|
||||
}
|
||||
|
||||
List<Point> normalizedPoly = polygon; //geen nederlandse naam gevonden voor dit
|
||||
if (returnWaarde.Count > 0)
|
||||
{
|
||||
Point dichtsbijzijndePunt = returnWaarde[0];
|
||||
Point dichtsbijzijndeNieuwePunt = normalizedPoly[0];
|
||||
foreach (Point punt in returnWaarde)
|
||||
{
|
||||
//ik dacht dat dit beter ging zijn, maar blijkbaar geen echt effect, behalve shit vertragen.
|
||||
foreach (Point punt2 in normalizedPoly)
|
||||
{
|
||||
if (Vector2.Distance(new Vector2((float)punt.X, (float)punt.Y), new Vector2((float)punt2.X, (float)punt2.Y)) <
|
||||
Vector2.Distance(new Vector2((float) dichtsbijzijndePunt.X,(float) dichtsbijzijndePunt.Y),
|
||||
new Vector2((float)dichtsbijzijndeNieuwePunt.X, (float)dichtsbijzijndeNieuwePunt.Y)))
|
||||
{
|
||||
dichtsbijzijndePunt = punt;
|
||||
dichtsbijzijndeNieuwePunt = punt2;
|
||||
}
|
||||
}
|
||||
|
||||
/*if (Vector2.Distance(punt, normalizedPoly[0]) < Vector2.Distance(dichtsbijzijndePunt, normalizedPoly[0]))
|
||||
{
|
||||
dichtsbijzijndePunt = punt;
|
||||
}*/
|
||||
}
|
||||
|
||||
//normalizedPoly = orderList(normalizedPoly, dichtsbijzijndeNieuwePunt);
|
||||
returnWaarde.InsertRange(returnWaarde.IndexOf(dichtsbijzijndePunt), normalizedPoly);
|
||||
}
|
||||
else
|
||||
{
|
||||
returnWaarde.AddRange(normalizedPoly);
|
||||
}
|
||||
|
||||
richting = !richting;
|
||||
}
|
||||
|
||||
return returnWaarde;
|
||||
}
|
||||
|
||||
private static List<Vector2> orderList(List<Vector2> normalizedPoly, Vector2 dichtsbijzijndeNieuwePunt)
|
||||
{
|
||||
int i = normalizedPoly.IndexOf(dichtsbijzijndeNieuwePunt);
|
||||
int check = i;
|
||||
List<Vector2> returnWaarde = new List<Vector2>();
|
||||
do
|
||||
{
|
||||
if (i >= normalizedPoly.Count) i -= normalizedPoly.Count;
|
||||
returnWaarde.Add(normalizedPoly[i]);
|
||||
i++;
|
||||
} while (i != check);
|
||||
|
||||
return returnWaarde;
|
||||
}
|
||||
|
||||
//TODO refactor dit zodat het alle polygons normalized aan het einde van de formule.
|
||||
private static List<System.Windows.Shapes.Polygon> NormalizePolygon(List<System.Windows.Shapes.Polygon> polygons)
|
||||
{
|
||||
//mss deze fn hermaken zodat deze ook ramer douglas peucker
|
||||
List<System.Windows.Shapes.Polygon> returnWaarde = new List<System.Windows.Shapes.Polygon>();
|
||||
foreach (System.Windows.Shapes.Polygon p in polygons)
|
||||
{
|
||||
PointCollection puntCollectie = new PointCollection();
|
||||
foreach (Point punt in p.Points)
|
||||
{
|
||||
double x = (punt.X - minimumXWaarde);
|
||||
x = (x / maximumXWaarde);
|
||||
x = (x * 200);
|
||||
double y = (punt.Y - minimumYWaarde);
|
||||
y = (y / maximumYWaarde);
|
||||
y = (y * 200);
|
||||
puntCollectie.Add(new Point(x, y));
|
||||
}
|
||||
Polygon pol = new Polygon();
|
||||
pol.Points = puntCollectie;
|
||||
returnWaarde.Add(pol);
|
||||
}
|
||||
//List<Point> iets = DP(returnWaarde);
|
||||
return returnWaarde;
|
||||
}
|
||||
|
||||
private static List<Point> DP(List<Point> punten)
|
||||
{
|
||||
double dmax = -1;
|
||||
int index = 0;
|
||||
int end = punten.Count;
|
||||
|
||||
for (int i = 1; i < end-1; i++)
|
||||
{
|
||||
double distance = PerpendicularDistance2(punten[i], punten[0], punten[end-1]);
|
||||
if (distance > dmax)
|
||||
{
|
||||
index = i;
|
||||
dmax = distance;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.WriteLine("distance between points = " + distance);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
List<Point> returnWaarde = new List<Point>();
|
||||
|
||||
if (dmax > epsilon)
|
||||
{
|
||||
List<Point> recResults1 = DP(punten.GetRange(0, index));
|
||||
List<Point> recResults2 = DP(punten.GetRange(index, end-1-index));
|
||||
|
||||
|
||||
returnWaarde.AddRange(recResults1);
|
||||
returnWaarde.AddRange(recResults2);
|
||||
}
|
||||
else
|
||||
{
|
||||
returnWaarde = new List<Point>() { punten[0], punten[punten.Count-1] };
|
||||
}
|
||||
|
||||
return returnWaarde;
|
||||
}
|
||||
|
||||
private static double PerpendicularDistance2(Point point, Point l1, Point l2)
|
||||
{
|
||||
return Math.Abs((l2.X - l1.X) * (l1.Y - point.Y) - (l1.X - point.X) * (l2.Y - l1.Y)) /
|
||||
Math.Sqrt(Math.Pow(l2.X - l1.X, 2) + Math.Pow(l2.Y - l1.Y, 2));
|
||||
|
||||
}
|
||||
|
||||
public static Double PerpendicularDistance
|
||||
(Vector2 Point1, Vector2 Point2, Vector2 Point)
|
||||
{
|
||||
//Area = |(1/2)(x1y2 + x2y3 + x3y1 - x2y1 - x3y2 - x1y3)| *Area of triangle
|
||||
//Base = v((x1-x2)²+(x1-x2)²) *Base of Triangle*
|
||||
//Area = .5*Base*H *Solve for height
|
||||
//Height = Area/.5/Base
|
||||
|
||||
Double area = Math.Abs(.5 * (Point1.X * Point2.Y + Point2.X *
|
||||
Point.Y + Point.X * Point1.Y - Point2.X * Point1.Y - Point.X *
|
||||
Point2.Y - Point1.X * Point.Y));
|
||||
Double bottom = Math.Sqrt(Math.Pow(Point1.X - Point2.X, 2) +
|
||||
Math.Pow(Point1.Y - Point2.Y, 2));
|
||||
Double height = area / bottom * 2;
|
||||
|
||||
return height;
|
||||
|
||||
//Another option
|
||||
//Double A = Point.X - Point1.X;
|
||||
//Double B = Point.Y - Point1.Y;
|
||||
//Double C = Point2.X - Point1.X;
|
||||
//Double D = Point2.Y - Point1.Y;
|
||||
|
||||
//Double dot = A * C + B * D;
|
||||
//Double len_sq = C * C + D * D;
|
||||
//Double param = dot / len_sq;
|
||||
|
||||
//Double xx, yy;
|
||||
|
||||
//if (param < 0)
|
||||
//{
|
||||
// xx = Point1.X;
|
||||
// yy = Point1.Y;
|
||||
//}
|
||||
//else if (param > 1)
|
||||
//{
|
||||
// xx = Point2.X;
|
||||
// yy = Point2.Y;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// xx = Point1.X + param * C;
|
||||
// yy = Point1.Y + param * D;
|
||||
//}
|
||||
|
||||
//Double d = DistanceBetweenOn2DPlane(Point, new Point(xx, yy));
|
||||
}
|
||||
}
|
||||
}
|
15
opdracht2/MainWindow.xaml
Normal file
15
opdracht2/MainWindow.xaml
Normal file
@@ -0,0 +1,15 @@
|
||||
<Window x:Class="opdracht2.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:opdracht2"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Height="450" Width="800">
|
||||
<Grid>
|
||||
<Button HorizontalAlignment="Left" Margin="52,34,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.215,0.64" Click="Button_Click" Height="25" Width="55">
|
||||
</Button>
|
||||
<Canvas x:Name="someCanvas" Margin="165,61,119,60"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
121
opdracht2/MainWindow.xaml.cs
Normal file
121
opdracht2/MainWindow.xaml.cs
Normal file
@@ -0,0 +1,121 @@
|
||||
using Microsoft.Win32;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace opdracht2
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
Canvas c;
|
||||
List<Polygon> f;
|
||||
List<Ellipse> el;
|
||||
List<Polygon> buffer;
|
||||
public MainWindow()
|
||||
{
|
||||
f = new List<Polygon>();
|
||||
el = new List<Ellipse>();
|
||||
buffer = new List<Polygon>();
|
||||
InitializeComponent();
|
||||
c = (Canvas)this.FindName("someCanvas");
|
||||
CompositionTarget.Rendering += DoUpdates;
|
||||
OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||
if (openFileDialog.ShowDialog() == true)
|
||||
{
|
||||
Tuple<List<Polygon>, List<Ellipse>> t = GeoJsonParser.TriangulateJsonData(File.ReadAllText(openFileDialog.FileName), c.Width, c.Height);
|
||||
f = t.Item1;
|
||||
el = t.Item2;
|
||||
}
|
||||
var st = new ScaleTransform();
|
||||
c.RenderTransform = st;
|
||||
foreach (Ellipse eli in el)
|
||||
{
|
||||
c.Children.Add(eli);
|
||||
}
|
||||
c.MouseWheel += (sender, e) =>
|
||||
{
|
||||
if (f.Count > 0)
|
||||
{
|
||||
buffer.Add(f[0]);
|
||||
f.RemoveAt(0);
|
||||
}
|
||||
if (e.Delta > 0)
|
||||
{
|
||||
st.ScaleX *= 2;
|
||||
st.ScaleY *= 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
st.ScaleX /= 2;
|
||||
st.ScaleY /= 2;
|
||||
}
|
||||
};
|
||||
|
||||
Debug.Write("done");
|
||||
}
|
||||
|
||||
private void DoUpdates(object sender, EventArgs e)
|
||||
{
|
||||
if (f.Count > 0)
|
||||
{
|
||||
c.Children.Add(f[0]);
|
||||
f.RemoveAt(0);
|
||||
Thread.Sleep(50);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//zoom https://stackoverflow.com/a/44593026
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (f.Count > 0)
|
||||
{
|
||||
buffer.Add(f[0]);
|
||||
f.RemoveAt(0);
|
||||
}
|
||||
//List<Polygon> f = GeoJsonParser.TriangulateJsonData(File.ReadAllText(openFileDialog.FileName), c.Width, c.Height);
|
||||
|
||||
/*
|
||||
foreach (Polygon p in f)
|
||||
{
|
||||
foreach(Point po in p.Points)
|
||||
{
|
||||
//fuck c# https://stackoverflow.com/a/36482552
|
||||
Ellipse dot = new Ellipse();
|
||||
dot.Stroke = Brushes.Black;
|
||||
dot.StrokeThickness = 1;
|
||||
Canvas.SetZIndex(dot, 3);
|
||||
dot.Height = 5;
|
||||
dot.Width = 5;
|
||||
dot.Fill = new SolidColorBrush(Colors.Black);
|
||||
dot.Margin = new Thickness(po.X, po.Y, 0, 0);
|
||||
c.Children.Add(dot);
|
||||
}
|
||||
c.Children.Add(p);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
opdracht2/bin/Debug/netcoreapp3.1/GeoJSON.Net.dll
Normal file
BIN
opdracht2/bin/Debug/netcoreapp3.1/GeoJSON.Net.dll
Normal file
Binary file not shown.
BIN
opdracht2/bin/Debug/netcoreapp3.1/Newtonsoft.Json.dll
Normal file
BIN
opdracht2/bin/Debug/netcoreapp3.1/Newtonsoft.Json.dll
Normal file
Binary file not shown.
1459
opdracht2/bin/Debug/netcoreapp3.1/opdracht2.deps.json
Normal file
1459
opdracht2/bin/Debug/netcoreapp3.1/opdracht2.deps.json
Normal file
File diff suppressed because it is too large
Load Diff
BIN
opdracht2/bin/Debug/netcoreapp3.1/opdracht2.dll
Normal file
BIN
opdracht2/bin/Debug/netcoreapp3.1/opdracht2.dll
Normal file
Binary file not shown.
BIN
opdracht2/bin/Debug/netcoreapp3.1/opdracht2.exe
Normal file
BIN
opdracht2/bin/Debug/netcoreapp3.1/opdracht2.exe
Normal file
Binary file not shown.
BIN
opdracht2/bin/Debug/netcoreapp3.1/opdracht2.pdb
Normal file
BIN
opdracht2/bin/Debug/netcoreapp3.1/opdracht2.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"additionalProbingPaths": [
|
||||
"C:\\Users\\Beppe\\.dotnet\\store\\|arch|\\|tfm|",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages"
|
||||
]
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "netcoreapp3.1",
|
||||
"framework": {
|
||||
"name": "Microsoft.WindowsDesktop.App",
|
||||
"version": "3.1.0"
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]
|
70
opdracht2/obj/Debug/netcoreapp3.1/App.g.cs
Normal file
70
opdracht2/obj/Debug/netcoreapp3.1/App.g.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "966574E29427F2599B555F749E05CCD390A5A478"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Controls.Ribbon;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using opdracht2;
|
||||
|
||||
|
||||
namespace opdracht2 {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// App
|
||||
/// </summary>
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
|
||||
public void InitializeComponent() {
|
||||
|
||||
#line 5 "..\..\..\App.xaml"
|
||||
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Application Entry Point.
|
||||
/// </summary>
|
||||
[System.STAThreadAttribute()]
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
|
||||
public static void Main() {
|
||||
opdracht2.App app = new opdracht2.App();
|
||||
app.InitializeComponent();
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
71
opdracht2/obj/Debug/netcoreapp3.1/App.g.i.cs
Normal file
71
opdracht2/obj/Debug/netcoreapp3.1/App.g.i.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "966574E29427F2599B555F749E05CCD390A5A478"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Controls.Ribbon;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using opdracht2;
|
||||
|
||||
|
||||
namespace opdracht2 {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// App
|
||||
/// </summary>
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
|
||||
public void InitializeComponent() {
|
||||
|
||||
#line 5 "..\..\..\App.xaml"
|
||||
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Application Entry Point.
|
||||
/// </summary>
|
||||
[System.STAThreadAttribute()]
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
|
||||
public static void Main() {
|
||||
opdracht2.App app = new opdracht2.App();
|
||||
app.InitializeComponent();
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
opdracht2/obj/Debug/netcoreapp3.1/MainWindow.baml
Normal file
BIN
opdracht2/obj/Debug/netcoreapp3.1/MainWindow.baml
Normal file
Binary file not shown.
97
opdracht2/obj/Debug/netcoreapp3.1/MainWindow.g.cs
Normal file
97
opdracht2/obj/Debug/netcoreapp3.1/MainWindow.g.cs
Normal file
@@ -0,0 +1,97 @@
|
||||
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3A443E7ED9F57FEF7727DBB7F494EFF32BD95ECA"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Controls.Ribbon;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using opdracht2;
|
||||
|
||||
|
||||
namespace opdracht2 {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// MainWindow
|
||||
/// </summary>
|
||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 12 "..\..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Canvas someCanvas;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/opdracht2;component/mainwindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\MainWindow.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
|
||||
#line 10 "..\..\..\MainWindow.xaml"
|
||||
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 2:
|
||||
this.someCanvas = ((System.Windows.Controls.Canvas)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
98
opdracht2/obj/Debug/netcoreapp3.1/MainWindow.g.i.cs
Normal file
98
opdracht2/obj/Debug/netcoreapp3.1/MainWindow.g.i.cs
Normal file
@@ -0,0 +1,98 @@
|
||||
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3A443E7ED9F57FEF7727DBB7F494EFF32BD95ECA"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Controls.Ribbon;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using opdracht2;
|
||||
|
||||
|
||||
namespace opdracht2 {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// MainWindow
|
||||
/// </summary>
|
||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 12 "..\..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Canvas someCanvas;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/opdracht2;component/mainwindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\MainWindow.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
|
||||
#line 10 "..\..\..\MainWindow.xaml"
|
||||
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 2:
|
||||
this.someCanvas = ((System.Windows.Controls.Canvas)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
23
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.AssemblyInfo.cs
Normal file
23
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.AssemblyInfo.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("opdracht2")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("opdracht2")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("opdracht2")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
@@ -0,0 +1 @@
|
||||
8bfcb54fb5156b41c5e9228923f0e123bc5b97bc
|
BIN
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.assets.cache
Normal file
BIN
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.assets.cache
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
||||
ab61051a8f40b80922d3e5ed73f33937fcfba690
|
@@ -0,0 +1,22 @@
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\opdracht2.csprojAssemblyReference.cache
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\MainWindow.g.cs
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\App.g.cs
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\opdracht2_MarkupCompile.cache
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\opdracht2_MarkupCompile.lref
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\bin\Debug\netcoreapp3.1\opdracht2.exe
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\bin\Debug\netcoreapp3.1\opdracht2.deps.json
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\bin\Debug\netcoreapp3.1\opdracht2.runtimeconfig.json
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\bin\Debug\netcoreapp3.1\opdracht2.runtimeconfig.dev.json
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\bin\Debug\netcoreapp3.1\opdracht2.dll
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\bin\Debug\netcoreapp3.1\opdracht2.pdb
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\bin\Debug\netcoreapp3.1\GeoJSON.Net.dll
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\bin\Debug\netcoreapp3.1\Newtonsoft.Json.dll
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\MainWindow.baml
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\opdracht2.g.resources
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\opdracht2.AssemblyInfoInputs.cache
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\opdracht2.AssemblyInfo.cs
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\opdracht2.csproj.CopyComplete
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\opdracht2.dll
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\opdracht2.pdb
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\opdracht2.genruntimeconfig.cache
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\opdracht2.csproj.CoreCompileInputs.cache
|
Binary file not shown.
1899
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.designer.deps.json
Normal file
1899
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.designer.deps.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "netcoreapp3.1",
|
||||
"framework": {
|
||||
"name": "Microsoft.WindowsDesktop.App",
|
||||
"version": "3.1.0"
|
||||
},
|
||||
"additionalProbingPaths": [
|
||||
"C:\\Users\\Beppe\\.dotnet\\store\\|arch|\\|tfm|",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages"
|
||||
],
|
||||
"configProperties": {
|
||||
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
|
||||
}
|
||||
}
|
||||
}
|
BIN
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.dll
Normal file
BIN
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.dll
Normal file
Binary file not shown.
BIN
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.exe
Normal file
BIN
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.exe
Normal file
Binary file not shown.
BIN
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.g.resources
Normal file
BIN
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.g.resources
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
||||
86c8e15dd33445635927cfaf398408205fd11473
|
BIN
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.pdb
Normal file
BIN
opdracht2/obj/Debug/netcoreapp3.1/opdracht2.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,20 @@
|
||||
opdracht2
|
||||
|
||||
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\
|
||||
opdracht2
|
||||
none
|
||||
false
|
||||
TRACE;DEBUG;NETCOREAPP;NETCOREAPP3_1
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\App.xaml
|
||||
1583495661
|
||||
|
||||
42060119627
|
||||
195-1654818392
|
||||
MainWindow.xaml;
|
||||
|
||||
False
|
||||
|
@@ -0,0 +1,20 @@
|
||||
opdracht2
|
||||
1.0.0.0
|
||||
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\obj\Debug\netcoreapp3.1\
|
||||
opdracht2
|
||||
none
|
||||
false
|
||||
TRACE;DEBUG;NETCOREAPP;NETCOREAPP3_1
|
||||
C:\Users\Beppe\source\repos\opdracht2\opdracht2\App.xaml
|
||||
11151548125
|
||||
|
||||
6-680205189
|
||||
195549397899
|
||||
MainWindow.xaml;
|
||||
|
||||
False
|
||||
|
@@ -0,0 +1,4 @@
|
||||
|
||||
|
||||
FC:\Users\Beppe\source\repos\opdracht2\opdracht2\MainWindow.xaml;;
|
||||
|
73
opdracht2/obj/opdracht2.csproj.nuget.dgspec.json
Normal file
73
opdracht2/obj/opdracht2.csproj.nuget.dgspec.json
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\Beppe\\source\\repos\\opdracht2\\opdracht2\\opdracht2.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\Beppe\\source\\repos\\opdracht2\\opdracht2\\opdracht2.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\Beppe\\source\\repos\\opdracht2\\opdracht2\\opdracht2.csproj",
|
||||
"projectName": "opdracht2",
|
||||
"projectPath": "C:\\Users\\Beppe\\source\\repos\\opdracht2\\opdracht2\\opdracht2.csproj",
|
||||
"packagesPath": "C:\\Users\\Beppe\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\Beppe\\source\\repos\\opdracht2\\opdracht2\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\Beppe\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"netcoreapp3.1"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"netcoreapp3.1": {
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"netcoreapp3.1": {
|
||||
"dependencies": {
|
||||
"GeoJSON.Net": {
|
||||
"target": "Package",
|
||||
"version": "[1.2.19, )"
|
||||
},
|
||||
"System.Drawing.Common": {
|
||||
"target": "Package",
|
||||
"version": "[4.7.0, )"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
},
|
||||
"Microsoft.WindowsDesktop.App.WPF": {
|
||||
"privateAssets": "none"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.302\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
18
opdracht2/obj/opdracht2.csproj.nuget.g.props
Normal file
18
opdracht2/obj/opdracht2.csproj.nuget.g.props
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Beppe\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.6.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<PkgNewtonsoft_Json Condition=" '$(PkgNewtonsoft_Json)' == '' ">C:\Users\Beppe\.nuget\packages\newtonsoft.json\10.0.2</PkgNewtonsoft_Json>
|
||||
</PropertyGroup>
|
||||
</Project>
|
6
opdracht2/obj/opdracht2.csproj.nuget.g.targets
Normal file
6
opdracht2/obj/opdracht2.csproj.nuget.g.targets
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||
</PropertyGroup>
|
||||
</Project>
|
5417
opdracht2/obj/project.assets.json
Normal file
5417
opdracht2/obj/project.assets.json
Normal file
File diff suppressed because it is too large
Load Diff
96
opdracht2/obj/project.nuget.cache
Normal file
96
opdracht2/obj/project.nuget.cache
Normal file
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "004Za2WhRXMEOU9Vs9RvspLpxPR0PMz9MFv2oy1y1VjRaQ7utidJwPCE8do7YCIt6avrMQpX4x9fh1RCVVj3UQ==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\Beppe\\source\\repos\\opdracht2\\opdracht2\\opdracht2.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\geojson.net\\1.2.19\\geojson.net.1.2.19.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\microsoft.csharp\\4.3.0\\microsoft.csharp.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\microsoft.netcore.platforms\\3.1.0\\microsoft.netcore.platforms.3.1.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\microsoft.netcore.targets\\1.1.0\\microsoft.netcore.targets.1.1.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\microsoft.win32.primitives\\4.3.0\\microsoft.win32.primitives.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\microsoft.win32.systemevents\\4.7.0\\microsoft.win32.systemevents.4.7.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\netstandard.library\\1.6.1\\netstandard.library.1.6.1.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\newtonsoft.json\\10.0.2\\newtonsoft.json.10.0.2.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.native.system\\4.3.0\\runtime.native.system.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.native.system.io.compression\\4.3.0\\runtime.native.system.io.compression.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.native.system.net.http\\4.3.0\\runtime.native.system.net.http.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.native.system.security.cryptography.apple\\4.3.0\\runtime.native.system.security.cryptography.apple.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple\\4.3.0\\runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.appcontext\\4.3.0\\system.appcontext.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.buffers\\4.3.0\\system.buffers.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.collections\\4.3.0\\system.collections.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.collections.concurrent\\4.3.0\\system.collections.concurrent.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.collections.nongeneric\\4.3.0\\system.collections.nongeneric.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.collections.specialized\\4.3.0\\system.collections.specialized.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.componentmodel\\4.3.0\\system.componentmodel.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.componentmodel.primitives\\4.3.0\\system.componentmodel.primitives.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.componentmodel.typeconverter\\4.3.0\\system.componentmodel.typeconverter.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.console\\4.3.0\\system.console.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.diagnostics.debug\\4.3.0\\system.diagnostics.debug.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.diagnostics.diagnosticsource\\4.3.0\\system.diagnostics.diagnosticsource.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.diagnostics.tools\\4.3.0\\system.diagnostics.tools.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.diagnostics.tracing\\4.3.0\\system.diagnostics.tracing.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.drawing.common\\4.7.0\\system.drawing.common.4.7.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.dynamic.runtime\\4.3.0\\system.dynamic.runtime.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.globalization\\4.3.0\\system.globalization.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.globalization.calendars\\4.3.0\\system.globalization.calendars.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.globalization.extensions\\4.3.0\\system.globalization.extensions.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.io\\4.3.0\\system.io.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.io.compression\\4.3.0\\system.io.compression.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.io.compression.zipfile\\4.3.0\\system.io.compression.zipfile.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.io.filesystem\\4.3.0\\system.io.filesystem.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.io.filesystem.primitives\\4.3.0\\system.io.filesystem.primitives.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.linq\\4.3.0\\system.linq.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.linq.expressions\\4.3.0\\system.linq.expressions.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.net.http\\4.3.0\\system.net.http.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.net.primitives\\4.3.0\\system.net.primitives.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.net.sockets\\4.3.0\\system.net.sockets.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.objectmodel\\4.3.0\\system.objectmodel.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.reflection\\4.3.0\\system.reflection.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.reflection.emit\\4.3.0\\system.reflection.emit.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.reflection.emit.ilgeneration\\4.3.0\\system.reflection.emit.ilgeneration.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.reflection.emit.lightweight\\4.3.0\\system.reflection.emit.lightweight.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.reflection.extensions\\4.3.0\\system.reflection.extensions.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.reflection.primitives\\4.3.0\\system.reflection.primitives.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.reflection.typeextensions\\4.3.0\\system.reflection.typeextensions.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.resources.resourcemanager\\4.3.0\\system.resources.resourcemanager.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.runtime\\4.3.0\\system.runtime.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.runtime.extensions\\4.3.0\\system.runtime.extensions.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.runtime.handles\\4.3.0\\system.runtime.handles.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.runtime.interopservices\\4.3.0\\system.runtime.interopservices.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.runtime.interopservices.runtimeinformation\\4.3.0\\system.runtime.interopservices.runtimeinformation.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.runtime.numerics\\4.3.0\\system.runtime.numerics.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.runtime.serialization.formatters\\4.3.0\\system.runtime.serialization.formatters.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.runtime.serialization.primitives\\4.3.0\\system.runtime.serialization.primitives.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.security.cryptography.algorithms\\4.3.0\\system.security.cryptography.algorithms.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.security.cryptography.cng\\4.3.0\\system.security.cryptography.cng.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.security.cryptography.csp\\4.3.0\\system.security.cryptography.csp.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.security.cryptography.encoding\\4.3.0\\system.security.cryptography.encoding.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.security.cryptography.openssl\\4.3.0\\system.security.cryptography.openssl.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.security.cryptography.primitives\\4.3.0\\system.security.cryptography.primitives.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.security.cryptography.x509certificates\\4.3.0\\system.security.cryptography.x509certificates.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.text.encoding.extensions\\4.3.0\\system.text.encoding.extensions.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.text.regularexpressions\\4.3.0\\system.text.regularexpressions.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.threading\\4.3.0\\system.threading.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.threading.tasks\\4.3.0\\system.threading.tasks.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.threading.tasks.extensions\\4.3.0\\system.threading.tasks.extensions.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.threading.timer\\4.3.0\\system.threading.timer.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.xml.readerwriter\\4.3.0\\system.xml.readerwriter.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.xml.xdocument\\4.3.0\\system.xml.xdocument.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\Beppe\\.nuget\\packages\\system.xml.xmldocument\\4.3.0\\system.xml.xmldocument.4.3.0.nupkg.sha512"
|
||||
],
|
||||
"logs": []
|
||||
}
|
60
opdracht2/obj/project.packagespec.json
Normal file
60
opdracht2/obj/project.packagespec.json
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\Beppe\\source\\repos\\opdracht2\\opdracht2\\opdracht2.csproj",
|
||||
"projectName": "opdracht2",
|
||||
"projectPath": "C:\\Users\\Beppe\\source\\repos\\opdracht2\\opdracht2\\opdracht2.csproj",
|
||||
"outputPath": "C:\\Users\\Beppe\\source\\repos\\opdracht2\\opdracht2\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"originalTargetFrameworks": [
|
||||
"netcoreapp3.1"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"netcoreapp3.1": {
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"netcoreapp3.1": {
|
||||
"dependencies": {
|
||||
"GeoJSON.Net": {
|
||||
"target": "Package",
|
||||
"version": "[1.2.19, )"
|
||||
},
|
||||
"System.Drawing.Common": {
|
||||
"target": "Package",
|
||||
"version": "[4.7.0, )"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
},
|
||||
"Microsoft.WindowsDesktop.App.WPF": {
|
||||
"privateAssets": "none"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.302\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
14
opdracht2/opdracht2.csproj
Normal file
14
opdracht2/opdracht2.csproj
Normal file
@@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<UseWPF>true</UseWPF>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="GeoJSON.Net" Version="1.2.19" />
|
||||
<PackageReference Include="System.Drawing.Common" Version="4.7.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
14
opdracht2/opdracht2.csproj.user
Normal file
14
opdracht2/opdracht2.csproj.user
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Update="App.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Update="MainWindow.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
</Project>
|
Reference in New Issue
Block a user