mirror of
https://github.com/systemed/tilemaker.git
synced 2026-05-09 01:40:01 -04:00
32 lines
981 B
C++
32 lines
981 B
C++
/*! \file */
|
|
#ifndef _READ_SHP_H
|
|
#define _READ_SHP_H
|
|
|
|
#include <unordered_map>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <map>
|
|
#include "geom.h"
|
|
#include "output_object.h"
|
|
#include "osm_lua_processing.h"
|
|
#include "kaguya.hpp"
|
|
#include "attribute_store.h"
|
|
|
|
// Shapelib
|
|
#include "shapefil.h"
|
|
|
|
void fillPointArrayFromShapefile(std::vector<Point> *points, SHPObject *shape, uint part);
|
|
|
|
/// Read requested attributes from a shapefile, and encode into an OutputObject
|
|
void addShapefileAttributes(DBFHandle &dbf, OutputObject &oo, int recordNum, std::unordered_map<int,std::string> &columnMap, std::unordered_map<int,int> &columnTypeMap);
|
|
|
|
/// Read shapefile, and create OutputObjects for all objects within the specified bounding box
|
|
void readShapefile(const Box &clippingBox,
|
|
class LayerDefinition &layers,
|
|
uint baseZoom, uint layerNum,
|
|
class ShpMemTiles &shpMemTiles,
|
|
OsmLuaProcessing &osmLuaProcessing);
|
|
|
|
#endif //_READ_SHP_H
|
|
|