Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.HODE | ||
..TEGNSETT ISO8859-1 | ||
..SOSI-VERSJON 8.1 | ||
..DATAKATALOGVERSJON 2.01 | ||
..SOSINVDB-FORMAT-VERSJON 1.0 | ||
..SOSI-NIVÅ 1 | ||
..TRANSPAR | ||
...KOORDSYS 23 | ||
...ORIGO-NØ 100000 10000 | ||
...ENHET 0.010 | ||
...VERT-DATUM NN54 | ||
..OMRÅDE | ||
...MIN-NØ 7034310 569351 | ||
...MAX-NØ 7034406 569492 | ||
..EIER "Owner" | ||
..PRODUSENT "Producer" | ||
.PUNKT 1: | ||
..OBJTYPE Skiltplate_96 | ||
..PTEMA 0999 | ||
..DATAFANGSTDATO 20131127 | ||
..KVALITET 96 5 0 * * | ||
..SkiltnummerHB-050_5530 7691 | ||
..Ansiktsside_1894 2714 | ||
..Størrelse_1970 4132 | ||
..Skiltform_1892 2855 | ||
..Belysning_1879 3476 | ||
..Folieklasse_1921 2849 | ||
..Klappskilt_8828 11739 | ||
..NØH 2980 11668 995 | ||
..HREF 13692 | ||
.SLUTT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(function (ns) { | ||
"use strict"; | ||
|
||
var assert = assert || buster.assertions.assert; | ||
var refute = refute || buster.assertions.refute; | ||
|
||
buster.testCase('PUNKT coordinate Test', { | ||
|
||
setUp: function () { | ||
|
||
$.ajax({ | ||
async: false, | ||
url: buster.env.contextPath + "/punktcoordinate.sos", | ||
success:_.bind(function(data) { | ||
this.sosidata = data; | ||
}, this) | ||
}); | ||
this.parser = new ns.Parser(); | ||
}, | ||
|
||
"NØH and coordinates on same line": function () { | ||
var sosidata = this.parser.parse(this.sosidata); | ||
var feature1 = sosidata.features.at(0); | ||
assert(feature1.geometry instanceof ns.Point); | ||
assert.equals(feature1.geometry.x, 10116.68); | ||
assert.equals(feature1.geometry.y, 100029.8); | ||
} | ||
}); | ||
}(SOSI)); |