tinyows 1.2.2
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <libxml/xmlreader.h>
#include "ows.h"
Go to the source code of this file.
Functions | |
static void | ows_parse_config_tinyows (ows *o, xmlTextReaderPtr r) |
static void | ows_parse_config_contact (ows *o, xmlTextReaderPtr r) |
static void | ows_parse_config_metadata (ows *o, xmlTextReaderPtr r) |
static void | ows_parse_config_abstract (ows *o, xmlTextReaderPtr r) |
static void | ows_parse_config_limits (ows *o, xmlTextReaderPtr r) |
static void | ows_parse_config_pg (ows *o, xmlTextReaderPtr r) |
static ows_layer * | ows_parse_config_layer_get_parent (const ows *o, int depth) |
static void | ows_parse_config_layer (ows *o, xmlTextReaderPtr r) |
static void | ows_config_check (ows *o) |
static void | ows_parse_config_xml (ows *o, const char *filename) |
void | ows_parse_config (ows *o, const char *filename) |
|
static |
Definition at line 597 of file ows_config.c.
References Ows::metadata, Ows_meta::name, Ows::online_resource, ows_error(), OWS_ERROR_CONFIG_FILE, ows_version_check(), Ows::pg_dsn, Ows::schema_dir, Ows_meta::title, Buffer::use, and Ows::wfs_default_version.
Referenced by ows_parse_config().
void ows_parse_config | ( | ows * | o, |
const char * | filename ) |
Definition at line 702 of file ows_config.c.
References Ows::exit, Ows::mapfile, ows_config_check(), ows_parse_config_mapfile(), and ows_parse_config_xml().
Referenced by main().
|
static |
Definition at line 299 of file ows_config.c.
References Ows_meta::abstract, buffer_add_str(), buffer_init(), and Ows::metadata.
Referenced by ows_parse_config_xml().
|
static |
Definition at line 131 of file ows_config.c.
References Ows_contact::address, buffer_add_str(), buffer_init(), Ows_contact::city, Ows::contact, Ows_contact::country, Ows_contact::email, Ows_contact::fax, Ows_contact::hours, Ows_contact::indiv_name, Ows_contact::instructions, Ows_contact::name, Ows_contact::online_resource, ows_contact_init(), Ows_contact::phone, Ows_contact::position, Ows_contact::postcode, Ows_contact::site, and Ows_contact::state.
Referenced by ows_parse_config_xml().
|
static |
Definition at line 410 of file ows_config.c.
References Ows_layer::abstract, Buffer::buf, buffer_add_head(), buffer_add_head_str(), buffer_add_str(), buffer_copy(), buffer_init(), Ows_layer::depth, Ows_layer::exclude_items, Ows_layer::geobbox, Ows_layer::gml_ns, Ows_layer::include_items, Ows_layer::keywords, Ows::layers, list_add_list(), list_explode_str(), list_explode_str_trim(), list_free(), list_init(), Ows_layer::name, Ows_layer::name_no_uri, Ows_layer::name_prefix, Ows_layer::ns_prefix, Ows_layer::ns_uri, ows_geobbox_copy(), ows_geobbox_init(), ows_geobbox_set_from_str(), ows_layer_init(), ows_layer_list_add(), ows_parse_config_layer_get_parent(), Ows_layer::parent, Ows_layer::pkey, Ows_layer::pkey_sequence, Ows_layer::retrievable, Ows_layer_storage::schema, Ows_layer::srid, Ows_layer::storage, Ows_layer_storage::table, Ows_layer::title, Buffer::use, and Ows_layer::writable.
Referenced by ows_parse_config_xml().
Definition at line 388 of file ows_config.c.
References Ows_layer::depth, Ows_layer_list::last, Ows_layer_node::layer, Ows::layers, Ows_layer::parent, and Ows_layer_node::prev.
Referenced by ows_parse_config_layer().
|
static |
Definition at line 322 of file ows_config.c.
References Ows::max_features, Ows::max_geobbox, ows_geobbox_free(), ows_geobbox_init(), and ows_geobbox_set_from_str().
Referenced by ows_parse_config_xml().
|
static |
Definition at line 251 of file ows_config.c.
References Ows_meta::access_constraints, buffer_add_str(), buffer_init(), Ows_meta::fees, Ows_meta::keywords, list_explode_str(), Ows::metadata, Ows_meta::name, ows_metadata_init(), and Ows_meta::title.
Referenced by ows_parse_config_xml().
|
static |
Definition at line 349 of file ows_config.c.
References buffer_add_str(), Ows::db_encoding, OWS_DEFAULT_DB_ENCODING, Ows::pg_dsn, and Buffer::use.
Referenced by ows_parse_config_xml().
|
static |
Definition at line 36 of file ows_config.c.
References buffer_add_str(), buffer_init(), Ows::check_schema, Ows::check_valid_geom, Ows::degree_precision, Ows::display_bbox, Ows::encoding, Ows::estimated_extent, Ows::expose_pk, Ows::log_file, Ows::log_level, Ows::meter_precision, Ows::online_resource, OWS_DEFAULT_XML_ENCODING, ows_version_set_str(), Ows::schema_dir, and Ows::wfs_default_version.
Referenced by ows_parse_config_xml().
|
static |
Definition at line 644 of file ows_config.c.
References Ows::layers, ows_error(), OWS_ERROR_CONFIG_FILE, ows_layer_list_init(), ows_parse_config_abstract(), ows_parse_config_contact(), ows_parse_config_layer(), ows_parse_config_limits(), ows_parse_config_metadata(), ows_parse_config_pg(), and ows_parse_config_tinyows().
Referenced by ows_parse_config().