Changeset 1223
- Timestamp:
- 07/08/09 16:52:22 (14 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
plugins/input/shape/dbffile.cpp (modified) (1 diff)
-
plugins/input/shape/shapefile.hpp (modified) (5 diffs)
-
src/wkb.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/input/shape/dbffile.cpp
r1213 r1223 43 43 num_fields_(0), 44 44 record_length_(0), 45 file_(file_name ),45 file_(file_name,std::ios::binary), 46 46 record_(0) 47 47 { -
trunk/plugins/input/shape/shapefile.hpp
r1213 r1223 95 95 int read_ndr_integer() 96 96 { 97 int val;97 boost::int32_t val; 98 98 read_int32_ndr(&data[pos],val); 99 99 pos+=4; … … 103 103 int read_xdr_integer() 104 104 { 105 int val;105 boost::int32_t val; 106 106 read_int32_xdr(&data[pos],val); 107 107 pos+=4; … … 148 148 149 149 shape_file(std::string const& file_name) 150 : file_(file_name ) {}150 : file_(file_name,std::ios::binary) {} 151 151 152 152 ~shape_file() {} … … 178 178 char b[4]; 179 179 file_.read(b, 4); 180 int val;180 boost::int32_t val; 181 181 read_int32_xdr(b,val); 182 182 return val; … … 187 187 char b[4]; 188 188 file_.read(b,4); 189 int val;189 boost::int32_t val; 190 190 read_int32_ndr(b,val); 191 191 return val; -
trunk/src/wkb.cpp
r1213 r1223 153 153 int read_integer() 154 154 { 155 int n;155 boost::int32_t n; 156 156 if (needSwap_) 157 157 {
