FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
GeoJson.NET-Unity/CoordinateReferenceSystem/NamedCRS.cs at master · unitycoder/GeoJson.NET-Unity · GitHub
unitycoder
/
GeoJson.NET-Unity
Public
forked from
GeoJSON-Net/GeoJSON.Net
Notifications
You must be signed in to change notification settings
Fork
2
Star
3
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
GeoJson.NET-Unity
/
CoordinateReferenceSystem
/
NamedCRS.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
41 lines (37 loc) · 1.35 KB
Breadcrumbs
GeoJson.NET-Unity
/
CoordinateReferenceSystem
/
NamedCRS.cs
Copy path
File metadata and controls
executable file
·
41 lines (37 loc) · 1.35 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright © Joerg Battermann 2014, Matt Hunt 2017
using
System
;
using
System
.
Collections
.
Generic
;
namespace
GeoJSON
.
Net
.
CoordinateReferenceSystem
{
/// <summary>
/// Defines the Named CRS type.
/// </summary>
/// <remarks>
/// See http://geojson.org/geojson-spec.html#named-crs
/// The current RFC removes the CRS type, but allows to be left in for backwards compatibility.
/// See https://tools.ietf.org/html/rfc7946#section-4
/// </remarks>
public
class
NamedCRS
:
CRSBase
,
ICRSObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NamedCRS" /> class.
/// </summary>
/// <param name="name">
/// The mandatory name member must be a string identifying a coordinate reference system. OGC CRS URNs such as
/// 'urn:ogc:def:crs:OGC:1.3:CRS84' shall be preferred over legacy identifiers such as 'EPSG:4326'.
/// </param>
public
NamedCRS
(
string
name
)
{
if
(
name
==
null
)
{
throw
new
ArgumentNullException
(
nameof
(
name
)
)
;
}
if
(
name
.
Length
==
0
)
{
throw
new
ArgumentException
(
"must be specified"
,
nameof
(
name
)
)
;
}
Properties
=
new
Dictionary
<
string
,
object
>
{
{
"name"
,
name
}
}
;
Type
=
CRSType
.
Name
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL