MATSIM
core
scenario
ProjectionUtils.java
Go to the documentation of this file.
1
2
/* *********************************************************************** *
3
* project: org.matsim.*
4
* ProjectionUtils.java
5
* *
6
* *********************************************************************** *
7
* *
8
* copyright : (C) 2019 by the members listed in the COPYING, *
9
* LICENSE and WARRANTY file. *
10
* email : info at matsim dot org *
11
* *
12
* *********************************************************************** *
13
* *
14
* This program is free software; you can redistribute it and/or modify *
15
* it under the terms of the GNU General Public License as published by *
16
* the Free Software Foundation; either version 2 of the License, or *
17
* (at your option) any later version. *
18
* See also COPYING, LICENSE and WARRANTY file *
19
* *
20
* *********************************************************************** */
21
22
package
org.matsim.core.scenario;
23
24
import
org
.
matsim
.
core
.
api
.
internal
.
MatsimToplevelContainer
;
25
import
org
.
matsim
.
utils
.
objectattributes
.
attributable
.
Attributable
;
26
27
public
final
class
ProjectionUtils
{
32
public
static
final
String
INPUT_CRS_ATT
=
"coordinateReferenceSystem"
;
33
34
private
ProjectionUtils
() {}
35
36
public
static <T extends MatsimToplevelContainer & Attributable> String
getCRS
(T container) {
37
return
(String) container.getAttributes().getAttribute(INPUT_CRS_ATT);
38
}
39
40
public
static <T extends MatsimToplevelContainer & Attributable>
void
putCRS
(T container, String CRS) {
41
container.getAttributes().putAttribute(INPUT_CRS_ATT, CRS);
42
}
43
}
org.matsim.utils.objectattributes.attributable.Attributable
Definition:
Attributable.java:27
org
org.matsim.core.scenario.ProjectionUtils.putCRS
static< T extends MatsimToplevelContainer &Attributable > void putCRS(T container, String CRS)
Definition:
ProjectionUtils.java:40
org.matsim.core.api.internal
Definition:
MatsimComparator.java:21
org.matsim.utils
org.matsim.utils.objectattributes
org.matsim.core.scenario.ProjectionUtils.INPUT_CRS_ATT
static final String INPUT_CRS_ATT
Definition:
ProjectionUtils.java:32
org.matsim.core.scenario.ProjectionUtils.ProjectionUtils
ProjectionUtils()
Definition:
ProjectionUtils.java:34
org.matsim.core
org.matsim.core.scenario.ProjectionUtils
Definition:
ProjectionUtils.java:27
org.matsim.utils.objectattributes.attributable
Definition:
Attributable.java:22
org.matsim.core.api
org.matsim.core.api.internal.MatsimToplevelContainer
Definition:
MatsimToplevelContainer.java:70
org.matsim
org.matsim.core.scenario.ProjectionUtils.getCRS
static< T extends MatsimToplevelContainer &Attributable > String getCRS(T container)
Definition:
ProjectionUtils.java:36
Generated by
1.8.13