Skip to content

Commit 65d56c4

Browse files
committed
Merge branch 'release/v5.0.0'
2 parents d5c7279 + 82e746c commit 65d56c4

File tree

201 files changed

+19639
-16644
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+19639
-16644
lines changed

.gitignore

+21-11
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ ipch/
6969
# ReSharper is a .NET coding add-in
7070
_ReSharper*/
7171
*.[Rr]e[Ss]harper
72+
*.idea
73+
*.vs
7274

7375
# TeamCity is a build add-in
7476
_TeamCity*
@@ -136,8 +138,7 @@ UpgradeLog*.htm
136138

137139
# SQL Server files
138140
App_Data/*.mdf
139-
App_Data/*.ldf
140-
141+
App_Data/*.ldf
141142

142143
#LightSwitch generated files
143144
GeneratedArtifacts/
@@ -160,10 +161,22 @@ $RECYCLE.BIN/
160161

161162
# Mac desktop service store files
162163
.DS_Store
164+
__MACOSX/
165+
166+
# GDAL SDK
167+
support/GDAL_SDK/licenses/*.rtf
168+
support/GDAL_SDK/**/*.dll
169+
support/GDAL_SDK/**/*.exe
170+
support/GDAL_SDK/**/*.lib
171+
support/GDAL_SDK/**/*.h
172+
support/GDAL_SDK/**/*.hpp
173+
support/GDAL_SDK/**/*.c
174+
support/GDAL_SDK/**/*.inc
175+
support/GDAL_SDK/**/*.proto
176+
support/GDAL_SDK/**/*.pc
163177

164178
# Custom
165179
*.dll
166-
support/GDAL_SDK/*
167180
docs/output
168181
demo/.nuget/
169182
*.zip
@@ -172,11 +185,8 @@ unittests/MapWinGISTests/AkkerwebTests.cs
172185
*.mwd
173186
*.mwx
174187
unittests/packages/
175-
unittests/.vs/unittests/v15/Server/sqlite3/storage.ide
176-
unittests/.vs/unittests/v15/Server/sqlite3/db.lock
177-
docs/.vs/MapWinGis Documentation/v15/Server/sqlite3/storage.ide-wal
178-
docs/.vs/MapWinGis Documentation/v15/Server/sqlite3/storage.ide-shm
179-
docs/.vs/MapWinGis Documentation/v15/Server/sqlite3/storage.ide
180-
docs/.vs/MapWinGis Documentation/v15/Server/sqlite3/db.lock
181-
src/MapWinGIS.vcxproj.filters
182-
unittests/.vs/
188+
*.VC.db
189+
*.VC.opendb
190+
docs/Assets/Syncfusion Logos/
191+
tmp/
192+
docs/OptimizedImages/

docs/AxInterop.MapWinGIS.XML

+18-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/AxInterop.MapWinGIS/AxMap.cs

+25-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using System;
1+
// ReSharper disable ArrangeAccessorOwnerBody
2+
// ReSharper disable DelegateSubtraction
3+
// ReSharper disable PossibleInvalidCastExceptionInForeachLoop
4+
// ReSharper disable CheckNamespace
5+
6+
using System;
27
using MapWinGIS;
38
#pragma warning disable 67 // Never used warning
49

@@ -1470,7 +1475,9 @@ public bool get_LayerVisibleAtCurrentScale(int layerHandle)
14701475

14711476
#region Drawing layer
14721477
/// \addtogroup map_drawing_layers Drawing layers
1473-
/// Here is a list of methods and properties to interact with the drawing layers of the map. This module is a part of the documentation of AxMap class.
1478+
/// Here is a list of methods and properties to interact with the drawing layers of the map.
1479+
/// The drawing layers are more transient that the standard layers, intended for fast drawing of temporary elements on top of the map.
1480+
/// This module is a part of the documentation of AxMap class.
14741481
/// \dot
14751482
/// digraph map_drawing_layers {
14761483
/// splines = true;
@@ -1506,24 +1513,27 @@ public Labels get_DrawingLabels(int DrawingLayerIndex)
15061513
}
15071514

15081515
/// <summary>
1509-
/// Clears all the drawings on the drawing layer specified.
1516+
/// Clears all drawings on the specified drawing layer, and removes the drawing layer. The drawing handle will no longer be valid.
1517+
/// Call AxMap.NewDrawing again to create a new drawing layer to continue adding new elements.
15101518
/// </summary>
1511-
/// <param name="DrawHandle">Drawing handle of the drawing layer for which all drawings are to be cleared.</param>
1519+
/// <param name="DrawHandle">Drawing handle of the drawing layer to be cleared (and removed).</param>
15121520
public void ClearDrawing(int DrawHandle)
15131521
{
15141522
throw new NotImplementedException();
15151523
}
15161524

15171525
/// <summary>
1518-
/// Clears all drawings on all drawing layers. This method is slower than using ClearDrawing on a specific layer
1526+
/// Clears all drawings on all drawing layers, and removes all drawing layers.
1527+
/// This method is slower than using ClearDrawing on a specific layer.
1528+
/// Call AxMap.NewDrawing again to create a new drawing layer to continue adding new elements.
15191529
/// </summary>
15201530
public void ClearDrawings()
15211531
{
15221532
throw new NotImplementedException();
15231533
}
15241534

15251535
/// <summary>
1526-
/// Draws a circle on the last drawing layer created by NewDrawing
1536+
/// Draws a circle on the last drawing layer created by AxMap.NewDrawing
15271537
/// </summary>
15281538
/// <param name="x">Center x coordinate for the circle to be drawn.</param>
15291539
/// <param name="y">Center y coordinate for the circle to be drawn.</param>
@@ -1550,7 +1560,7 @@ public void DrawCircleEx(int LayerHandle, double x, double y, double pixelRadius
15501560
}
15511561

15521562
/// <summary>
1553-
/// Draws a line on the last drawing layer created using NewDrawing.
1563+
/// Draws a line on the last drawing layer created using AxMap.NewDrawing.
15541564
/// </summary>
15551565
/// <param name="x1">X coordinate of the first point used to draw the line</param>
15561566
/// <param name="y1">Y coordinate of the first point used to draw the line.</param>
@@ -1579,7 +1589,7 @@ public void DrawLineEx(int LayerHandle, double x1, double y1, double x2, double
15791589
}
15801590

15811591
/// <summary>
1582-
/// Draws a point on the last drawing layer created by NewDrawing.
1592+
/// Draws a point on the last drawing layer created by AxMap.NewDrawing.
15831593
/// </summary>
15841594
/// <param name="x">The x coordinate of the point to draw</param>
15851595
/// <param name="y">The y coordinate of the point to draw.</param>
@@ -1604,7 +1614,7 @@ public void DrawPointEx(int LayerHandle, double x, double y, int pixelSize, uint
16041614
}
16051615

16061616
/// <summary>
1607-
/// Draws a polygon on the last drawing layer created using NewDrawing.
1617+
/// Draws a polygon on the last drawing layer created using AxMap.NewDrawing.
16081618
/// </summary>
16091619
/// <param name="xPoints">An array containing x-coordinates for each point in the polygon.</param>
16101620
/// <param name="yPoints">An array containing y-coordinates for each point in the polygon.</param>
@@ -1631,7 +1641,7 @@ public void DrawPolygonEx(int LayerHandle, ref object xPoints, ref object yPoint
16311641
}
16321642

16331643
/// <summary>
1634-
/// Draws a circle with custom outline width on the last drawing layer created by NewDrawing.
1644+
/// Draws a circle with custom outline width on the last drawing layer created by AxMap.NewDrawing.
16351645
/// </summary>
16361646
/// <param name="x">Center x coordinate for the circle to be drawn.</param>
16371647
/// <param name="y">Center y coordinate for the circle to be drawn.</param>
@@ -1660,7 +1670,7 @@ public void DrawWideCircleEx(int LayerHandle, double x, double y, double radius,
16601670
}
16611671

16621672
/// <summary>
1663-
/// Draws a polygon with custom width of outline on the last drawing layer created using NewDrawing.
1673+
/// Draws a polygon with custom width of outline on the last drawing layer created using AxMap.NewDrawing.
16641674
/// </summary>
16651675
/// <param name="xPoints">An array containing x-coordinates for each point in the polygon.</param>
16661676
/// <param name="yPoints">An array containing y-coordinates for each point in the polygon.</param>
@@ -1674,7 +1684,7 @@ public void DrawWidePolygon(ref object xPoints, ref object yPoints, int numPoint
16741684
}
16751685

16761686
/// <summary>
1677-
/// Draws a polygon with custom width of outline on the last drawing layer created using NewDrawing.
1687+
/// Draws a polygon with custom width of outline on the last drawing layer created using AxMap.NewDrawing.
16781688
/// </summary>
16791689
/// <param name="LayerHandle">The handle of the drawing layer created with AxMap.NewDrawing call.</param>
16801690
/// <param name="xPoints">An array containing x-coordinates for each point in the polygon.</param>
@@ -1691,10 +1701,10 @@ public void DrawWidePolygonEx(int LayerHandle, ref object xPoints, ref object yP
16911701
/// <summary>
16921702
/// Creates a new drawing layer on the map returning its handle.
16931703
/// </summary>
1694-
/// <param name="Projection">Sets the coordinate system to use for the new drawing layer to be created. (ScreenReferenced
1695-
/// uses pixels in screen coordinates. SpatiallyReferenced uses projected map units.)</param>
1704+
/// <param name="projection">Sets the coordinate system to use for the new drawing layer to be created. (tkDrawReferenceList.dlScreenReferencedList
1705+
/// uses pixels in screen coordinates. tkDrawReferenceList.dlSpatiallyReferencedList uses projected map units.)</param>
16961706
/// <returns>The handle for the new drawing layer in the map.</returns>
1697-
public int NewDrawing(MapWinGIS.tkDrawReferenceList Projection)
1707+
public int NewDrawing(tkDrawReferenceList projection)
16981708
{
16991709
throw new NotImplementedException();
17001710
}

docs/AxInterop.MapWinGIS/AxMap_Deprecated.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
52

63
#if nsp
74
namespace AxMapWinGIS

docs/AxInterop.MapWinGIS/Enums.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
/// <summary>
1+
// ReSharper disable ArrangeAccessorOwnerBody
2+
// ReSharper disable DelegateSubtraction
3+
// ReSharper disable PossibleInvalidCastExceptionInForeachLoop
4+
// ReSharper disable CheckNamespace
5+
6+
7+
/// <summary>
28
/// Justification of the labels
39
/// </summary>
410
public enum tkHJustification { }

docs/AxInterop.MapWinGIS/Properties/AssemblyInfo.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
43

54
// General Information about an assembly is controlled through the following

docs/Examples/Description.cs

+20-21
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-

1+
// ReSharper disable ArrangeAccessorOwnerBody
2+
// ReSharper disable DelegateSubtraction
3+
// ReSharper disable PossibleInvalidCastExceptionInForeachLoop
4+
// ReSharper disable CheckNamespace
5+
6+
// ReSharper disable UseNullPropagation
27
namespace Examples
38
{
4-
using System;
59
using System.Collections.Generic;
6-
using System.Linq;
7-
using System.Text;
810

911
/// <summary>
1012
/// The groups of the examples for GUI
@@ -25,9 +27,8 @@ public enum ExampleGroup
2527
/// <summary>
2628
/// Holds description of the example to be displayed in the documentation and GUI of this project.
2729
/// </summary>
28-
class Example
30+
public class Example
2931
{
30-
private string guiName; // in the interface
3132
public string function; // to call with reflection
3233
public string description; // to generate documentation page and show in the GUI
3334
public bool image; // whether an image should be attached to the page
@@ -38,24 +39,22 @@ public Example()
3839
image = true;
3940
}
4041

41-
public string GuiName
42-
{
43-
get { return guiName; }
44-
set { guiName = value; }
45-
}
42+
public string GuiName { get; set; }
4643
}
4744

48-
class Description
45+
internal class Description
4946
{
5047
// list of the examples
51-
public List<Example> examples = new List<Example>();
48+
public readonly List<Example> examples = new List<Example>();
5249

5350
// event declaration
54-
delegate void ExampleAddedEventHandler(Example ex, int index);
55-
event ExampleAddedEventHandler ExampleAdded;
56-
void FireExampleAdded(Example ex, int index)
51+
private delegate void ExampleAddedEventHandler(Example ex, int index);
52+
53+
private event ExampleAddedEventHandler ExampleAdded;
54+
55+
private void FireExampleAdded(Example ex, int index)
5756
{
58-
if (this.ExampleAdded != null)
57+
if (ExampleAdded != null)
5958
ExampleAdded(ex, index);
6059
}
6160

@@ -64,10 +63,10 @@ void FireExampleAdded(Example ex, int index)
6463
/// </summary>
6564
public Description()
6665
{
67-
this.ExampleAdded += Description_ExampleAdded;
68-
for (int i = 0; i < 30; i++)
66+
ExampleAdded += Description_ExampleAdded;
67+
for (var i = 0; i < 30; i++)
6968
{
70-
Example ex = new Example();
69+
var ex = new Example();
7170
FireExampleAdded(ex, i);
7271
examples.Add(ex);
7372
}
@@ -76,7 +75,7 @@ public Description()
7675
/// <summary>
7776
/// Adds description of the examples
7877
/// </summary>
79-
void Description_ExampleAdded(Example ex, int index)
78+
private static void Description_ExampleAdded(Example ex, int index)
8079
{
8180
switch (index)
8281
{

0 commit comments

Comments
 (0)