InemaPdfParser

marola.water.InemaPdfParser

Parses INEMA's (Bahia) real water-quality bulletin PDF — fetched via geraBoletim?idcampanha=N, the only mechanism confirmed live for this institute (MIP-0031 §4.3/§11: no JSON/HTML alternative exists, INEMA's own search form just wraps a GET to this same PDF endpoint) — into rows of (point code, point name, description, category).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class Row(code: String, pointName: String, description: String, category: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def parseTable(pdfBytes: Array[Byte]): List[Row]

Pure; unit-tested against the real captured fixture (InemaPdfParserSpec).

Pure; unit-tested against the real captured fixture (InemaPdfParserSpec).

Attributes