mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Parameterless constructors of projection classes
This commit is contained in:
parent
7637210211
commit
ece82bd654
|
|
@ -18,7 +18,13 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public const string DefaultCrsId = "AUTO2:42004";
|
public const string DefaultCrsId = "AUTO2:42004";
|
||||||
|
|
||||||
public AutoEquirectangularProjection(string crsId = DefaultCrsId)
|
public AutoEquirectangularProjection()
|
||||||
|
: this(DefaultCrsId)
|
||||||
|
{
|
||||||
|
// XAML needs parameterless constructor
|
||||||
|
}
|
||||||
|
|
||||||
|
public AutoEquirectangularProjection(string crsId)
|
||||||
{
|
{
|
||||||
Type = MapProjectionType.NormalCylindrical;
|
Type = MapProjectionType.NormalCylindrical;
|
||||||
CrsId = crsId;
|
CrsId = crsId;
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,13 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public const string DefaultCrsId = "AUTO2:97003"; // proprietary CRS ID
|
public const string DefaultCrsId = "AUTO2:97003"; // proprietary CRS ID
|
||||||
|
|
||||||
public AzimuthalEquidistantProjection(string crsId = DefaultCrsId)
|
public AzimuthalEquidistantProjection()
|
||||||
|
: this(DefaultCrsId)
|
||||||
|
{
|
||||||
|
// XAML needs parameterless constructor
|
||||||
|
}
|
||||||
|
|
||||||
|
public AzimuthalEquidistantProjection(string crsId)
|
||||||
{
|
{
|
||||||
CrsId = crsId;
|
CrsId = crsId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,13 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public const string DefaultCrsId = "EPSG:4326";
|
public const string DefaultCrsId = "EPSG:4326";
|
||||||
|
|
||||||
public EquirectangularProjection(string crsId = DefaultCrsId)
|
public EquirectangularProjection()
|
||||||
|
: this(DefaultCrsId)
|
||||||
|
{
|
||||||
|
// XAML needs parameterless constructor
|
||||||
|
}
|
||||||
|
|
||||||
|
public EquirectangularProjection(string crsId)
|
||||||
{
|
{
|
||||||
Type = MapProjectionType.NormalCylindrical;
|
Type = MapProjectionType.NormalCylindrical;
|
||||||
CrsId = crsId;
|
CrsId = crsId;
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,13 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public const string DefaultCrsId = "AUTO2:97001"; // GeoServer non-standard CRS ID
|
public const string DefaultCrsId = "AUTO2:97001"; // GeoServer non-standard CRS ID
|
||||||
|
|
||||||
public GnomonicProjection(string crsId = DefaultCrsId)
|
public GnomonicProjection()
|
||||||
|
: this(DefaultCrsId)
|
||||||
|
{
|
||||||
|
// XAML needs parameterless constructor
|
||||||
|
}
|
||||||
|
|
||||||
|
public GnomonicProjection(string crsId)
|
||||||
{
|
{
|
||||||
CrsId = crsId;
|
CrsId = crsId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,13 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public const string DefaultCrsId = "AUTO2:42003";
|
public const string DefaultCrsId = "AUTO2:42003";
|
||||||
|
|
||||||
public OrthographicProjection(string crsId = DefaultCrsId)
|
public OrthographicProjection()
|
||||||
|
: this(DefaultCrsId)
|
||||||
|
{
|
||||||
|
// XAML needs parameterless constructor
|
||||||
|
}
|
||||||
|
|
||||||
|
public OrthographicProjection(string crsId)
|
||||||
{
|
{
|
||||||
CrsId = crsId;
|
CrsId = crsId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,13 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public const string DefaultCrsId = "EPSG:32661";
|
public const string DefaultCrsId = "EPSG:32661";
|
||||||
|
|
||||||
public UpsNorthProjection(string crsId = DefaultCrsId)
|
public UpsNorthProjection()
|
||||||
|
: this(DefaultCrsId)
|
||||||
|
{
|
||||||
|
// XAML needs parameterless constructor
|
||||||
|
}
|
||||||
|
|
||||||
|
public UpsNorthProjection(string crsId)
|
||||||
{
|
{
|
||||||
CrsId = crsId;
|
CrsId = crsId;
|
||||||
IsNorth = true;
|
IsNorth = true;
|
||||||
|
|
@ -133,7 +139,13 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public const string DefaultCrsId = "EPSG:32761";
|
public const string DefaultCrsId = "EPSG:32761";
|
||||||
|
|
||||||
public UpsSouthProjection(string crsId = DefaultCrsId)
|
public UpsSouthProjection()
|
||||||
|
: this(DefaultCrsId)
|
||||||
|
{
|
||||||
|
// XAML needs parameterless constructor
|
||||||
|
}
|
||||||
|
|
||||||
|
public UpsSouthProjection(string crsId)
|
||||||
{
|
{
|
||||||
CrsId = crsId;
|
CrsId = crsId;
|
||||||
IsNorth = false;
|
IsNorth = false;
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,13 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public const string DefaultCrsId = "AUTO2:97002"; // GeoServer non-standard CRS ID
|
public const string DefaultCrsId = "AUTO2:97002"; // GeoServer non-standard CRS ID
|
||||||
|
|
||||||
public StereographicProjection(string crsId = DefaultCrsId)
|
public StereographicProjection()
|
||||||
|
: this(DefaultCrsId)
|
||||||
|
{
|
||||||
|
// XAML needs parameterless constructor
|
||||||
|
}
|
||||||
|
|
||||||
|
public StereographicProjection(string crsId)
|
||||||
{
|
{
|
||||||
CrsId = crsId;
|
CrsId = crsId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,13 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public const string DefaultCrsId = "EPSG:3857";
|
public const string DefaultCrsId = "EPSG:3857";
|
||||||
|
|
||||||
public WebMercatorProjection(string crsId = DefaultCrsId)
|
public WebMercatorProjection()
|
||||||
|
: this(DefaultCrsId)
|
||||||
|
{
|
||||||
|
// XAML needs parameterless constructor
|
||||||
|
}
|
||||||
|
|
||||||
|
public WebMercatorProjection(string crsId)
|
||||||
{
|
{
|
||||||
Type = MapProjectionType.WebMercator;
|
Type = MapProjectionType.WebMercator;
|
||||||
CrsId = crsId;
|
CrsId = crsId;
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,13 @@ namespace MapControl
|
||||||
|
|
||||||
private readonly string autoCrsId;
|
private readonly string autoCrsId;
|
||||||
|
|
||||||
public Wgs84AutoUtmProjection(string crsId = DefaultCrsId)
|
public Wgs84AutoUtmProjection()
|
||||||
|
: this(DefaultCrsId)
|
||||||
|
{
|
||||||
|
// XAML needs parameterless constructor
|
||||||
|
}
|
||||||
|
|
||||||
|
public Wgs84AutoUtmProjection(string crsId)
|
||||||
: base(31, true)
|
: base(31, true)
|
||||||
{
|
{
|
||||||
autoCrsId = crsId;
|
autoCrsId = crsId;
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,13 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public const string DefaultCrsId = "EPSG:3395";
|
public const string DefaultCrsId = "EPSG:3395";
|
||||||
|
|
||||||
public WorldMercatorProjection(string crsId = DefaultCrsId)
|
public WorldMercatorProjection()
|
||||||
|
: this(DefaultCrsId)
|
||||||
|
{
|
||||||
|
// XAML needs parameterless constructor
|
||||||
|
}
|
||||||
|
|
||||||
|
public WorldMercatorProjection(string crsId)
|
||||||
{
|
{
|
||||||
Type = MapProjectionType.NormalCylindrical;
|
Type = MapProjectionType.NormalCylindrical;
|
||||||
CrsId = crsId;
|
CrsId = crsId;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue