2
2
using System . Drawing ;
3
3
using System . Linq ;
4
4
using System . Runtime . Serialization ;
5
+ using FlowMatters . Source . Veneer . RemoteScripting ;
5
6
using FlowMatters . Source . WebServer ;
6
7
using Microsoft . CSharp . RuntimeBinder ;
7
8
using RiverSystem ;
@@ -48,7 +49,7 @@ public GeoJSONFeature(Node n,RiverSystemScenario scenario,bool useSchematicLocat
48
49
properties . Add ( "name" , n . Name ) ;
49
50
properties . Add ( FeatureTypeProperty , "node" ) ;
50
51
Coordinate loc = n . location ;
51
- var schematic = GetSchematic ( scenario ) ;
52
+ var schematic = ScriptHelpers . GetSchematic ( scenario ) ;
52
53
if ( schematic != null )
53
54
{
54
55
PointF schematicLocation = SchematicLocationForNode ( n , schematic ) ;
@@ -67,14 +68,6 @@ private static PointF SchematicLocationForNode(TIME.DataTypes.NodeLinkNetwork.No
67
68
return schematic . ExistingFeatureShapeProperties . Where ( shape=> shape . Feature == n ) . Select ( shape=> shape . Location ) . FirstOrDefault ( ) ;
68
69
}
69
70
70
- private static SchematicNetworkConfigurationPersistent GetSchematic ( RiverSystemScenario scenario )
71
- {
72
- object tmp ;
73
- scenario . AuxiliaryInformation . TryGetValue ( SchematicNetworkControl . AUX_CONFIG , out tmp ) ;
74
- SchematicNetworkConfigurationPersistent schematic = tmp as SchematicNetworkConfigurationPersistent ;
75
- return schematic ;
76
- }
77
-
78
71
private static string ResourceName ( Node n )
79
72
{
80
73
object o = RetrieveNodeModel ( n ) ?? ( object ) n . FlowPartitioning ;
@@ -114,7 +107,7 @@ public GeoJSONFeature(Link l, RiverSystemScenario scenario, bool useSchematicLoc
114
107
115
108
if ( useSchematicLocation )
116
109
{
117
- var schematic = GetSchematic ( scenario ) ;
110
+ var schematic = ScriptHelpers . GetSchematic ( scenario ) ;
118
111
if ( scenario != null )
119
112
{
120
113
0 commit comments