#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#include <errno.h>
#include "smrender.h"
#include "smcore.h"
#include "rdata.h"
Data Structures | |
struct | ostream |
Macros | |
#define | TBUFLEN 24 |
Functions | |
int | bs_safe_put_xml (FILE *f, const bstring_t *b) |
int | print_onode (FILE *f, const osm_obj_t *o) |
int | print_tree (osm_obj_t *o, struct ostream *os) |
size_t | save_osm0 (FILE *f, bx_node_t *tree, const struct bbox *bb, const char *info) |
size_t | save_osm (const char *s, bx_node_t *tree, const struct bbox *bb, const char *info) |
This file contains the functions for output of XML/OSM data.
int bs_safe_put_xml | ( | FILE * | f, |
const bstring_t * | b | ||
) |
Safely output a literal string, i.e. it replaces '<' and '"'.
Save OSM data of tree to file s.
s | Filename of output file. |
Pointer | to bxtree containing the information. |
bb | Optional bounding box (written to tag <bounds>). |
info | Optional information written to the header as comment (). |
Save OSM data of tree to file f.
s | FILE handle of output file. |
Pointer | to bxtree containing the information. |
bb | Optional bounding box (written to tag <bounds>). |
info | Optional information written to the header as comment (). |