Add command line options for zoom, title, layer name, name, output dir

This commit is contained in:
Eric Fischer
2014-09-25 12:09:31 -07:00
parent 0b23e65803
commit 201708f19c
3 changed files with 77 additions and 24 deletions
+2 -2
View File
@@ -380,7 +380,7 @@ int simplify_lines(struct draw *geom, int n, int z, int detail) {
return out;
}
long long write_tile(struct index *start, struct index *end, char *metabase, unsigned *file_bbox, int z, unsigned tx, unsigned ty, int detail, int basezoom, struct pool *file_keys, char *layername) {
long long write_tile(struct index *start, struct index *end, char *metabase, unsigned *file_bbox, int z, unsigned tx, unsigned ty, int detail, int basezoom, struct pool *file_keys, char *layername, char *outdir) {
GOOGLE_PROTOBUF_VERIFY_VERSION;
mapnik::vector::tile tile;
@@ -526,7 +526,7 @@ long long write_tile(struct index *start, struct index *end, char *metabase, uns
exit(EXIT_FAILURE);
}
const char *prefix = "tiles";
const char *prefix = outdir;
char path[strlen(prefix) + 200];
mkdir(prefix, 0777);