assume byteorder arrives in native arch (from postgis), and therefore ensure byteswapping for wkb on big endian systems - closes #515 - TODO check breakage in other plugins as per #516 - thanks Brad Simpson for the report and fix

This commit is contained in:
Dane Springmeyer 2010-02-19 07:50:47 +00:00
parent 484f24d1b1
commit e03c997024
2 changed files with 4 additions and 5 deletions

View file

@ -14,6 +14,8 @@ For a complete change history, see the SVN log.
Mapnik Trunk
------------
- Fixed reading of PostGIS data on Big Endian systems (#515)
- AGG Renderer - Enforced default gamma function on all symbolizers to ensure proper antialiasing
even when gamma is modified on the PolygonSymbolizer. (#512)

View file

@ -78,11 +78,8 @@ namespace mapnik
break;
}
#ifndef MAPNIK_BIG_ENDIAN
needSwap_=byteOrder_?wkbXDR:wkbNDR;
#else
needSwap_=byteOrder_?wkbNDR:wkbXDR;
#endif
// 0 if true (NDR): 1 if false (XDR)
needSwap_ = byteOrder_?wkbXDR:wkbNDR;
}
~wkb_reader() {}