Skip to content

mmichelli/sosi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SOSi (Node.js)

Streaming .sos files. Very basic functionality

var  join = require('path').join
  , file = join(__dirname, "data",'Grimstad Vest-Landvik 1.sos')
  , dir = join(__dirname, "data")
  , SOSI = require('../');
  
  
   var stream = new SOSI.stream(dir);   
   stream.on("data",function(data) {
        console.log(data); 
   });


   var streamFile = new SOSI.streamFile(file);   
   streamFile.on("data",function(data) {
        console.log(data);
   });
 
 
  
  

The objects returned are:

expected = { type: 'punkt',
                     objtype: 'StolpeStor',
                     kvalitet: '96',
                     driftsmerking: '"LB.NAU.MO.S-AG.HOLBE"',
                     'g-nord': '"6467771.091100',
                     'g-øst': '"474086.635900',
                     mastenummer: '"29"',
                     plassering: '"GRI-LANDVIK"',
                     'nøh': {},
                     coordinates: [ '646777109', '47408663', '0' ] };
                     

About

Stream SOSI geospatial vector data files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published