tinyows 1.2.2
|
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <time.h>
#include "ows.h"
Go to the source code of this file.
buffer * ows_psql_column_character_maximum_length | ( | ows * | o, |
buffer * | column_name, | ||
buffer * | table_name ) |
Definition at line 335 of file ows_psql.c.
References Buffer::buf, buffer_add_str(), buffer_free(), buffer_init(), and ows_psql_exec().
Referenced by wfs_complex_type().
Definition at line 244 of file ows_psql.c.
References Buffer::buf, buffer_add(), buffer_add_str(), buffer_init(), list_add(), list_init(), and ows_psql_exec().
Referenced by wfs_complex_type().
Definition at line 206 of file ows_psql.c.
References Buffer::buf, buffer_add_str(), buffer_free(), buffer_init(), and ows_psql_exec().
Referenced by wfs_complex_type().
Definition at line 299 of file ows_psql.c.
References Buffer::buf, buffer_add_int(), buffer_add_str(), buffer_copy(), buffer_free(), buffer_init(), and ows_psql_exec().
Referenced by fe_xpath_property_name().
Definition at line 373 of file ows_psql.c.
References Ows_layer_storage::attributes, Buffer::buf, Ows_layer_list::first, Ows_layer_node::layer, Ows::layers, Ows_layer::name, Ows_layer_node::next, and Ows_layer::storage.
Referenced by fe_property_name(), wfs_complex_type(), wfs_geojson_display_results(), wfs_gml_feature_member(), wfs_insert_xml(), wfs_request_check_propertyname(), wfs_retrieve_sql_request_select(), and wfs_update_xml().
char * ows_psql_escape_string | ( | ows * | o, |
const char * | content ) |
Definition at line 840 of file ows_psql.c.
References Ows::pg.
Referenced by fe_expression(), fe_feature_id(), fe_kvp_featureid(), fe_property_is_like(), wfs_insert_xml(), wfs_retrieve_sql_request_list(), wfs_retrieve_value(), and wfs_update_xml().
PGresult * ows_psql_exec | ( | ows * | o, |
const char * | sql ) |
Definition at line 56 of file ows_psql.c.
References ows_log(), and Ows::pg.
Referenced by ows_bbox_boundaries(), ows_bbox_transform(), ows_geobbox_compute(), ows_layer_storage_fill(), ows_layers_storage_fill(), ows_psql_column_character_maximum_length(), ows_psql_column_check_constraint(), ows_psql_column_constraint_name(), ows_psql_column_name(), ows_psql_generate_id(), ows_psql_geometry_srid(), ows_psql_gml_to_sql(), ows_psql_is_geometry_valid(), ows_psql_number_features(), ows_psql_postgis_version(), ows_srs_get_from_a_srid(), ows_srs_set(), ows_srs_set_from_srid(), ows_storage_fill_attributes(), ows_storage_fill_not_null(), ows_storage_fill_pkey(), wfs_execute_transaction_request(), wfs_geojson_display_results(), wfs_gml_display_hits(), wfs_gml_display_results(), wfs_insert_xml(), and wfs_retrieve_sql_request_list().
Definition at line 535 of file ows_psql.c.
References Buffer::buf, buffer_add_int(), buffer_add_str(), buffer_copy(), buffer_free(), buffer_init(), Ows_layer_list::first, Ows_layer_node::layer, Ows::layers, Ows_layer::name, Ows_layer_node::next, ows_psql_exec(), Ows_layer_storage::pkey_default, Ows_layer_storage::pkey_sequence, and Ows_layer::storage.
Referenced by wfs_insert_xml().
Definition at line 76 of file ows_psql.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_storage::geom_columns, Ows_layer_node::layer, Ows::layers, Ows_layer::name, Ows_layer_node::next, and Ows_layer::storage.
Referenced by fe_bbox(), fe_kvp_bbox(), ows_bbox_boundaries(), and ows_geobbox_compute().
int ows_psql_geometry_srid | ( | ows * | o, |
const char * | geom ) |
Definition at line 861 of file ows_psql.c.
References Buffer::buf, buffer_add_str(), buffer_free(), buffer_from_str(), ows_psql_exec(), and Ows::pg.
Referenced by fe_spatial_functions().
Definition at line 734 of file ows_psql.c.
References Buffer::buf, buffer_add_int(), buffer_add_str(), buffer_empty(), buffer_free(), buffer_init(), cgi_add_xml_into_buffer(), Ows::check_valid_geom, Ows_srs::honours_authority_axis_order, Ows_srs::is_axis_order_gis_friendly, ows_psql_exec(), ows_psql_recursive_parse_gml(), ows_srs_free(), ows_srs_init(), ows_srs_set_from_srsname(), ows_version_get(), Ows::postgis_version, and Ows_srs::srid.
Referenced by fe_distance_functions(), fe_spatial_functions(), wfs_insert_xml(), and wfs_update_xml().
Definition at line 36 of file ows_psql.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_node::layer, Ows::layers, Ows_layer::name, Ows_layer_node::next, Ows_layer_storage::pkey, and Ows_layer::storage.
Referenced by fe_feature_id(), fe_kvp_featureid(), wfs_complex_type(), wfs_geojson_display_results(), wfs_gml_display_feature(), wfs_gml_feature_member(), and wfs_insert_xml().
Definition at line 164 of file ows_psql.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_storage::geom_columns, in_list(), Ows_layer_node::layer, Ows::layers, Ows_layer::name, Ows_layer_node::next, and Ows_layer::storage.
Referenced by fe_property_name(), wfs_geojson_display_results(), wfs_insert_xml(), wfs_retrieve_sql_request_select(), and wfs_update_xml().
Definition at line 136 of file ows_psql.c.
References Buffer::buf, buffer_add_str(), buffer_copy(), buffer_free(), buffer_init(), and ows_psql_exec().
bool ows_psql_is_numeric | ( | buffer * | type | ) |
Definition at line 426 of file ows_psql.c.
References buffer_cmp(), and buffer_ncmp().
Referenced by fe_property_name().
Definition at line 185 of file ows_psql.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_node::layer, Ows::layers, Ows_layer::name, Ows_layer_node::next, Ows_layer_storage::not_null_columns, and Ows_layer::storage.
Referenced by wfs_complex_type(), and wfs_gml_feature_member().
Definition at line 641 of file ows_psql.c.
References Buffer::buf, buffer_add_str(), buffer_copy(), buffer_free(), buffer_init(), List::first, List_node::next, ows_psql_exec(), List::size, and List_node::value.
ows_version * ows_psql_postgis_version | ( | ows * | o | ) |
Definition at line 393 of file ows_psql.c.
References Buffer::buf, check_regexp(), List::first, List::last, list_explode_str(), list_free(), Ows_version::major, Ows_version::minor, List_node::next, ows_psql_exec(), ows_version_init(), Ows_version::release, List::size, and List_node::value.
Referenced by ows_pg().
|
static |
Definition at line 683 of file ows_psql.c.
References ows_psql_recursive_parse_gml().
Referenced by ows_psql_gml_to_sql(), and ows_psql_recursive_parse_gml().
Definition at line 96 of file ows_psql.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_node::layer, Ows::layers, Ows_layer::name, Ows_layer_node::next, Ows_layer_storage::schema, and Ows_layer::storage.
Referenced by ows_bbox_boundaries(), ows_geobbox_compute(), wfs_delete(), wfs_delete_xml(), wfs_insert_xml(), wfs_retrieve_sql_request_list(), and wfs_update_xml().
Definition at line 116 of file ows_psql.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_node::layer, Ows::layers, Ows_layer::name, Ows_layer_node::next, Ows_layer::storage, and Ows_layer_storage::table.
Referenced by ows_bbox_boundaries(), ows_geobbox_compute(), wfs_complex_type(), wfs_delete(), wfs_delete_xml(), wfs_insert_xml(), wfs_retrieve_sql_request_list(), and wfs_update_xml().
buffer * ows_psql_timestamp_to_xml_time | ( | char * | timestamp | ) |
Definition at line 489 of file ows_psql.c.
References Buffer::buf, buffer_add_str(), buffer_init(), buffer_replace(), check_regexp(), and Buffer::use.
Referenced by wfs_gml_display_feature(), and wfs_gml_display_hits().
char * ows_psql_to_xsd | ( | buffer * | type, |
enum wfs_format | format ) |
Definition at line 445 of file ows_psql.c.
References buffer_case_cmp(), buffer_cmp(), buffer_ncmp(), and WFS_GML212.
Referenced by wfs_complex_type().
Definition at line 513 of file ows_psql.c.
References array_get(), Ows_layer_storage::attributes, Buffer::buf, Ows_layer_list::first, Ows_layer_node::layer, Ows::layers, Ows_layer::name, Ows_layer_node::next, and Ows_layer::storage.
Referenced by fe_binary_comparison_op().