{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Class: Las20Stream","description":"Accelerate E&P application development and protect your innovation by consuming our Data and Domain APIs / Platform APIs.","lang":"en-US","meta":[{"name":"robots","content":"noindex"}],"llmstxt":{"hide":true,"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/readme"},"children":["API"]}," / ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit"},"children":["geotoolkit"]}," / ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.welllog"},"children":["welllog"]}," / ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.welllog.data-4"},"children":["data"]}," / ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.welllog.data-4.las"},"children":["las"]}," / ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.welllog.data-4.las.las20stream"},"children":["Las20Stream"]}," / Las20Stream"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"class-las20stream","__idx":0},"children":["Class: Las20Stream"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.welllog.data-4.las"},"children":["las"]},".",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.welllog.data-4.las.las20stream"},"children":["Las20Stream"]},".Las20Stream"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This class implements a ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://www.cwls.org/wp-content/uploads/2014/09/LAS_20_Update_Jan2014.pdf"},"children":["LAS 2.0"]}," parser using a stream paradigm.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","This parser implements an API similar to ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20.las20"},"children":["Las20"]}," for convenience.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","Therefore it will provide ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.lassection.lassection"},"children":["las sections"]}," and ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.lassectiongroup.lassectiongroup"},"children":["las section group"]}," like a regular ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.lasparser.lasparser"},"children":["LASParser"]},".",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","However this stream parser has to be 'opened' to trigger the loading of the stream and the parsing of the sections.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","When opening the stream, only the header sections will be loaded and parsed (Version, Well, Curve, Parameter, Other).",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","The data section won't be loaded nor parsed by default.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","As a result, 'bulk' access to the data using (for example) 'group.getCurveData' will not work.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","However the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.lasstreamdatasection.lasstreamdatasection"},"children":["LasStreamDataSection"]}," provides new ways of accessing the data like getDataInRange(startDepth, endDepth).",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","Note that, as the LAS 2.0 format has no index, this parser will index it on the fly.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","As a consequence, initial getDataInRange calls on a this parser may take longer than subsequent ones.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","Also, to access the data in a not stream based way, it can be forced to read its content fully during the open().",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","This is discouraged as the purpose of the LasStreamParser is to avoid loading the whole LAS data in memory (to prevent memory issues for large datasets).",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","If opened in this 'full load' mode, the 'bulk' access to the data will work.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","See the documentation of the open() function for more details."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"hierarchy","__idx":1},"children":["Hierarchy"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Las20Stream"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["↳ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Las20Stream"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"table-of-contents","__idx":2},"children":["Table of contents"]},{"$$mdtype":"Tag","name":"details","attributes":{"open":"true"},"children":[{"$$mdtype":"Tag","name":"summary","attributes":{},"children":[{"$$mdtype":"Tag","name":"span","attributes":{"style":{"fontSize":"1.25em","fontWeight":"bold"}},"children":["Constructors"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.welllog.data-4.las.las20stream.las20stream#new-las20streamoptions"},"children":["new Las20Stream(options)"]}]}]}]},{"$$mdtype":"Tag","name":"details","attributes":{"open":"true"},"children":[{"$$mdtype":"Tag","name":"summary","attributes":{},"children":[{"$$mdtype":"Tag","name":"span","attributes":{"style":{"fontSize":"1.25em","fontWeight":"bold"}},"children":["Methods"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.welllog.data-4.las.las20stream.las20stream#getclassname"},"children":["getClassName"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.welllog.data-4.las.las20stream.las20stream#getsectiongroups"},"children":["getSectionGroups"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.welllog.data-4.las.las20stream.las20stream#getsections"},"children":["getSections"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.welllog.data-4.las.las20stream.las20stream#open"},"children":["open"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.welllog.data-4.las.las20stream.las20stream#getclassname-1"},"children":["getClassName"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.welllog.data-4.las.las20stream.las20stream#islas20"},"children":["isLAS20"]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"contents","__idx":3},"children":["Contents"]},{"$$mdtype":"Tag","name":"details","attributes":{"open":"true"},"children":[{"$$mdtype":"Tag","name":"summary","attributes":{},"children":[{"$$mdtype":"Tag","name":"span","attributes":{"style":{"fontSize":"1.25em","fontWeight":"bold"}},"children":["Constructors"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"new-las20streamoptions","__idx":4},"children":["new Las20Stream(options)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["new Las20Stream"]},"(",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["options"]},")"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Constructor"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"parameters","__idx":5},"children":["Parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"30%","data-label":"Name"},"children":["Name "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"20%","data-label":"Type"},"children":["Type "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"50%","data-label":"Description"},"children":["Description "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["options"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.las.las20stream.las20stream#options"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Options"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The options"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from","__idx":6},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream"},"children":["Las20Stream"]}]}]},{"$$mdtype":"Tag","name":"details","attributes":{"open":"true"},"children":[{"$$mdtype":"Tag","name":"summary","attributes":{},"children":[{"$$mdtype":"Tag","name":"span","attributes":{"style":{"fontSize":"1.25em","fontWeight":"bold"}},"children":["Methods"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"getclassname","__idx":7},"children":["getClassName"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["▸ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["getClassName"]},"(): ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"returns","__idx":8},"children":["Returns"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from-1","__idx":9},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream"},"children":["Las20Stream"]},".",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream#getclassname"},"children":["getClassName"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"getsectiongroups","__idx":10},"children":["getSectionGroups"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["▸ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["getSectionGroups"]},"(): ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.lassectiongroup.lassectiongroup"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LasSectionGroup"]}]},"[]"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Gets all the section groups. Doesn't include sections not in groups."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"returns-1","__idx":11},"children":["Returns"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.lassectiongroup.lassectiongroup"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LasSectionGroup"]}]},"[]"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["array of LasSectionGroup"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from-2","__idx":12},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream"},"children":["Las20Stream"]},".",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream#getsectiongroups"},"children":["getSectionGroups"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"getsections","__idx":13},"children":["getSections"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["▸ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["getSections"]},"(): ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.lasparametersection.lasparametersection"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LasParameterSection"]}]},"[]"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Returns all sections not part of a group"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"returns-2","__idx":14},"children":["Returns"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.lasparametersection.lasparametersection"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LasParameterSection"]}]},"[]"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["array of LasSection"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from-3","__idx":15},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream"},"children":["Las20Stream"]},".",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream#getsections"},"children":["getSections"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"open","__idx":16},"children":["open"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["▸ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["open"]},"(",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fullload"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["success?"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error?"]},"): ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Promise"]},"<",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Las20Stream"]}]},">"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Opens the LAS 2.0 stream and parse its headers.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","The stream can also be opened in 'legacy mode' in order to be accessed like a non-stream based parser.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","However this is discouraged as it can lead to memory issues for huge dataset.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","Once this stream has been opened, its 'header' sections can be accessed using getSections().",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","See example for accessing the data in either 'legacy/non-stream' mode or 'stream' mode.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","Note that, for convenience, this function returns a Promise AND accepts callbacks (that do not contribute to the returned promise).",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","One is free to use either the Promise or the callback to be 'notified' when the stream is ready.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Example"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"ts","header":{"controls":{"copy":{}}},"source":"import {Las20Stream} from '@int/geotoolkit/las/Las20Stream';\nimport {BrowserFileStream} from '@int/geotoolkit/util/stream/BrowserFileStream';\nimport {LineReader} from '@int/geotoolkit/util/stream/LineReader';\n\nnew Las20Stream({\n'reader': new LineReader({\n'stream': new BrowserFileStream({\n'file': file\n})\n})\n})\n.open(true)\n.then((stream) => {\n// load table\n}).catch((e) => {\n// error\n});\n","lang":"ts"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"parameters-1","__idx":17},"children":["Parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"30%","data-label":"Name"},"children":["Name "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"20%","data-label":"Type"},"children":["Type "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"50%","data-label":"Description"},"children":["Description "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fullload"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["boolean"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["If true, the stream will be fully read and parsed during its opening. (This is discouraged)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Optional"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["success"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.las.lasstreamparser.lasstreamparser#callback"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Callback"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A function called when the headers have been parsed and the stream is ready"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Optional"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.las.lasstreamparser.lasstreamparser#callback"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Callback"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A function called if the header parsing failed"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"returns-3","__idx":18},"children":["Returns"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Promise"]},"<",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Las20Stream"]}]},">"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A promise fulfilled when the headers have been parsed and the stream is ready"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from-4","__idx":19},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream"},"children":["Las20Stream"]},".",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream#open"},"children":["open"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"getclassname-1","__idx":20},"children":["getClassName"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["▸ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Static"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["getClassName"]},"(): ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"returns-4","__idx":21},"children":["Returns"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from-5","__idx":22},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream"},"children":["Las20Stream"]},".",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream#getclassname-1"},"children":["getClassName"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"islas20","__idx":23},"children":["isLAS20"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["▸ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Static"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["isLAS20"]},"(",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["reader"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["success?"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error?"]},"): ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Promise"]},"<{ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["details"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}," ; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["isLAS20"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["boolean"]},"  }>"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tests if the given reader looks like a LAS 2.0",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","Note that a success does not mean that the given reader is a LAS 2.0 but only that the type has been detected.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","To find out if it is a LAS 2.0, one should look at the result given in the promise/callback.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{isLAS20:true, details:\"Mode information about the isLAS20 result\"}"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","Note that, for convenience, this function returns a Promise AND accepts callbacks (that do not contribute to the returned promise).",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","One is free to use either the Promise or the callback to be 'notified' when the stream is ready.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Example"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"ts","header":{"controls":{"copy":{}}},"source":"Las20Stream.isLAS20(lineReader).then( (result) => {\nif (result['isLAS20'] === true) {\n// Can be parsed using Las20Stream\n} else {\n// Can't be parsed using Las20Stream\n}\n}).catch((e) => {\n// Can't be parsed using Las20Stream\n});\n","lang":"ts"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"parameters-2","__idx":24},"children":["Parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"30%","data-label":"Name"},"children":["Name "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"20%","data-label":"Type"},"children":["Type "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"50%","data-label":"Description"},"children":["Description "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["reader"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.util.stream.linereader.linereader"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LineReader"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The reader to test"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Optional"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["success"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.las.lasstreamparser.lasstreamparser#callback"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Callback"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A function called when the nature of the given reader has been detected"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Optional"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.las.lasstreamparser.lasstreamparser#callback"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Callback"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A function called if a major error occurs"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"returns-5","__idx":25},"children":["Returns"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Promise"]},"<{ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["details"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}," ; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["isLAS20"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["boolean"]},"  }>"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A promise fulfilled when the nature of the given reader has been detected"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from-6","__idx":26},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream"},"children":["Las20Stream"]},".",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/classes/geotoolkit.las.las20stream.las20stream#islas20"},"children":["isLAS20"]}]}]}]},"headings":[{"value":"Class: Las20Stream","id":"class-las20stream","depth":1},{"value":"Hierarchy","id":"hierarchy","depth":2},{"value":"Table of contents","id":"table-of-contents","depth":2},{"value":"Contents","id":"contents","depth":2},{"value":"new Las20Stream(options)","id":"new-las20streamoptions","depth":4},{"value":"Parameters","id":"parameters","depth":4},{"value":"Inherited from","id":"inherited-from","depth":4},{"value":"getClassName","id":"getclassname","depth":4},{"value":"Returns","id":"returns","depth":4},{"value":"Inherited from","id":"inherited-from-1","depth":4},{"value":"getSectionGroups","id":"getsectiongroups","depth":4},{"value":"Returns","id":"returns-1","depth":4},{"value":"Inherited from","id":"inherited-from-2","depth":4},{"value":"getSections","id":"getsections","depth":4},{"value":"Returns","id":"returns-2","depth":4},{"value":"Inherited from","id":"inherited-from-3","depth":4},{"value":"open","id":"open","depth":4},{"value":"Parameters","id":"parameters-1","depth":4},{"value":"Returns","id":"returns-3","depth":4},{"value":"Inherited from","id":"inherited-from-4","depth":4},{"value":"getClassName","id":"getclassname-1","depth":4},{"value":"Returns","id":"returns-4","depth":4},{"value":"Inherited from","id":"inherited-from-5","depth":4},{"value":"isLAS20","id":"islas20","depth":4},{"value":"Parameters","id":"parameters-2","depth":4},{"value":"Returns","id":"returns-5","depth":4},{"value":"Inherited from","id":"inherited-from-6","depth":4}],"frontmatter":{"seo":{"title":"Class: Las20Stream"}},"lastModified":"2026-02-11T19:54:32.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/solutions/geotoolkit/apis/classes/geotoolkit.welllog.data-4.las.las20stream.las20stream","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}