mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 22:18:56 +00:00
GeoApiProjection protected properties
This commit is contained in:
parent
544ac32ee3
commit
be0e06f581
3 changed files with 13 additions and 24 deletions
|
|
@ -30,12 +30,13 @@ namespace MapControl.Projections
|
|||
private double scaleFactor;
|
||||
private string bboxFormat;
|
||||
|
||||
public GeoApiProjection(string wkt = null)
|
||||
protected GeoApiProjection()
|
||||
{
|
||||
if (wkt != null)
|
||||
{
|
||||
WKT = wkt;
|
||||
}
|
||||
}
|
||||
|
||||
public GeoApiProjection(string wkt)
|
||||
{
|
||||
WKT = wkt;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -46,7 +47,7 @@ namespace MapControl.Projections
|
|||
public string WKT
|
||||
{
|
||||
get { return CoordinateSystem?.WKT; }
|
||||
set { CoordinateSystem = new CoordinateSystemFactory().CreateFromWkt(value); }
|
||||
protected set { CoordinateSystem = new CoordinateSystemFactory().CreateFromWkt(value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -55,7 +56,7 @@ namespace MapControl.Projections
|
|||
public ICoordinateSystem CoordinateSystem
|
||||
{
|
||||
get { return coordinateSystem; }
|
||||
set
|
||||
protected set
|
||||
{
|
||||
coordinateSystem = value ?? throw new ArgumentNullException(nameof(value));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue