Skip to content

Commit 4dfc687

Browse files
committed
viewshedResolution should be an integer value.
1 parent 76356a2 commit 4dfc687

File tree

11 files changed

+114
-111
lines changed

11 files changed

+114
-111
lines changed

DotNet/CesiumLanguageWriter/Generated/ConicSensorCesiumWriter.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public class ConicSensorCesiumWriter : CesiumPropertyWriter<ConicSensorCesiumWri
189189
private readonly Lazy<BooleanCesiumWriter> m_showViewshed = new Lazy<BooleanCesiumWriter>(() => new BooleanCesiumWriter(ShowViewshedPropertyName), false);
190190
private readonly Lazy<ColorCesiumWriter> m_viewshedVisibleColor = new Lazy<ColorCesiumWriter>(() => new ColorCesiumWriter(ViewshedVisibleColorPropertyName), false);
191191
private readonly Lazy<ColorCesiumWriter> m_viewshedOccludedColor = new Lazy<ColorCesiumWriter>(() => new ColorCesiumWriter(ViewshedOccludedColorPropertyName), false);
192-
private readonly Lazy<DoubleCesiumWriter> m_viewshedResolution = new Lazy<DoubleCesiumWriter>(() => new DoubleCesiumWriter(ViewshedResolutionPropertyName), false);
192+
private readonly Lazy<IntegerCesiumWriter> m_viewshedResolution = new Lazy<IntegerCesiumWriter>(() => new IntegerCesiumWriter(ViewshedResolutionPropertyName), false);
193193

194194
/// <summary>
195195
/// Initializes a new instance.
@@ -2765,7 +2765,7 @@ public void WriteViewshedOccludedColorPropertyReference(string identifier, strin
27652765
/// Gets the writer for the <c>viewshedResolution</c> property. The returned instance must be opened by calling the <see cref="CesiumElementWriter.Open"/> method before it can be used for writing. The <c>viewshedResolution</c> property defines the resolution in pixels of the viewshed. If not specified, the default value is 2048.
27662766
/// </summary>
27672767
[NotNull]
2768-
public DoubleCesiumWriter ViewshedResolutionWriter
2768+
public IntegerCesiumWriter ViewshedResolutionWriter
27692769
{
27702770
get { return m_viewshedResolution.Value; }
27712771
}
@@ -2774,7 +2774,7 @@ public DoubleCesiumWriter ViewshedResolutionWriter
27742774
/// Opens and returns the writer for the <c>viewshedResolution</c> property. The <c>viewshedResolution</c> property defines the resolution in pixels of the viewshed. If not specified, the default value is 2048.
27752775
/// </summary>
27762776
[NotNull]
2777-
public DoubleCesiumWriter OpenViewshedResolutionProperty()
2777+
public IntegerCesiumWriter OpenViewshedResolutionProperty()
27782778
{
27792779
OpenIntervalIfNecessary();
27802780
return OpenAndReturn(ViewshedResolutionWriter);
@@ -2784,7 +2784,7 @@ public DoubleCesiumWriter OpenViewshedResolutionProperty()
27842784
/// Writes a value for the <c>viewshedResolution</c> property as a <c>number</c> value. The <c>viewshedResolution</c> property specifies the resolution in pixels of the viewshed. If not specified, the default value is 2048.
27852785
/// </summary>
27862786
/// <param name="value">The value.</param>
2787-
public void WriteViewshedResolutionProperty(double value)
2787+
public void WriteViewshedResolutionProperty(int value)
27882788
{
27892789
using (var writer = OpenViewshedResolutionProperty())
27902790
{
@@ -2797,7 +2797,7 @@ public void WriteViewshedResolutionProperty(double value)
27972797
/// </summary>
27982798
/// <param name="dates">The dates at which the value is specified.</param>
27992799
/// <param name="values">The values corresponding to each date.</param>
2800-
public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<double> values)
2800+
public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<int> values)
28012801
{
28022802
using (var writer = OpenViewshedResolutionProperty())
28032803
{
@@ -2812,7 +2812,7 @@ public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<doubl
28122812
/// <param name="values">The value corresponding to each date.</param>
28132813
/// <param name="startIndex">The index of the first element to write.</param>
28142814
/// <param name="length">The number of elements to write.</param>
2815-
public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<double> values, int startIndex, int length)
2815+
public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<int> values, int startIndex, int length)
28162816
{
28172817
using (var writer = OpenViewshedResolutionProperty())
28182818
{

DotNet/CesiumLanguageWriter/Generated/CustomPatternSensorCesiumWriter.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public class CustomPatternSensorCesiumWriter : CesiumPropertyWriter<CustomPatter
171171
private readonly Lazy<BooleanCesiumWriter> m_showViewshed = new Lazy<BooleanCesiumWriter>(() => new BooleanCesiumWriter(ShowViewshedPropertyName), false);
172172
private readonly Lazy<ColorCesiumWriter> m_viewshedVisibleColor = new Lazy<ColorCesiumWriter>(() => new ColorCesiumWriter(ViewshedVisibleColorPropertyName), false);
173173
private readonly Lazy<ColorCesiumWriter> m_viewshedOccludedColor = new Lazy<ColorCesiumWriter>(() => new ColorCesiumWriter(ViewshedOccludedColorPropertyName), false);
174-
private readonly Lazy<DoubleCesiumWriter> m_viewshedResolution = new Lazy<DoubleCesiumWriter>(() => new DoubleCesiumWriter(ViewshedResolutionPropertyName), false);
174+
private readonly Lazy<IntegerCesiumWriter> m_viewshedResolution = new Lazy<IntegerCesiumWriter>(() => new IntegerCesiumWriter(ViewshedResolutionPropertyName), false);
175175

176176
/// <summary>
177177
/// Initializes a new instance.
@@ -2378,7 +2378,7 @@ public void WriteViewshedOccludedColorPropertyReference(string identifier, strin
23782378
/// Gets the writer for the <c>viewshedResolution</c> property. The returned instance must be opened by calling the <see cref="CesiumElementWriter.Open"/> method before it can be used for writing. The <c>viewshedResolution</c> property defines the resolution in pixels of the viewshed. If not specified, the default value is 2048.
23792379
/// </summary>
23802380
[NotNull]
2381-
public DoubleCesiumWriter ViewshedResolutionWriter
2381+
public IntegerCesiumWriter ViewshedResolutionWriter
23822382
{
23832383
get { return m_viewshedResolution.Value; }
23842384
}
@@ -2387,7 +2387,7 @@ public DoubleCesiumWriter ViewshedResolutionWriter
23872387
/// Opens and returns the writer for the <c>viewshedResolution</c> property. The <c>viewshedResolution</c> property defines the resolution in pixels of the viewshed. If not specified, the default value is 2048.
23882388
/// </summary>
23892389
[NotNull]
2390-
public DoubleCesiumWriter OpenViewshedResolutionProperty()
2390+
public IntegerCesiumWriter OpenViewshedResolutionProperty()
23912391
{
23922392
OpenIntervalIfNecessary();
23932393
return OpenAndReturn(ViewshedResolutionWriter);
@@ -2397,7 +2397,7 @@ public DoubleCesiumWriter OpenViewshedResolutionProperty()
23972397
/// Writes a value for the <c>viewshedResolution</c> property as a <c>number</c> value. The <c>viewshedResolution</c> property specifies the resolution in pixels of the viewshed. If not specified, the default value is 2048.
23982398
/// </summary>
23992399
/// <param name="value">The value.</param>
2400-
public void WriteViewshedResolutionProperty(double value)
2400+
public void WriteViewshedResolutionProperty(int value)
24012401
{
24022402
using (var writer = OpenViewshedResolutionProperty())
24032403
{
@@ -2410,7 +2410,7 @@ public void WriteViewshedResolutionProperty(double value)
24102410
/// </summary>
24112411
/// <param name="dates">The dates at which the value is specified.</param>
24122412
/// <param name="values">The values corresponding to each date.</param>
2413-
public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<double> values)
2413+
public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<int> values)
24142414
{
24152415
using (var writer = OpenViewshedResolutionProperty())
24162416
{
@@ -2425,7 +2425,7 @@ public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<doubl
24252425
/// <param name="values">The value corresponding to each date.</param>
24262426
/// <param name="startIndex">The index of the first element to write.</param>
24272427
/// <param name="length">The number of elements to write.</param>
2428-
public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<double> values, int startIndex, int length)
2428+
public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<int> values, int startIndex, int length)
24292429
{
24302430
using (var writer = OpenViewshedResolutionProperty())
24312431
{

DotNet/CesiumLanguageWriter/Generated/RectangularSensorCesiumWriter.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public class RectangularSensorCesiumWriter : CesiumPropertyWriter<RectangularSen
177177
private readonly Lazy<BooleanCesiumWriter> m_showViewshed = new Lazy<BooleanCesiumWriter>(() => new BooleanCesiumWriter(ShowViewshedPropertyName), false);
178178
private readonly Lazy<ColorCesiumWriter> m_viewshedVisibleColor = new Lazy<ColorCesiumWriter>(() => new ColorCesiumWriter(ViewshedVisibleColorPropertyName), false);
179179
private readonly Lazy<ColorCesiumWriter> m_viewshedOccludedColor = new Lazy<ColorCesiumWriter>(() => new ColorCesiumWriter(ViewshedOccludedColorPropertyName), false);
180-
private readonly Lazy<DoubleCesiumWriter> m_viewshedResolution = new Lazy<DoubleCesiumWriter>(() => new DoubleCesiumWriter(ViewshedResolutionPropertyName), false);
180+
private readonly Lazy<IntegerCesiumWriter> m_viewshedResolution = new Lazy<IntegerCesiumWriter>(() => new IntegerCesiumWriter(ViewshedResolutionPropertyName), false);
181181

182182
/// <summary>
183183
/// Initializes a new instance.
@@ -2535,7 +2535,7 @@ public void WriteViewshedOccludedColorPropertyReference(string identifier, strin
25352535
/// Gets the writer for the <c>viewshedResolution</c> property. The returned instance must be opened by calling the <see cref="CesiumElementWriter.Open"/> method before it can be used for writing. The <c>viewshedResolution</c> property defines the resolution in pixels of the viewshed. If not specified, the default value is 2048.
25362536
/// </summary>
25372537
[NotNull]
2538-
public DoubleCesiumWriter ViewshedResolutionWriter
2538+
public IntegerCesiumWriter ViewshedResolutionWriter
25392539
{
25402540
get { return m_viewshedResolution.Value; }
25412541
}
@@ -2544,7 +2544,7 @@ public DoubleCesiumWriter ViewshedResolutionWriter
25442544
/// Opens and returns the writer for the <c>viewshedResolution</c> property. The <c>viewshedResolution</c> property defines the resolution in pixels of the viewshed. If not specified, the default value is 2048.
25452545
/// </summary>
25462546
[NotNull]
2547-
public DoubleCesiumWriter OpenViewshedResolutionProperty()
2547+
public IntegerCesiumWriter OpenViewshedResolutionProperty()
25482548
{
25492549
OpenIntervalIfNecessary();
25502550
return OpenAndReturn(ViewshedResolutionWriter);
@@ -2554,7 +2554,7 @@ public DoubleCesiumWriter OpenViewshedResolutionProperty()
25542554
/// Writes a value for the <c>viewshedResolution</c> property as a <c>number</c> value. The <c>viewshedResolution</c> property specifies the resolution in pixels of the viewshed. If not specified, the default value is 2048.
25552555
/// </summary>
25562556
/// <param name="value">The value.</param>
2557-
public void WriteViewshedResolutionProperty(double value)
2557+
public void WriteViewshedResolutionProperty(int value)
25582558
{
25592559
using (var writer = OpenViewshedResolutionProperty())
25602560
{
@@ -2567,7 +2567,7 @@ public void WriteViewshedResolutionProperty(double value)
25672567
/// </summary>
25682568
/// <param name="dates">The dates at which the value is specified.</param>
25692569
/// <param name="values">The values corresponding to each date.</param>
2570-
public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<double> values)
2570+
public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<int> values)
25712571
{
25722572
using (var writer = OpenViewshedResolutionProperty())
25732573
{
@@ -2582,7 +2582,7 @@ public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<doubl
25822582
/// <param name="values">The value corresponding to each date.</param>
25832583
/// <param name="startIndex">The index of the first element to write.</param>
25842584
/// <param name="length">The number of elements to write.</param>
2585-
public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<double> values, int startIndex, int length)
2585+
public void WriteViewshedResolutionProperty(IList<JulianDate> dates, IList<int> values, int startIndex, int length)
25862586
{
25872587
using (var writer = OpenViewshedResolutionProperty())
25882588
{

DotNet/CesiumLanguageWriterTests/TestGenerateValidationDocument.cs

+15-15
Original file line numberDiff line numberDiff line change
@@ -1598,8 +1598,8 @@ private void WriteConstantValues()
15981598
}
15991599
using (var w2 = w.OpenViewshedResolutionProperty())
16001600
{
1601-
w2.WriteNumber(9164.0);
1602-
m_extensionsAssertionsWriter.WriteLine(" expect(e.conicSensor.viewshedResolution.getValue(date)).toEqual(9164.0);");
1601+
w2.WriteNumber(9164);
1602+
m_extensionsAssertionsWriter.WriteLine(" expect(e.conicSensor.viewshedResolution.getValue(date)).toEqual(9164);");
16031603
}
16041604
}
16051605
using (var w = packet.OpenCustomPatternSensorProperty())
@@ -1761,8 +1761,8 @@ private void WriteConstantValues()
17611761
}
17621762
using (var w2 = w.OpenViewshedResolutionProperty())
17631763
{
1764-
w2.WriteNumber(25862.0);
1765-
m_extensionsAssertionsWriter.WriteLine(" expect(e.customPatternSensor.viewshedResolution.getValue(date)).toEqual(25862.0);");
1764+
w2.WriteNumber(25862);
1765+
m_extensionsAssertionsWriter.WriteLine(" expect(e.customPatternSensor.viewshedResolution.getValue(date)).toEqual(25862);");
17661766
}
17671767
}
17681768
using (var w = packet.OpenRectangularSensorProperty())
@@ -1929,8 +1929,8 @@ private void WriteConstantValues()
19291929
}
19301930
using (var w2 = w.OpenViewshedResolutionProperty())
19311931
{
1932-
w2.WriteNumber(33690.0);
1933-
m_extensionsAssertionsWriter.WriteLine(" expect(e.rectangularSensor.viewshedResolution.getValue(date)).toEqual(33690.0);");
1932+
w2.WriteNumber(33690);
1933+
m_extensionsAssertionsWriter.WriteLine(" expect(e.rectangularSensor.viewshedResolution.getValue(date)).toEqual(33690);");
19341934
}
19351935
}
19361936
using (var w = packet.OpenFanProperty())
@@ -16375,9 +16375,9 @@ private void WriteSampledValues()
1637516375
}
1637616376
using (var w2 = w.OpenViewshedResolutionProperty())
1637716377
{
16378-
w2.WriteNumber(CreateList(m_documentStartDate, m_documentStopDate), CreateList(38357.0, 30316.0));
16379-
m_extensionsAssertionsWriter.WriteLine(" expect(e.conicSensor.viewshedResolution.getValue(documentStartDate)).toEqual(38357.0);");
16380-
m_extensionsAssertionsWriter.WriteLine(" expect(e.conicSensor.viewshedResolution.getValue(documentStopDate)).toEqual(30316.0);");
16378+
w2.WriteNumber(CreateList(m_documentStartDate, m_documentStopDate), CreateList(38357, 30316));
16379+
m_extensionsAssertionsWriter.WriteLine(" expect(e.conicSensor.viewshedResolution.getValue(documentStartDate)).toEqual(38357);");
16380+
m_extensionsAssertionsWriter.WriteLine(" expect(e.conicSensor.viewshedResolution.getValue(documentStopDate)).toEqual(30316);");
1638116381
}
1638216382
}
1638316383
using (var w = packet.OpenCustomPatternSensorProperty())
@@ -16486,9 +16486,9 @@ private void WriteSampledValues()
1648616486
}
1648716487
using (var w2 = w.OpenViewshedResolutionProperty())
1648816488
{
16489-
w2.WriteNumber(CreateList(m_documentStartDate, m_documentStopDate), CreateList(44590.0, 31959.0));
16490-
m_extensionsAssertionsWriter.WriteLine(" expect(e.customPatternSensor.viewshedResolution.getValue(documentStartDate)).toEqual(44590.0);");
16491-
m_extensionsAssertionsWriter.WriteLine(" expect(e.customPatternSensor.viewshedResolution.getValue(documentStopDate)).toEqual(31959.0);");
16489+
w2.WriteNumber(CreateList(m_documentStartDate, m_documentStopDate), CreateList(44590, 31959));
16490+
m_extensionsAssertionsWriter.WriteLine(" expect(e.customPatternSensor.viewshedResolution.getValue(documentStartDate)).toEqual(44590);");
16491+
m_extensionsAssertionsWriter.WriteLine(" expect(e.customPatternSensor.viewshedResolution.getValue(documentStopDate)).toEqual(31959);");
1649216492
}
1649316493
}
1649416494
using (var w = packet.OpenRectangularSensorProperty())
@@ -16609,9 +16609,9 @@ private void WriteSampledValues()
1660916609
}
1661016610
using (var w2 = w.OpenViewshedResolutionProperty())
1661116611
{
16612-
w2.WriteNumber(CreateList(m_documentStartDate, m_documentStopDate), CreateList(24619.0, 54818.0));
16613-
m_extensionsAssertionsWriter.WriteLine(" expect(e.rectangularSensor.viewshedResolution.getValue(documentStartDate)).toEqual(24619.0);");
16614-
m_extensionsAssertionsWriter.WriteLine(" expect(e.rectangularSensor.viewshedResolution.getValue(documentStopDate)).toEqual(54818.0);");
16612+
w2.WriteNumber(CreateList(m_documentStartDate, m_documentStopDate), CreateList(24619, 54818));
16613+
m_extensionsAssertionsWriter.WriteLine(" expect(e.rectangularSensor.viewshedResolution.getValue(documentStartDate)).toEqual(24619);");
16614+
m_extensionsAssertionsWriter.WriteLine(" expect(e.rectangularSensor.viewshedResolution.getValue(documentStopDate)).toEqual(54818);");
1661516615
}
1661616616
}
1661716617
using (var w = packet.OpenFanProperty())

0 commit comments

Comments
 (0)