mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2025-03-11 18:32:20 +01:00
Compare commits
2 Commits
0c63b66544
...
08d211204e
Author | SHA1 | Date | |
---|---|---|---|
08d211204e | |||
9401f66ad7 |
17
README.md
17
README.md
@ -84,16 +84,19 @@ nmake
|
|||||||
|
|
||||||
## Install
|
## Install
|
||||||
Copy the plugin to the system Qt image plugins path to make it work. You may
|
Copy the plugin to the system Qt image plugins path to make it work. You may
|
||||||
also set the QT_PLUGIN_PATH system variable before starting the application. For
|
also set the QT_PLUGIN_PATH system variable before starting the application.
|
||||||
Linux, there are RPM and DEB [packages](https://build.opensuse.org/project/show/home:tumic:QtPBFImagePlugin)
|
For Linux, there are RPM and DEB [packages](https://build.opensuse.org/project/show/home:tumic:QtPBFImagePlugin)
|
||||||
for most common distros available on OBS.
|
for most common distros available on OBS.
|
||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
* Only data that is part of the PBF file is displayed. External layers defined in the
|
* Only data that is part of the PBF file is displayed. External layers defined
|
||||||
style are ignored.
|
in the style are ignored.
|
||||||
* Text PBF features must have a unique id (OpenMapTiles >= v3.7) for the text layout
|
* Text PBF features must have a unique id (OpenMapTiles >= v3.7) for the text
|
||||||
algorithm to work properly.
|
layout algorithm to work properly. Additionally, the tile buffer must be large
|
||||||
* Expressions are not supported in the styles, only property functions are implemented.
|
enough to contain all neighboring text features overlapping to the tile bounds
|
||||||
|
(only data from the tile itself can be drawn to the resulting image).
|
||||||
|
* Expressions are not supported in the styles, only property functions are
|
||||||
|
implemented.
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
[Changelog](https://build.opensuse.org/projects/home:tumic:QtPBFImagePlugin/packages/QtPBFImagePlugin/files/qt6-qtpbfimageformat.changes)
|
[Changelog](https://build.opensuse.org/projects/home:tumic:QtPBFImagePlugin/packages/QtPBFImagePlugin/files/qt6-qtpbfimageformat.changes)
|
||||||
|
@ -27,8 +27,8 @@ static inline qint64 zigzag64decode(quint64 value)
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
static bool varint(CTX &ctx, T &val)
|
static bool varint(CTX &ctx, T &val)
|
||||||
{
|
{
|
||||||
|
unsigned int shift = 0;
|
||||||
val = 0;
|
val = 0;
|
||||||
uint shift = 0;
|
|
||||||
|
|
||||||
while (ctx.bp < ctx.be) {
|
while (ctx.bp < ctx.be) {
|
||||||
val |= ((quint8)*ctx.bp & 0x7F) << shift;
|
val |= ((quint8)*ctx.bp & 0x7F) << shift;
|
||||||
@ -148,11 +148,11 @@ static bool skip(CTX &ctx)
|
|||||||
|
|
||||||
static bool value(CTX &ctx, QVariant &val)
|
static bool value(CTX &ctx, QVariant &val)
|
||||||
{
|
{
|
||||||
qint32 len;
|
|
||||||
QByteArray ba;
|
QByteArray ba;
|
||||||
quint64 num;
|
quint64 num;
|
||||||
double dnum;
|
double dnum;
|
||||||
float fnum;
|
float fnum;
|
||||||
|
qint32 len;
|
||||||
|
|
||||||
if (!length(ctx, len))
|
if (!length(ctx, len))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user