ODHeader*/
| 73 | |
| 74 | /*ODHeader*/ |
| 75 | bool ODHeader::parse(XMLElement* element) { |
| 76 | ELE_CKECK; |
| 77 | |
| 78 | north = element->DoubleAttribute("north"); |
| 79 | south = element->DoubleAttribute("south"); |
| 80 | east = element->DoubleAttribute("east"); |
| 81 | west = element->DoubleAttribute("west"); |
| 82 | if (element->Attribute("vendor")) { |
| 83 | vendor = element->Attribute("vendor"); |
| 84 | } |
| 85 | if (element->Attribute("revMajor")) { |
| 86 | remajor = element->Int64Attribute("revMajor"); |
| 87 | } |
| 88 | if (element->Attribute("revMinor")) { |
| 89 | reminor = element->Int64Attribute("revMinor"); |
| 90 | } |
| 91 | if (element->Attribute("date")) { |
| 92 | date = element->Attribute("date"); |
| 93 | } |
| 94 | XMLElement* geo_ref = element->FirstChildElement("geoReference"); |
| 95 | if (geo_ref) coord_str = geo_ref->GetText(); |
| 96 | |
| 97 | return true; |
| 98 | } |
| 99 | |
| 100 | void ODHeader::getBBox(double& n, double& s, double& e, double& w) { |
| 101 | n = north; |
nothing calls this directly
no test coverage detected