int main(){ clearCoordinate(); writeCoordinate(6,5,4,3,2,1); writeCoordinate(1,2,3,4,5,6); int* p; p = readCoordinate(); cout << "read:"; for(int i=0; i < 12; i++) { cout << *(p + i); } // std::cout << "\n Test"; return 0; }
void WKBWriter::writeCoordinateSequence(const CoordinateSequence &cs, bool sized) { int size = cs.getSize(); bool is3d=false; if ( cs.getDimension() > 2 && outputDimension > 2) is3d = true; if (sized) writeInt(size); for (int i=0; i<size; i++) writeCoordinate(cs, i, is3d); }
void WKBWriter::writeCoordinateSequence(const CoordinateSequence& cs, bool sized) { std::size_t size = cs.getSize(); bool is3d = false; if(outputDimension > 2) { is3d = true; } if(sized) { writeInt(static_cast<int>(size)); } for(std::size_t i = 0; i < size; i++) { writeCoordinate(cs, i, is3d); } }