Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
3f175671
Commit
3f175671
authored
Aug 18, 2021
by
Stefan Schuhbaeck
Browse files
retrun default ReferenceSystem in TraCI
parent
65888632
Pipeline
#661881
failed with stages
in 4 minutes and 59 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
VadereManager/src/org/vadere/manager/traci/commandHandler/SimulationCommandHandler.java
View file @
3f175671
...
...
@@ -389,6 +389,8 @@ public class SimulationCommandHandler extends CommandHandler<SimulationVar> {
ReferenceCoordinateSystem
coord
=
state
.
getScenarioStore
().
getTopography
()
.
getAttributes
().
getReferenceCoordinateSystem
();
// ensure default EPSG:32632 ReferenceCoordinateSystem if nothing is set.
coord
=
coord
==
null
?
new
ReferenceCoordinateSystem
()
:
coord
;
if
(
coord
!=
null
){
coord
.
initialize
();
CompoundObject
o
=
CoordRef
.
asCompoundObject
(
...
...
VadereState/src/org/vadere/state/attributes/scenario/AttributesTopography.java
View file @
3f175671
...
...
@@ -16,7 +16,7 @@ public class AttributesTopography extends Attributes {
* Reference coordinate system to translate vadere topography to world cooridnate systems
* such as UTM zones, or GPS lon lat.
*/
private
ReferenceCoordinateSystem
referenceCoordinateSystem
=
n
ull
;
private
ReferenceCoordinateSystem
referenceCoordinateSystem
=
n
ew
ReferenceCoordinateSystem
()
;
// Getters...
...
...
VadereState/src/org/vadere/state/scenario/ReferenceCoordinateSystem.java
View file @
3f175671
...
...
@@ -48,10 +48,6 @@ public class ReferenceCoordinateSystem {
*/
private
VPoint
translation
=
new
VPoint
(
0.0
,
0.0
);
public
ReferenceCoordinateSystem
()
{
this
.
initialized
=
false
;
}
public
ReferenceCoordinateSystem
(
String
epsgCode
,
String
description
,
VPoint
translation
)
{
this
.
epsgCode
=
epsgCode
;
this
.
description
=
description
;
...
...
@@ -59,6 +55,10 @@ public class ReferenceCoordinateSystem {
this
.
initialized
=
false
;
}
public
ReferenceCoordinateSystem
()
{
this
(
"EPSG:32632"
,
"default reference system(EPSG:32632) without offset"
,
new
VPoint
(
0.0
,
0.0
));
}
public
void
initialize
(){
if
(
initialized
)
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment