tinyows 1.2.2
|
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include "../ows_define.h"
#include "ows.h"
Go to the source code of this file.
Functions | |
static void | ows_pg (ows *o, char *con_str) |
static ows * | ows_init () |
void | ows_free (ows *o) |
void | ows_log (ows *o, int log_level, const char *log) |
void | ows_usage (ows *o) |
static void | ows_kvp_or_xml (ows *o, char *query) |
int | main (int argc, char *argv[]) |
int main | ( | int | argc, |
char * | argv[] ) |
Definition at line 339 of file ows.c.
References Buffer::buf, buffer_add_str(), buffer_init(), Ows::cgi, cgi_getback_query(), cgi_method_post(), cgi_parse_kvp(), cgi_parse_xml(), Ows::config_file, Ows::exit, Ows::init, list_init(), Ows::mapfile, Ows_request::method, OWS_CONFIG_FILE_PATH, ows_error(), OWS_ERROR_INVALID_PARAMETER_VALUE, OWS_ERROR_REQUEST_HTTP, ows_free(), ows_init(), ows_kvp_or_xml(), ows_layers_storage_fill(), ows_log(), ows_metadata_fill(), OWS_METHOD_KVP, OWS_METHOD_XML, ows_parse_config(), ows_pg(), ows_request_check(), ows_request_free(), ows_request_init(), ows_usage(), Ows::pg_dsn, Ows::psql_requests, Ows_request::request, Ows::request, Ows_request::service, TINYOWS_VERSION, wfs(), WFS, Ows_request::wfs, wfs_request_check(), and wfs_request_init().
void ows_free | ( | ows * | o | ) |
Definition at line 205 of file ows.c.
References array_free(), buffer_free(), Ows::cgi, Ows::config_file, Ows::contact, Ows::db_encoding, Ows::encoding, Ows::layers, list_free(), Ows::log, Ows::log_file, Ows::max_geobbox, Ows::metadata, Ows::online_resource, ows_contact_free(), ows_geobbox_free(), ows_layer_list_free(), ows_metadata_free(), ows_request_free(), ows_version_free(), Ows::pg, Ows::pg_dsn, Ows::postgis_version, Ows::psql_requests, Ows::request, Ows::schema_dir, Ows::schema_wfs_100, Ows::schema_wfs_110, and Ows::wfs_default_version.
Referenced by main().
|
static |
Definition at line 67 of file ows.c.
References buffer_init(), Ows::cgi, Ows::check_schema, Ows::check_valid_geom, Ows::config_file, Ows::contact, Ows::db_encoding, Ows::degree_precision, Ows::display_bbox, Ows::encoding, Ows::estimated_extent, Ows::exit, Ows::expose_pk, Ows::init, Ows::layers, Ows::log, Ows::log_file, Ows::log_level, Ows::mapfile, Ows::max_features, Ows::max_geobbox, Ows::metadata, Ows::meter_precision, Ows::online_resource, Ows::output, ows_version_init(), ows_version_set(), Ows::pg, Ows::pg_dsn, Ows::postgis_version, Ows::psql_requests, Ows::request, Ows::schema_dir, Ows::schema_wfs_100, Ows::schema_wfs_110, and Ows::wfs_default_version.
Referenced by main().
|
static |
Definition at line 303 of file ows.c.
References cgi_method_get(), cgi_method_post(), Ows_request::method, ows_error(), OWS_ERROR_REQUEST_HTTP, OWS_METHOD_KVP, OWS_METHOD_XML, and Ows::request.
Referenced by main().
void ows_log | ( | ows * | o, |
int | log_level, | ||
const char * | log ) |
Definition at line 235 of file ows.c.
References Buffer::buf, Ows::log, Ows::log_file, and Ows::log_level.
Referenced by libxml2_callback(), main(), ows_error(), ows_pg(), ows_psql_exec(), wfs_error_100(), and wfs_error_110().
|
static |
Definition at line 37 of file ows.c.
References Buffer::buf, Ows::db_encoding, ows_error(), OWS_ERROR_CONNECTION_FAILED, ows_log(), ows_psql_postgis_version(), ows_version_get(), Ows::pg, and Ows::postgis_version.
Referenced by main().
void ows_usage | ( | ows * | o | ) |
Definition at line 259 of file ows.c.
References Buffer::buf, Ows::check_schema, Ows::check_valid_geom, Ows::config_file, Ows::db_encoding, Ows::display_bbox, Ows::encoding, Ows::estimated_extent, Ows::log_file, Ows::log_level, Ows_version::major, Ows::mapfile, Ows::max_features, Ows_version::minor, ows_layers_storage_flush(), Ows::pg_dsn, Ows::postgis_version, Ows_version::release, Ows::schema_dir, and TINYOWS_VERSION.
Referenced by main().