formatting
This commit is contained in:
parent
05a32a18e5
commit
e45948c2ab
1 changed files with 11 additions and 11 deletions
22
src/wkb.cpp
22
src/wkb.cpp
|
@ -67,7 +67,7 @@ public:
|
||||||
wkbGeometryCollectionZ=1007
|
wkbGeometryCollectionZ=1007
|
||||||
};
|
};
|
||||||
|
|
||||||
wkb_reader(const char* wkb,unsigned size, wkbFormat format)
|
wkb_reader(const char* wkb, unsigned size, wkbFormat format)
|
||||||
: wkb_(wkb),
|
: wkb_(wkb),
|
||||||
size_(size),
|
size_(size),
|
||||||
pos_(0),
|
pos_(0),
|
||||||
|
@ -76,16 +76,16 @@ public:
|
||||||
// try to determine WKB format automatically
|
// try to determine WKB format automatically
|
||||||
if (format_ == wkbAuto)
|
if (format_ == wkbAuto)
|
||||||
{
|
{
|
||||||
if (size >= 44
|
if (size >= 44
|
||||||
&& (unsigned char)(wkb_[0]) == (unsigned char)(0x00)
|
&& (unsigned char)(wkb_[0]) == (unsigned char)(0x00)
|
||||||
&& (unsigned char)(wkb_[38]) == (unsigned char)(0x7C))
|
&& (unsigned char)(wkb_[38]) == (unsigned char)(0x7C))
|
||||||
{
|
{
|
||||||
format_ = wkbSpatiaLite;
|
format_ = wkbSpatiaLite;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
format_ = wkbGeneric;
|
format_ = wkbGeneric;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (format_)
|
switch (format_)
|
||||||
|
|
Loading…
Reference in a new issue