PHP Класс WkbPolyline, google-map-polyline-encoding-tool
An example class to convert well-known binary files to Google encoded strings
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see
.
Показать файл
Открыть проект
Защищенные свойства (Protected)
Открытые методы
Защищенные методы
Метод |
Описание |
|
chunk ( integer $size = 1 ) : string |
Pulls data directly from file descriptor by given length. |
|
parseWkb ( ) : array |
Extract points from well-known binary |
|
readByte ( ) : integer |
Read single byte from file descriptor. |
|
readDouble ( ) : double |
Read 8 bytes and cast to double. Respects file endianness. |
|
readU32 ( ) : integer |
Read 4 bytes and cast to unsigned integer. Respects file endianness. |
|
Описание методов
Pulls data directly from file descriptor by given length.
encodeFromBlob()
публичный Метод
This method will copy the given blob to memory descriptor. There's better
ways to do this.
encodeFromFile()
публичный Метод
Parse binary file & converts WKB to google encoded string.
parseWkb()
защищенный Метод
Extract points from well-known binary
readByte()
защищенный Метод
Read single byte from file descriptor.
readDouble()
защищенный Метод
Read 8 bytes and cast to double. Respects file endianness.
protected readDouble ( ) : double |
Результат |
double |
|
readU32()
защищенный Метод
Read 4 bytes and cast to unsigned integer. Respects file endianness.
Описание свойств
$cursor защищенное свойство
$endianness защищенное свойство