tinyows 1.2.2
|
Go to the source code of this file.
Definition at line 83 of file alist.c.
References alist_is_key(), Buffer::buf, buffer_case_cmp(), Alist::first, Alist_node::key, Alist::last, list_add(), list_init(), Alist_node::next, and Alist_node::value.
Referenced by wfs_insert_xml().
void alist_flush | ( | const alist * | al, |
FILE * | output ) |
void alist_free | ( | alist * | al | ) |
Definition at line 56 of file alist.c.
References buffer_free(), Alist::first, Alist_node::key, list_free(), Alist_node::next, and Alist_node::value.
Referenced by wfs_request_free().
Definition at line 138 of file alist.c.
References buffer_case_cmp(), Alist::first, Alist_node::key, Alist_node::next, Buffer::use, and Alist_node::value.
alist * alist_init | ( | ) |
Definition at line 39 of file alist.c.
References Alist::first, and Alist::last.
Referenced by wfs_parse_operation().
bool alist_is_key | ( | const alist * | al, |
const char * | key ) |
Definition at line 116 of file alist.c.
References buffer_case_cmp(), Alist::first, Alist_node::key, Alist_node::next, and Buffer::use.
Referenced by alist_add().
Definition at line 80 of file array.c.
References Array::first, Array_node::key, Array::last, Array_node::next, and Array_node::value.
Referenced by cgi_add_att(), cgi_add_buffer(), cgi_add_node(), cgi_add_sortby(), cgi_parse_kvp(), cgi_parse_xml(), ows_layer_list_namespaces(), and ows_storage_fill_attributes().
void array_flush | ( | const array * | a, |
FILE * | output ) |
void array_free | ( | array * | a | ) |
Definition at line 53 of file array.c.
References buffer_free(), Array::first, Array_node::key, Array_node::next, and Array_node::value.
Referenced by cgi_parse_kvp(), cgi_parse_xml(), ows_free(), ows_layer_storage_free(), wfs_gml_display_namespaces(), and wfs_retrieve_typename().
Definition at line 147 of file array.c.
References buffer_case_cmp(), Array::first, Array_node::key, Array_node::next, Buffer::use, and Array_node::value.
Referenced by fe_property_name(), ows_metadata_fill(), ows_psql_type(), ows_request_check(), ows_request_check_version(), wfs(), wfs_gml_feature_member(), wfs_request_check(), wfs_request_check_bbox(), wfs_request_check_fid(), wfs_request_check_filter(), wfs_request_check_get_capabilities(), wfs_request_check_maxfeatures(), wfs_request_check_operation(), wfs_request_check_output(), wfs_request_check_propertyname(), wfs_request_check_resulttype(), wfs_request_check_sortby(), wfs_request_check_srs(), and wfs_request_check_typename().
Definition at line 170 of file array.c.
References buffer_case_cmp(), Array::first, Array_node::key, Array_node::next, Buffer::use, and Array_node::value.
Referenced by cgi_parse_xml(), and wfs_retrieve_typename().
array * array_init | ( | ) |
Definition at line 36 of file array.c.
References Array::first, and Array::last.
Referenced by cgi_parse_kvp(), cgi_parse_xml(), ows_layer_list_namespaces(), and ows_layer_storage_init().
bool array_is_key | ( | const array * | a, |
const char * | key ) |
Definition at line 105 of file array.c.
References buffer_case_cmp(), Array::first, Array_node::key, Array_node::next, and Buffer::use.
Referenced by fe_property_name(), ows_layer_list_namespaces(), ows_metadata_fill(), ows_request_check(), wfs(), wfs_insert_xml(), wfs_request_check_bbox(), wfs_request_check_describe_feature_type(), wfs_request_check_fid(), wfs_request_check_filter(), wfs_request_check_get_capabilities(), wfs_request_check_maxfeatures(), wfs_request_check_operation(), wfs_request_check_output(), wfs_request_check_parameters(), wfs_request_check_propertyname(), wfs_request_check_resulttype(), wfs_request_check_sortby(), wfs_request_check_srs(), wfs_request_check_typename(), wfs_request_check_version(), and wfs_update_xml().
bool array_is_value | ( | const array * | a, |
const char * | value ) |
Definition at line 125 of file array.c.
References buffer_case_cmp(), Array::first, Array_node::next, Buffer::use, and Array_node::value.
Referenced by cgi_parse_xml(), and wfs_retrieve_typename().
void buffer_add | ( | buffer * | buf, |
char | c ) |
Definition at line 123 of file buffer.c.
References Buffer::buf, buffer_realloc(), Buffer::size, and Buffer::use.
Referenced by buffer_encode_json_str(), buffer_encode_xml_entities_str(), cgi_parse_kvp(), fe_bbox(), fe_bbox_layer(), fe_distance_functions(), fe_expression(), fe_property_is_null(), fe_spatial_functions(), list_explode(), list_explode_start_end(), list_explode_str(), list_explode_str_trim(), mlist_explode(), ows_psql_column_check_constraint(), wfs_generate_schema(), wfs_geojson_display_results(), wfs_insert_xml(), and wfs_retrieve_sql_request_select().
void buffer_add_double | ( | buffer * | buf, |
double | f ) |
Definition at line 158 of file buffer.c.
References buffer_copy(), buffer_free(), and buffer_ftoa().
Referenced by ows_bbox_to_query().
void buffer_add_head | ( | buffer * | buf, |
char | c ) |
Definition at line 217 of file buffer.c.
References Buffer::buf, buffer_realloc(), Buffer::size, and Buffer::use.
Referenced by buffer_add_head_str(), and ows_parse_config_layer().
void buffer_add_head_str | ( | buffer * | buf, |
char * | str ) |
Definition at line 239 of file buffer.c.
References buffer_add_head().
Referenced by cgi_parse_xml(), ows_parse_config_layer(), wfs_gml_display_hits(), wfs_request_check_sortby(), and wfs_retrieve_typename().
void buffer_add_int | ( | buffer * | buf, |
int | i ) |
Definition at line 173 of file buffer.c.
References buffer_copy(), buffer_free(), and buffer_itoa().
Referenced by fe_bbox_layer(), fe_kvp_bbox(), fe_spatial_functions(), ows_bbox_boundaries(), ows_bbox_to_query(), ows_psql_column_name(), ows_psql_generate_id(), ows_psql_gml_to_sql(), ows_srs_get_from_a_srid(), ows_srs_set(), ows_srs_set_from_srid(), wfs_feature_type_list(), wfs_retrieve_sql_request_list(), and wfs_retrieve_sql_request_select().
void buffer_add_nstr | ( | buffer * | buf, |
const char * | str, | ||
size_t | n ) |
Definition at line 271 of file buffer.c.
References Buffer::buf, buffer_realloc(), Buffer::size, and Buffer::use.
Referenced by list_split().
void buffer_add_str | ( | buffer * | buf, |
const char * | str ) |
Definition at line 254 of file buffer.c.
References Buffer::buf, buffer_realloc(), Buffer::size, and Buffer::use.
Referenced by buffer_copy(), buffer_encode_json_str(), buffer_encode_xml_entities_str(), buffer_from_str(), buffer_replace(), cgi_add_att(), cgi_add_buffer(), cgi_add_into_buffer(), cgi_add_node(), cgi_add_sortby(), cgi_add_xml_into_buffer(), cgi_parse_xml(), fe_aggregate_functions(), fe_bbox(), fe_bbox_layer(), fe_binary_comparison_op(), fe_binary_logical_op(), fe_distance_functions(), fe_envelope(), fe_expression(), fe_fct_abs(), fe_fct_acos(), fe_fct_asin(), fe_fct_atan(), fe_fct_avg(), fe_fct_cbrt(), fe_fct_ceil(), fe_fct_cos(), fe_fct_cot(), fe_fct_count(), fe_fct_degrees(), fe_fct_exp(), fe_fct_floor(), fe_fct_length(), fe_fct_ln(), fe_fct_log(), fe_fct_max(), fe_fct_min(), fe_fct_radians(), fe_fct_round(), fe_fct_sin(), fe_fct_sqrt(), fe_fct_tan(), fe_fct_trunc(), fe_feature_id(), fe_filter(), fe_functions(), fe_functions_capabilities(), fe_kvp_bbox(), fe_kvp_featureid(), fe_property_is_between(), fe_property_is_like(), fe_property_is_null(), fe_spatial_functions(), fe_unary_logical_op(), fill_fe_error(), list_add_str(), list_implode(), main(), ows_bbox_boundaries(), ows_bbox_set_from_str(), ows_bbox_to_query(), ows_bbox_transform(), ows_geobbox_compute(), ows_layer_storage_fill(), ows_layers_storage_fill(), ows_parse_config_abstract(), ows_parse_config_contact(), ows_parse_config_layer(), ows_parse_config_metadata(), ows_parse_config_pg(), ows_parse_config_tinyows(), 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_timestamp_to_xml_time(), ows_srs_get_from_a_srid(), ows_srs_set(), ows_srs_set_from_srid(), ows_srs_set_geobbox(), ows_storage_fill_attributes(), ows_storage_fill_not_null(), ows_storage_fill_pkey(), wfs_delete(), wfs_delete_xml(), wfs_execute_transaction_request(), wfs_generate_schema(), wfs_geojson_display_results(), wfs_get_capabilities_110(), wfs_gml_display_hits(), wfs_insert_xml(), wfs_parse_operation(), wfs_request_check_output(), wfs_request_check_resulttype(), wfs_request_check_sortby(), wfs_retrieve_sql_request_list(), wfs_retrieve_sql_request_select(), wfs_retrieve_typename(), wfs_retrieve_value(), and wfs_update_xml().
bool buffer_case_cmp | ( | const buffer * | buf, |
const char * | str ) |
Definition at line 330 of file buffer.c.
References Buffer::buf, and Buffer::use.
Referenced by alist_add(), alist_get(), alist_is_key(), array_get(), array_get_key(), array_is_key(), array_is_value(), cgi_parse_kvp(), ows_metadata_fill(), ows_psql_to_xsd(), ows_request_check(), wfs_get_capabilities_110(), and wfs_request_check().
long int buffer_chr | ( | const buffer * | buf, |
char | c ) |
Definition at line 456 of file buffer.c.
References Buffer::buf, and Buffer::use.
Referenced by list_split().
Definition at line 362 of file buffer.c.
References Buffer::buf, buffer_copy(), and buffer_init().
bool buffer_cmp | ( | const buffer * | buf, |
const char * | str ) |
Definition at line 290 of file buffer.c.
References Buffer::buf, and Buffer::use.
Referenced by cgi_parse_kvp(), fe_binary_comparison_op(), fe_feature_id(), fe_property_name(), in_list(), ows_layer_list_by_ns_prefix(), ows_layer_no_uri(), ows_layer_no_uri_to_uri(), ows_layer_ns_prefix(), ows_layer_ns_prefix_to_ns_uri(), ows_layer_ns_uri(), ows_layer_prefix_to_uri(), ows_layer_uri_to_prefix(), ows_layers_storage_fill(), ows_psql_is_numeric(), ows_psql_to_xsd(), ows_request_check(), ows_request_check_version(), ows_storage_fill_attributes(), wfs(), wfs_complex_type(), wfs_describe_feature_type(), wfs_feature_type_list(), wfs_generate_schema(), wfs_get_feature(), wfs_gml_display_feature(), wfs_gml_feature_member(), wfs_insert_xml(), wfs_parse_operation(), wfs_request_check_fid(), wfs_request_check_get_capabilities(), wfs_request_check_operation(), wfs_request_check_output(), wfs_request_check_propertyname(), wfs_request_check_resulttype(), wfs_request_check_sortby(), wfs_transaction_insert_result(), wfs_transaction_response(), wfs_transaction_result(), and wfs_transaction_summary().
Definition at line 350 of file buffer.c.
References Buffer::buf, and buffer_add_str().
Referenced by buffer_add_double(), buffer_add_int(), buffer_clone(), buffer_replace(), cgi_add_buffer(), fe_aggregate_functions(), fe_bbox_layer(), fe_binary_comparison_op(), fe_distance_functions(), fe_feature_id(), fe_filter(), fe_kvp_bbox(), fe_kvp_featureid(), fe_property_is_between(), fe_property_name(), fe_spatial_functions(), fe_xpath_property_name(), list_add_by_copy(), list_add_list(), list_split(), ows_bbox_boundaries(), ows_geobbox_compute(), ows_layer_list_namespaces(), ows_layer_storage_fill(), ows_layers_storage_fill(), ows_metadata_fill(), ows_parse_config_layer(), ows_psql_column_name(), ows_psql_generate_id(), ows_psql_is_geometry_valid(), ows_psql_number_features(), ows_srs_copy(), ows_srs_set(), ows_storage_fill_attributes(), ows_storage_fill_not_null(), ows_storage_fill_pkey(), wfs_delete(), wfs_delete_xml(), wfs_generate_schema(), wfs_geojson_display_results(), wfs_gml_display_results(), wfs_insert_xml(), wfs_request_check_filter(), wfs_request_check_operation(), wfs_request_check_output(), wfs_request_check_resulttype(), wfs_request_check_sortby(), wfs_retrieve_sql_request_list(), wfs_retrieve_sql_request_select(), and wfs_update_xml().
void buffer_empty | ( | buffer * | buf | ) |
Definition at line 100 of file buffer.c.
References Buffer::buf, and Buffer::use.
Referenced by buffer_replace(), fe_binary_comparison_op(), fe_property_is_between(), fe_property_name(), fe_xpath_property_name(), ows_geobbox_compute(), ows_layer_storage_fill(), ows_layers_storage_fill(), ows_psql_gml_to_sql(), ows_srs_set(), ows_srs_set_from_srid(), ows_srs_set_geobbox(), ows_storage_fill_attributes(), ows_storage_fill_pkey(), wfs_geojson_display_results(), wfs_get_capabilities_110(), wfs_insert_xml(), wfs_parse_operation(), and wfs_request_check_sortby().
buffer * buffer_encode_json_str | ( | const char * | str | ) |
Definition at line 544 of file buffer.c.
References buffer_add(), buffer_add_str(), and buffer_init().
Referenced by wfs_geojson_display_results().
buffer * buffer_encode_xml_entities_str | ( | const char * | str | ) |
Definition at line 501 of file buffer.c.
References buffer_add(), buffer_add_str(), and buffer_init().
Referenced by wfs_gml_display_feature().
void buffer_flush | ( | buffer * | buf, |
FILE * | output ) |
Definition at line 112 of file buffer.c.
References Buffer::buf.
Referenced by wfs_complex_type(), wfs_describe_feature_type(), and wfs_feature_type_list().
void buffer_free | ( | buffer * | buf | ) |
Definition at line 83 of file buffer.c.
References Buffer::buf.
Referenced by alist_free(), array_free(), buffer_add_double(), buffer_add_int(), buffer_replace(), cgi_parse_kvp(), cgi_parse_xml(), fe_bbox(), fe_binary_comparison_op(), fe_distance_functions(), fe_envelope(), fe_feature_id(), fe_filter(), fe_functions_capabilities(), fe_property_is_between(), fe_property_is_like(), fe_property_name(), fe_spatial_functions(), fe_xpath_property_name(), filter_encoding_free(), list_node_free(), mlist_explode(), ows_bbox_boundaries(), ows_bbox_set_from_str(), ows_bbox_transform(), ows_contact_free(), ows_free(), ows_geobbox_compute(), ows_layer_free(), ows_layer_storage_fill(), ows_layer_storage_free(), ows_layers_storage_fill(), ows_metadata_fill(), ows_metadata_free(), ows_psql_column_character_maximum_length(), 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_request_check(), ows_srs_free(), 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_complex_type(), wfs_delete(), wfs_delete_xml(), wfs_execute_transaction_request(), wfs_feature_type_list(), wfs_geojson_display_results(), wfs_get_capabilities_110(), wfs_gml_display_feature(), wfs_gml_display_hits(), wfs_gml_display_results(), wfs_insert_xml(), wfs_parse_operation(), wfs_request_check_filter(), wfs_request_free(), wfs_retrieve_sql_request_list(), wfs_retrieve_value(), and wfs_update_xml().
buffer * buffer_from_str | ( | const char * | str | ) |
Definition at line 202 of file buffer.c.
References buffer_add_str(), and buffer_init().
Referenced by cgi_parse_xml(), fe_property_name(), ows_metadata_fill(), ows_psql_geometry_srid(), ows_request_check(), wfs_delete_xml(), wfs_gml_display_feature(), wfs_insert_xml(), and wfs_update_xml().
buffer * buffer_ftoa | ( | double | f | ) |
Definition at line 138 of file buffer.c.
References Buffer::buf, buffer_init(), buffer_realloc(), Buffer::size, and Buffer::use.
Referenced by buffer_add_double(), and fe_distance_functions().
buffer * buffer_init | ( | ) |
Definition at line 61 of file buffer.c.
References Buffer::buf, BUFFER_SIZE_INIT, Buffer::realloc, Buffer::size, and Buffer::use.
Referenced by buffer_clone(), buffer_encode_json_str(), buffer_encode_xml_entities_str(), buffer_from_str(), buffer_ftoa(), buffer_itoa(), buffer_replace(), cgi_add_att(), cgi_add_buffer(), cgi_add_node(), cgi_add_sortby(), cgi_parse_kvp(), cgi_parse_xml(), fe_bbox(), fe_binary_comparison_op(), fe_distance_functions(), fe_envelope(), fe_feature_id(), fe_filter(), fe_functions_capabilities(), fe_kvp_bbox(), fe_kvp_featureid(), fe_property_is_between(), fe_property_is_like(), fill_fe_error(), filter_encoding_init(), list_add_by_copy(), list_add_list(), list_add_str(), list_explode(), list_explode_start_end(), list_explode_str(), list_explode_str_trim(), list_split(), main(), mlist_explode(), ows_bbox_boundaries(), ows_bbox_set_from_str(), ows_bbox_transform(), ows_geobbox_compute(), ows_init(), ows_layer_init(), ows_layer_list_namespaces(), ows_layer_storage_fill(), ows_layer_storage_init(), ows_layers_storage_fill(), ows_metadata_fill(), ows_parse_config_abstract(), ows_parse_config_contact(), ows_parse_config_layer(), ows_parse_config_metadata(), ows_parse_config_tinyows(), 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_gml_to_sql(), ows_psql_is_geometry_valid(), ows_psql_number_features(), ows_psql_timestamp_to_xml_time(), ows_srs_get_from_a_srid(), ows_srs_init(), ows_srs_set(), ows_srs_set_from_srid(), ows_storage_fill_attributes(), ows_storage_fill_not_null(), ows_storage_fill_pkey(), wfs_delete(), wfs_delete_xml(), wfs_execute_transaction_request(), wfs_feature_type_list(), wfs_generate_schema(), wfs_geojson_display_results(), wfs_get_capabilities_110(), wfs_gml_display_results(), wfs_insert_xml(), wfs_parse_operation(), wfs_request_check_filter(), wfs_request_check_operation(), wfs_request_check_output(), wfs_request_check_resulttype(), wfs_request_check_sortby(), wfs_retrieve_sql_request_list(), wfs_retrieve_sql_request_select(), wfs_retrieve_typename(), and wfs_update_xml().
buffer * buffer_itoa | ( | int | i | ) |
Definition at line 188 of file buffer.c.
References Buffer::buf, buffer_init(), buffer_realloc(), Buffer::size, and Buffer::use.
Referenced by buffer_add_int().
bool buffer_ncmp | ( | const buffer * | buf, |
const char * | str, | ||
size_t | n ) |
Definition at line 310 of file buffer.c.
References Buffer::buf, and Buffer::use.
Referenced by ows_psql_is_numeric(), ows_psql_to_xsd(), wfs_gml_display_feature(), and wfs_request_remove_prop_ns_prefix().
void buffer_pop | ( | buffer * | buf, |
size_t | len ) |
Definition at line 379 of file buffer.c.
References Buffer::buf, and Buffer::use.
Referenced by buffer_replace(), cgi_add_buffer(), fe_binary_comparison_op(), and fe_xpath_property_name().
long int buffer_rchr | ( | const buffer * | buf, |
char | c ) |
Definition at line 475 of file buffer.c.
References Buffer::buf, and Buffer::use.
Referenced by list_split().
Definition at line 412 of file buffer.c.
References Buffer::buf, buffer_add_str(), buffer_copy(), buffer_empty(), buffer_free(), buffer_init(), buffer_pop(), buffer_shift(), and Buffer::use.
Referenced by fe_property_is_like(), ows_psql_timestamp_to_xml_time(), and wfs_execute_transaction_request().
void buffer_shift | ( | buffer * | buf, |
size_t | len ) |
Definition at line 392 of file buffer.c.
References Buffer::buf, and Buffer::use.
Referenced by buffer_replace(), cgi_add_buffer(), cgi_parse_xml(), fe_binary_comparison_op(), fe_xpath_property_name(), list_split(), wfs_request_remove_prop_ns_prefix(), and wfs_retrieve_typename().
Definition at line 401 of file cgi_request.c.
References buffer_add_str().
Referenced by cgi_parse_xml(), ows_psql_gml_to_sql(), wfs_delete_xml(), and wfs_update_xml().
char * cgi_getback_query | ( | ows * | o | ) |
Definition at line 68 of file cgi_request.c.
References cgi_method_get(), cgi_method_post(), ows_error(), and OWS_ERROR_REQUEST_HTTP.
Referenced by main().
bool cgi_method_get | ( | ) |
Definition at line 42 of file cgi_request.c.
Referenced by cgi_getback_query(), ows_kvp_or_xml(), ows_request_check(), wfs(), wfs_request_check(), and wfs_transaction_insert_result().
bool cgi_method_post | ( | ) |
Definition at line 55 of file cgi_request.c.
Referenced by cgi_getback_query(), main(), ows_kvp_or_xml(), and ows_request_check().
Definition at line 159 of file cgi_request.c.
References array_add(), array_free(), array_init(), buffer_add(), buffer_case_cmp(), buffer_cmp(), buffer_free(), buffer_init(), cgi_plustospace(), CGI_QUERY_MAX, cgi_remove_crlf(), cgi_unescape_url(), check_regexp(), ows_error(), OWS_ERROR_MISSING_PARAMETER_VALUE, and OWS_ERROR_REQUEST_HTTP.
Referenced by main().
Definition at line 437 of file cgi_request.c.
References array_add(), array_free(), array_get_key(), array_init(), array_is_value(), Buffer::buf, buffer_add_head_str(), buffer_add_str(), buffer_free(), buffer_from_str(), buffer_init(), buffer_shift(), cgi_add_att(), cgi_add_buffer(), cgi_add_into_buffer(), cgi_add_node(), cgi_add_sortby(), cgi_add_xml_into_buffer(), check_regexp(), is_node_ns_wfs(), Ows::layers, ows_error(), OWS_ERROR_INVALID_PARAMETER_VALUE, ows_layer_list_namespaces(), and Buffer::use.
Referenced by main().
bool check_regexp | ( | const char * | str_request, |
const char * | str_regex ) |
Definition at line 36 of file regexp.c.
Referenced by cgi_add_buffer(), cgi_parse_kvp(), cgi_parse_xml(), fe_envelope(), fe_expression(), fe_property_name(), fe_transform_coord_gml2_to_psql(), fe_xpath_property_name(), ows_psql_postgis_version(), ows_psql_timestamp_to_xml_time(), ows_request_check(), ows_request_check_version(), ows_version_set_str(), wfs_execute_transaction_request(), and wfs_request_check_propertyname().
buffer * fe_comparison_op | ( | ows * | o, |
buffer * | typename, | ||
filter_encoding * | fe, | ||
xmlNodePtr | n ) |
Definition at line 319 of file fe_comparison_ops.c.
References Filter_encoding::error_code, fe_binary_comparison_op(), FE_ERROR_FILTER, fe_property_is_between(), fe_property_is_like(), fe_property_is_null(), and Filter_encoding::sql.
Referenced by fe_binary_logical_op(), fe_filter(), and fe_unary_logical_op().
buffer * fe_envelope | ( | ows * | o, |
buffer * | typename, | ||
filter_encoding * | fe, | ||
buffer * | envelope, | ||
xmlNodePtr | n ) |
Definition at line 81 of file fe_spatial_ops.c.
References Buffer::buf, buffer_add_str(), buffer_free(), buffer_init(), check_regexp(), Filter_encoding::error_code, FE_ERROR_BBOX, FE_ERROR_SRS, fe_transform_coord_gml2_to_psql(), List::first, Ows_srs::honours_authority_axis_order, Ows_srs::is_axis_order_gis_friendly, Ows::layers, list_explode(), list_explode_str(), list_free(), List_node::next, ows_bbox_free(), ows_bbox_init(), ows_bbox_set(), ows_bbox_to_query(), ows_layer_prefix_to_uri(), ows_srs_free(), ows_srs_get_srid_from_layer(), ows_srs_init(), ows_srs_set_from_srsname(), Ows::request, Ows_request::request, Ows_srs::srid, List_node::value, and Ows_request::wfs.
Referenced by fe_bbox(), fe_spatial_functions(), wfs_insert_xml(), and wfs_update_xml().
void fe_error | ( | ows * | o, |
filter_encoding * | fe ) |
Definition at line 34 of file fe_error.c.
References Filter_encoding::error_code, FE_ERROR_BBOX, FE_ERROR_FEATUREID, FE_ERROR_FID, FE_ERROR_FILTER, FE_ERROR_FUNCTION, FE_ERROR_GEOM_PROPERTYNAME, FE_ERROR_GEOMETRY, FE_ERROR_NAMESPACE, FE_ERROR_PROPERTYNAME, FE_ERROR_SRS, FE_ERROR_UNITS, filter_encoding_free(), ows_error(), and OWS_ERROR_INVALID_PARAMETER_VALUE.
Referenced by wfs_delete(), and wfs_retrieve_sql_request_list().
buffer * fe_expression | ( | ows * | o, |
buffer * | typename, | ||
filter_encoding * | fe, | ||
buffer * | sql, | ||
xmlNodePtr | n ) |
Definition at line 119 of file fe_filter.c.
References buffer_add(), buffer_add_str(), check_regexp(), fe_expression(), fe_function(), fe_property_name(), Filter_encoding::is_numeric, and ows_psql_escape_string().
Referenced by fe_aggregate_functions(), fe_binary_comparison_op(), fe_expression(), fe_functions(), and fe_property_is_between().
buffer * fe_feature_id | ( | ows * | o, |
buffer * | typename, | ||
filter_encoding * | fe, | ||
xmlNodePtr | n ) |
Definition at line 264 of file fe_filter.c.
References Buffer::buf, buffer_add_str(), buffer_cmp(), buffer_copy(), buffer_free(), buffer_init(), Filter_encoding::error_code, FE_ERROR_FEATUREID, FE_ERROR_FID, List::first, List::last, Ows::layers, list_explode(), list_free(), ows_layer_no_uri(), ows_layer_prefix_to_uri(), ows_psql_escape_string(), ows_psql_id_column(), Filter_encoding::sql, Buffer::use, and List_node::value.
Referenced by fe_filter().
filter_encoding * fe_filter | ( | ows * | o, |
filter_encoding * | fe, | ||
buffer * | typename, | ||
buffer * | xmlchar ) |
Definition at line 353 of file fe_filter.c.
References Buffer::buf, buffer_add_str(), buffer_copy(), buffer_free(), buffer_init(), Ows::check_schema, Filter_encoding::error_code, fe_comparison_op(), FE_ERROR_FILTER, FE_ERROR_NAMESPACE, fe_feature_id(), fe_is_comparison_op(), fe_is_logical_op(), fe_is_spatial_op(), fe_logical_op(), fe_spatial_op(), Ows_request::method, ows_libxml_check_namespace(), OWS_METHOD_XML, ows_schema_validation(), ows_version_get(), Ows::request, Ows::schema_dir, Filter_encoding::sql, Buffer::use, Ows_request::version, WFS_SCHEMA_100, WFS_SCHEMA_110, WFS_SCHEMA_TYPE_100, and WFS_SCHEMA_TYPE_110.
Referenced by wfs_delete(), wfs_delete_xml(), wfs_retrieve_sql_request_list(), and wfs_update_xml().
void fe_filter_capabilities_100 | ( | const ows * | o | ) |
Definition at line 85 of file fe_filter_capabilities.c.
References fe_functions_capabilities(), and Ows::output.
Referenced by wfs_get_capabilities_100().
void fe_filter_capabilities_110 | ( | const ows * | o | ) |
Definition at line 131 of file fe_filter_capabilities.c.
References fe_functions_capabilities(), Ows::output, ows_version_get(), and Ows::postgis_version.
Referenced by wfs_get_capabilities_110().
buffer * fe_function | ( | ows * | o, |
buffer * | typename, | ||
filter_encoding * | fe, | ||
buffer * | sql, | ||
xmlNodePtr | n ) |
Definition at line 513 of file fe_function.c.
References Filter_encoding::error_code, FE_ERROR_FUNCTION, fe_fct_abs(), fe_fct_acos(), fe_fct_asin(), fe_fct_atan(), fe_fct_avg(), fe_fct_cbrt(), fe_fct_ceil(), fe_fct_cos(), fe_fct_cot(), fe_fct_count(), fe_fct_degrees(), fe_fct_exp(), fe_fct_floor(), fe_fct_length(), fe_fct_ln(), fe_fct_log(), fe_fct_max(), fe_fct_min(), fe_fct_radians(), fe_fct_round(), fe_fct_sin(), fe_fct_sqrt(), fe_fct_tan(), and fe_fct_trunc().
Referenced by fe_expression().
bool fe_is_comparison_op | ( | char * | name | ) |
Definition at line 295 of file fe_comparison_ops.c.
Referenced by fe_binary_logical_op(), fe_filter(), and fe_unary_logical_op().
bool fe_is_logical_op | ( | char * | name | ) |
Definition at line 36 of file fe_logical_ops.c.
Referenced by fe_binary_logical_op(), fe_filter(), and fe_unary_logical_op().
bool fe_is_spatial_op | ( | char * | name | ) |
Definition at line 35 of file fe_spatial_ops.c.
Referenced by fe_binary_logical_op(), fe_filter(), and fe_unary_logical_op().
buffer * fe_kvp_bbox | ( | ows * | o, |
wfs_request * | wr, | ||
buffer * | layer_name, | ||
ows_bbox * | bbox ) |
Definition at line 420 of file fe_filter.c.
References buffer_add_int(), buffer_add_str(), buffer_copy(), buffer_init(), List::first, List_node::next, ows_bbox_to_query(), ows_psql_geometry_column(), ows_srs_get_srid_from_layer(), and List_node::value.
Referenced by wfs_delete(), and wfs_retrieve_sql_request_list().
buffer * fe_kvp_featureid | ( | ows * | o, |
wfs_request * | wr, | ||
buffer * | layer_name, | ||
list * | fid ) |
Definition at line 494 of file fe_filter.c.
References Buffer::buf, buffer_add_str(), buffer_copy(), buffer_init(), List::first, List::last, list_explode(), list_free(), List_node::next, ows_psql_escape_string(), ows_psql_id_column(), Buffer::use, and List_node::value.
Referenced by wfs_delete(), and wfs_retrieve_sql_request_list().
buffer * fe_logical_op | ( | ows * | o, |
buffer * | typename, | ||
filter_encoding * | fe, | ||
xmlNodePtr | n ) |
Definition at line 127 of file fe_logical_ops.c.
References Filter_encoding::error_code, fe_binary_logical_op(), FE_ERROR_FILTER, fe_unary_logical_op(), and Filter_encoding::sql.
Referenced by fe_binary_logical_op(), fe_filter(), and fe_unary_logical_op().
void fe_node_flush | ( | xmlNodePtr | node, |
FILE * | output ) |
buffer * fe_property_name | ( | ows * | o, |
buffer * | typename, | ||
filter_encoding * | fe, | ||
buffer * | sql, | ||
xmlNodePtr | n, | ||
bool | check_geom_column, | ||
bool | mandatory ) |
Definition at line 210 of file fe_filter.c.
References array_get(), array_is_key(), Buffer::buf, buffer_cmp(), buffer_copy(), buffer_empty(), buffer_free(), buffer_from_str(), check_regexp(), Filter_encoding::error_code, FE_ERROR_GEOM_PROPERTYNAME, FE_ERROR_PROPERTYNAME, fe_xpath_property_name(), List::first, Filter_encoding::is_numeric, Ows::layers, list_add_by_copy(), list_explode(), list_free(), list_init(), ows_layer_prefix_to_uri(), ows_psql_describe_table(), ows_psql_is_geometry_column(), ows_psql_is_numeric(), List_node::value, and wfs_request_remove_prop_ns_prefix().
Referenced by fe_bbox(), fe_distance_functions(), fe_expression(), fe_property_is_like(), fe_property_is_null(), and fe_spatial_functions().
buffer * fe_spatial_op | ( | ows * | o, |
buffer * | typename, | ||
filter_encoding * | fe, | ||
xmlNodePtr | n ) |
Definition at line 570 of file fe_spatial_ops.c.
References Filter_encoding::error_code, fe_bbox(), fe_distance_functions(), FE_ERROR_FILTER, fe_spatial_functions(), and Filter_encoding::sql.
Referenced by fe_binary_logical_op(), fe_filter(), and fe_unary_logical_op().
Definition at line 186 of file fe_filter.c.
References Buffer::buf, buffer_copy(), buffer_empty(), buffer_free(), buffer_pop(), buffer_shift(), check_regexp(), and ows_psql_column_name().
Referenced by fe_property_name(), and wfs_request_check_propertyname().
buffer * fill_fe_error | ( | ows * | o, |
filter_encoding * | fe ) |
Definition at line 79 of file fe_error.c.
References buffer_add_str(), buffer_init(), Filter_encoding::error_code, FE_ERROR_BBOX, FE_ERROR_FEATUREID, FE_ERROR_FID, FE_ERROR_FILTER, FE_ERROR_GEOM_PROPERTYNAME, FE_ERROR_GEOMETRY, FE_ERROR_PROPERTYNAME, FE_ERROR_SRS, and FE_ERROR_UNITS.
Referenced by wfs_delete_xml(), wfs_insert_xml(), and wfs_update_xml().
void filter_encoding_flush | ( | filter_encoding * | fe, |
FILE * | output ) |
void filter_encoding_free | ( | filter_encoding * | fe | ) |
Definition at line 54 of file fe_filter.c.
References buffer_free(), and Filter_encoding::sql.
Referenced by fe_error(), wfs_delete(), wfs_delete_xml(), wfs_insert_xml(), wfs_retrieve_sql_request_list(), and wfs_update_xml().
filter_encoding * filter_encoding_init | ( | ) |
Definition at line 35 of file fe_filter.c.
References buffer_init(), Filter_encoding::error_code, FE_NO_ERROR, Filter_encoding::in_not, Filter_encoding::is_numeric, and Filter_encoding::sql.
Referenced by wfs_delete(), wfs_delete_xml(), wfs_insert_xml(), wfs_retrieve_sql_request_list(), and wfs_update_xml().
Definition at line 259 of file list.c.
References Buffer::buf, buffer_cmp(), List::first, List_node::next, Buffer::use, and List_node::value.
Referenced by fe_bbox(), list_add_list(), ows_layer_list_ns_prefix(), ows_psql_is_geometry_column(), wfs_complex_type(), wfs_get_capabilities_110(), wfs_gml_display_feature(), and wfs_request_check_fid().
bool in_list_str | ( | const list * | l, |
const char * | value ) |
Definition at line 278 of file list.c.
References Buffer::buf, List::first, List_node::next, and List_node::value.
Referenced by ows_layer_list_ns_prefix(), wfs_gml_display_feature(), wfs_gml_feature_member(), and wfs_retrieve_sql_request_select().
Definition at line 71 of file list.c.
References List::first, List::last, list_node_init(), List_node::next, List_node::prev, List::size, and List_node::value.
Referenced by alist_add(), list_explode(), list_explode_start_end(), list_explode_str(), list_explode_str_trim(), list_split(), ows_psql_column_check_constraint(), ows_srs_get_from_srid(), ows_storage_fill_not_null(), and wfs_retrieve_sql_request_list().
Definition at line 187 of file list.c.
References buffer_copy(), buffer_init(), List::first, List::last, list_node_init(), List_node::next, List_node::prev, List::size, and List_node::value.
Referenced by fe_property_name(), list_explode_start_end(), ows_layer_list_by_ns_prefix(), ows_layer_list_having_storage(), ows_layer_list_ns_prefix(), ows_layer_list_prefix_to_uri(), wfs_generate_schema(), wfs_request_check_describe_feature_type(), wfs_request_check_fid(), wfs_request_check_typename(), wfs_retrieve_sql_request_list(), and wfs_update_xml().
Definition at line 152 of file list.c.
References buffer_copy(), buffer_init(), List::first, in_list(), List::last, list_node_init(), List_node::next, List_node::prev, List::size, and List_node::value.
Referenced by ows_parse_config_layer().
void list_add_str | ( | list * | l, |
char * | value ) |
Definition at line 102 of file list.c.
References buffer_add_str(), buffer_init(), List::first, List::last, list_node_init(), List_node::next, List_node::prev, List::size, and List_node::value.
Referenced by ows_layer_list_ns_prefix(), ows_layer_storage_fill(), and ows_metadata_fill().
Definition at line 296 of file list.c.
References Buffer::buf, buffer_add(), buffer_init(), list_add(), list_init(), and Buffer::use.
Referenced by fe_envelope(), fe_feature_id(), fe_kvp_featureid(), fe_property_name(), mlist_explode(), ows_bbox_set_from_str(), ows_request_check_version(), wfs_delete(), wfs_gml_display_results(), wfs_insert_xml(), wfs_request_check_get_capabilities(), wfs_request_check_sortby(), wfs_request_check_typename(), and wfs_retrieve_sql_request_list().
Definition at line 366 of file list.c.
References Buffer::buf, buffer_add(), buffer_init(), list_add(), list_add_by_copy(), list_init(), and Buffer::use.
Referenced by wfs_request_check_filter().
list * list_explode_str | ( | char | separator, |
const char * | value ) |
Definition at line 401 of file list.c.
References buffer_add(), buffer_init(), list_add(), and list_init().
Referenced by fe_envelope(), ows_parse_config_layer(), ows_parse_config_metadata(), and ows_psql_postgis_version().
list * list_explode_str_trim | ( | char | separator, |
const char * | value ) |
Definition at line 430 of file list.c.
References buffer_add(), buffer_init(), list_add(), and list_init().
Referenced by ows_parse_config_layer().
void list_flush | ( | const list * | l, |
FILE * | output ) |
void list_free | ( | list * | l | ) |
Definition at line 54 of file list.c.
References List::first, List::last, and list_node_free().
Referenced by alist_free(), fe_envelope(), fe_feature_id(), fe_kvp_featureid(), fe_property_name(), mlist_node_free(), ows_bbox_set_from_str(), ows_free(), ows_layer_free(), ows_layer_storage_free(), ows_metadata_free(), ows_parse_config_layer(), ows_psql_postgis_version(), ows_request_check_version(), wfs_delete(), wfs_describe_feature_type(), wfs_generate_schema(), wfs_gml_display_results(), wfs_insert_xml(), wfs_request_check_describe_feature_type(), wfs_request_check_fid(), wfs_request_check_get_capabilities(), wfs_request_check_get_feature(), wfs_request_check_sortby(), wfs_request_check_transaction(), wfs_request_check_typename(), wfs_request_free(), wfs_request_remove_prop_ns_prefix(), wfs_retrieve_sql_request_list(), and wfs_update_xml().
Definition at line 461 of file list.c.
References Buffer::buf, buffer_add_str(), List::first, List_node::next, and List_node::value.
Referenced by ows_layer_storage_fill().
list * list_init | ( | ) |
Definition at line 36 of file list.c.
References List::first, List::last, and List::size.
Referenced by alist_add(), fe_property_name(), list_explode(), list_explode_start_end(), list_explode_str(), list_explode_str_trim(), list_split(), main(), ows_layer_list_by_ns_prefix(), ows_layer_list_having_storage(), ows_layer_list_ns_prefix(), ows_layer_list_prefix_to_uri(), ows_layer_storage_init(), ows_metadata_fill(), ows_parse_config_layer(), ows_psql_column_check_constraint(), ows_srs_get_from_srid(), ows_storage_fill_not_null(), wfs_generate_schema(), wfs_request_check_describe_feature_type(), wfs_request_check_get_feature(), wfs_request_check_transaction(), wfs_retrieve_sql_request_list(), and wfs_update_xml().
Definition at line 237 of file list.c.
References buffer_free(), List::first, List_node::next, List_node::prev, and List_node::value.
Referenced by list_free(), and list_pop().
list_node * list_node_init | ( | ) |
Definition at line 219 of file list.c.
References List_node::next, List_node::prev, and List_node::value.
Referenced by list_add(), list_add_by_copy(), list_add_list(), and list_add_str().
void list_pop | ( | list * | l | ) |
Definition at line 129 of file list.c.
References List::first, List::last, list_node_free(), List_node::next, List_node::prev, and List::size.
Referenced by wfs_describe_feature_type().
Definition at line 324 of file list.c.
References Buffer::buf, buffer_add_nstr(), buffer_chr(), buffer_copy(), buffer_init(), buffer_rchr(), buffer_shift(), list_add(), and list_init().
Referenced by wfs_request_check_fid().
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, Ows_request::request, Ows_request::service, TINYOWS_VERSION, WFS, Ows_request::wfs, wfs(), wfs_request_check(), and wfs_request_init().
Definition at line 71 of file mlist.c.
References Mlist::first, Mlist::last, mlist_node_init(), Mlist_node::next, Mlist_node::prev, Mlist::size, and Mlist_node::value.
Referenced by mlist_explode(), and wfs_retrieve_sql_request_list().
Definition at line 144 of file mlist.c.
References Buffer::buf, buffer_add(), buffer_free(), buffer_init(), list_explode(), mlist_add(), mlist_init(), and Buffer::use.
Referenced by wfs_request_check_fid(), and wfs_request_check_propertyname().
void mlist_flush | ( | const mlist * | ml, |
FILE * | output ) |
void mlist_free | ( | mlist * | ml | ) |
Definition at line 54 of file mlist.c.
References Mlist::first, Mlist::last, and mlist_node_free().
Referenced by wfs_get_feature(), wfs_request_check_fid(), wfs_request_check_propertyname(), and wfs_request_free().
mlist * mlist_init | ( | ) |
Definition at line 36 of file mlist.c.
References Mlist::first, Mlist::last, and Mlist::size.
Referenced by mlist_explode(), and wfs_retrieve_sql_request_list().
void mlist_node_free | ( | mlist * | ml, |
mlist_node * | mln ) |
Definition at line 118 of file mlist.c.
References Mlist::first, list_free(), Mlist_node::next, Mlist_node::prev, and Mlist_node::value.
Referenced by mlist_free().
mlist_node * mlist_node_init | ( | ) |
Definition at line 100 of file mlist.c.
References Mlist_node::next, Mlist_node::prev, and Mlist_node::value.
Referenced by mlist_add().
Definition at line 154 of file ows_bbox.c.
References Buffer::buf, buffer_add_int(), buffer_add_str(), buffer_copy(), buffer_free(), buffer_init(), List::first, List_node::next, ows_bbox_init(), ows_psql_exec(), ows_psql_geometry_column(), ows_psql_schema_name(), ows_psql_table_name(), ows_srs_copy(), List::size, Ows_srs::srid, Ows_bbox::srs, List_node::value, Ows_bbox::xmax, Ows_bbox::xmin, Ows_bbox::ymax, and Ows_bbox::ymin.
Referenced by wfs_gml_display_results().
void ows_bbox_flush | ( | const ows_bbox * | b, |
FILE * | output ) |
void ows_bbox_free | ( | ows_bbox * | b | ) |
Definition at line 58 of file ows_bbox.c.
References ows_srs_free(), and Ows_bbox::srs.
Referenced by fe_envelope(), ows_geobbox_compute(), ows_geobbox_set_from_str(), wfs_gml_display_results(), wfs_request_free(), and wfs_retrieve_sql_request_list().
ows_bbox * ows_bbox_init | ( | ) |
Definition at line 37 of file ows_bbox.c.
References ows_srs_init(), Ows_bbox::srs, Ows_bbox::xmax, Ows_bbox::xmin, Ows_bbox::ymax, and Ows_bbox::ymin.
Referenced by fe_envelope(), ows_bbox_boundaries(), ows_geobbox_compute(), ows_geobbox_set_from_str(), wfs_request_check_bbox(), and wfs_retrieve_sql_request_list().
bool ows_bbox_set | ( | ows * | o, |
ows_bbox * | b, | ||
double | xmin, | ||
double | ymin, | ||
double | xmax, | ||
double | ymax, | ||
int | srid ) |
Definition at line 71 of file ows_bbox.c.
References ows_srs_set_from_srid(), ows_srs_set_geobbox(), Ows_bbox::srs, Ows_bbox::xmax, Ows_bbox::xmin, Ows_bbox::ymax, and Ows_bbox::ymin.
Referenced by fe_envelope(), ows_bbox_set_from_str(), and ows_geobbox_compute().
bool ows_bbox_set_from_geobbox | ( | ows * | o, |
ows_bbox * | bb, | ||
ows_geobbox * | geo ) |
Definition at line 258 of file ows_bbox.c.
References Ows_geobbox::east, Ows_geobbox::north, ows_srs_set_geobbox(), Ows_geobbox::south, Ows_bbox::srs, Ows_geobbox::west, Ows_bbox::xmax, Ows_bbox::xmin, Ows_bbox::ymax, and Ows_bbox::ymin.
Referenced by wfs_retrieve_sql_request_list().
bool ows_bbox_set_from_str | ( | ows * | o, |
ows_bbox * | bb, | ||
const char * | str, | ||
int | srid, | ||
bool | honours_authority_axis_order_if_no_explicit_srs ) |
Definition at line 96 of file ows_bbox.c.
References Buffer::buf, buffer_add_str(), buffer_free(), buffer_init(), List::first, Ows_srs::honours_authority_axis_order, List::last, list_explode(), list_free(), List_node::next, ows_bbox_set(), ows_srs_free(), ows_srs_init(), ows_srs_set_from_srsname(), List::size, Ows_srs::srid, Ows_bbox::srs, and List_node::value.
Referenced by ows_geobbox_set_from_str(), and wfs_request_check_bbox().
Definition at line 285 of file ows_bbox.c.
References buffer_add_double(), buffer_add_int(), buffer_add_str(), Ows_srs::honours_authority_axis_order, Ows_srs::is_axis_order_gis_friendly, Ows_srs::srid, Ows_bbox::srs, Ows_bbox::xmax, Ows_bbox::xmin, Ows_bbox::ymax, and Ows_bbox::ymin.
Referenced by fe_envelope(), fe_kvp_bbox(), ows_bbox_transform(), and wfs_retrieve_sql_request_list().
Definition at line 225 of file ows_bbox.c.
References Buffer::buf, buffer_add_str(), buffer_free(), buffer_init(), ows_bbox_to_query(), ows_psql_exec(), ows_srs_set_from_srid(), Ows_bbox::srs, Ows_bbox::xmax, Ows_bbox::xmin, Ows_bbox::ymax, and Ows_bbox::ymin.
void ows_contact_flush | ( | ows_contact * | contact, |
FILE * | output ) |
void ows_contact_free | ( | ows_contact * | contact | ) |
Definition at line 64 of file ows_metadata.c.
References Ows_contact::address, buffer_free(), Ows_contact::city, 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::phone, Ows_contact::position, Ows_contact::postcode, Ows_contact::site, and Ows_contact::state.
Referenced by ows_free().
ows_contact * ows_contact_init | ( | ) |
Definition at line 34 of file ows_metadata.c.
References Ows_contact::address, Ows_contact::city, 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::phone, Ows_contact::position, Ows_contact::postcode, Ows_contact::site, and Ows_contact::state.
Referenced by ows_parse_config_contact().
void ows_error | ( | ows * | o, |
enum ows_error_code | code, | ||
char * | message, | ||
char * | locator ) |
Definition at line 71 of file ows_error.c.
References Ows::exit, Ows::init, Ows::output, ows_error_code_string(), and ows_log().
Referenced by cgi_getback_query(), cgi_parse_kvp(), cgi_parse_xml(), fe_error(), main(), ows_config_check(), ows_kvp_or_xml(), ows_metadata_fill(), ows_parse_config_xml(), ows_pg(), ows_request_check(), ows_request_check_version(), ows_storage_fill_attributes(), ows_storage_fill_not_null(), ows_storage_fill_pkey(), wfs(), wfs_describe_feature_type(), wfs_request_check(), wfs_request_check_bbox(), wfs_request_check_fid(), wfs_request_check_get_capabilities(), wfs_request_check_maxfeatures(), wfs_request_check_operation(), wfs_request_check_parameters(), wfs_request_check_propertyname(), wfs_request_check_resulttype(), wfs_request_check_srs(), wfs_request_check_version(), and wfs_retrieve_value().
void ows_flush | ( | ows * | o, |
FILE * | output ) |
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().
ows_geobbox * ows_geobbox_compute | ( | ows * | o, |
buffer * | layer_name ) |
Definition at line 153 of file ows_geobbox.c.
References Buffer::buf, buffer_add_str(), buffer_copy(), buffer_empty(), buffer_free(), buffer_init(), Ows::estimated_extent, List::first, List_node::next, ows_bbox_free(), ows_bbox_init(), ows_bbox_set(), ows_geobbox_init(), ows_geobbox_set_from_bbox(), ows_psql_exec(), ows_psql_geometry_column(), ows_psql_schema_name(), ows_psql_table_name(), and List_node::value.
Referenced by wfs_feature_type_list().
ows_geobbox * ows_geobbox_copy | ( | ows_geobbox * | g | ) |
Definition at line 56 of file ows_geobbox.c.
Referenced by ows_parse_config_layer().
void ows_geobbox_flush | ( | const ows_geobbox * | g, |
FILE * | output ) |
void ows_geobbox_free | ( | ows_geobbox * | g | ) |
Definition at line 69 of file ows_geobbox.c.
Referenced by ows_free(), ows_layer_free(), ows_parse_config_limits(), and wfs_feature_type_list().
ows_geobbox * ows_geobbox_init | ( | ) |
Definition at line 37 of file ows_geobbox.c.
References Ows_geobbox::east, Ows_geobbox::north, Ows_geobbox::south, and Ows_geobbox::west.
Referenced by ows_geobbox_compute(), ows_parse_config_layer(), ows_parse_config_limits(), and wfs_feature_type_list().
bool ows_geobbox_set | ( | ows * | o, |
ows_geobbox * | g, | ||
double | west, | ||
double | east, | ||
double | south, | ||
double | north ) |
Definition at line 80 of file ows_geobbox.c.
References Ows_geobbox::east, Ows_geobbox::north, Ows_geobbox::south, and Ows_geobbox::west.
Referenced by ows_geobbox_set_from_bbox().
bool ows_geobbox_set_from_bbox | ( | ows * | o, |
ows_geobbox * | g, | ||
ows_bbox * | bb ) |
Definition at line 108 of file ows_geobbox.c.
References ows_geobbox_set(), Ows_bbox::xmax, Ows_bbox::xmin, Ows_bbox::ymax, and Ows_bbox::ymin.
Referenced by ows_geobbox_compute(), and ows_geobbox_set_from_str().
ows_geobbox * ows_geobbox_set_from_str | ( | ows * | o, |
ows_geobbox * | g, | ||
char * | str ) |
Definition at line 134 of file ows_geobbox.c.
References ows_bbox_free(), ows_bbox_init(), ows_bbox_set_from_str(), and ows_geobbox_set_from_bbox().
Referenced by ows_parse_config_layer(), and ows_parse_config_limits().
void ows_get_capabilities_dcpt | ( | const ows * | o, |
const char * | req ) |
Definition at line 37 of file ows_get_capabilities.c.
References Buffer::buf, Ows::online_resource, and Ows::output.
Referenced by wfs_operations_metadata().
void ows_layer_flush | ( | ows_layer * | l, |
FILE * | output ) |
void ows_layer_free | ( | ows_layer * | l | ) |
Definition at line 549 of file ows_layer.c.
References Ows_layer::abstract, buffer_free(), Ows_layer::exclude_items, Ows_layer::geobbox, Ows_layer::gml_ns, Ows_layer::include_items, Ows_layer::keywords, list_free(), Ows_layer::name, Ows_layer::name_no_uri, Ows_layer::name_prefix, Ows_layer::ns_prefix, Ows_layer::ns_uri, ows_geobbox_free(), ows_layer_storage_free(), Ows_layer::pkey, Ows_layer::pkey_sequence, Ows_layer::srid, Ows_layer::storage, and Ows_layer::title.
Referenced by ows_layer_node_free().
ows_layer * ows_layer_get | ( | const ows_layer_list * | ll, |
const buffer * | name ) |
Definition at line 66 of file ows_layer.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_node::layer, Ows_layer::name, and Ows_layer_node::next.
Referenced by ows_layer_list_ns_prefix(), wfs_complex_type(), wfs_gml_display_feature(), wfs_gml_feature_member(), and wfs_retrieve_sql_request_select().
bool ows_layer_in_list | ( | const ows_layer_list * | ll, |
buffer * | name ) |
Definition at line 193 of file ows_layer.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_node::layer, Ows_layer::name, and Ows_layer_node::next.
Referenced by ows_layer_list_in_list(), and wfs_request_check_fid().
ows_layer * ows_layer_init | ( | ) |
Definition at line 516 of file ows_layer.c.
References Ows_layer::abstract, buffer_init(), Ows_layer::depth, Ows_layer::exclude_items, Ows_layer::geobbox, Ows_layer::gml_ns, Ows_layer::include_items, Ows_layer::keywords, Ows_layer::name, Ows_layer::name_no_uri, Ows_layer::name_prefix, Ows_layer::ns_prefix, Ows_layer::ns_uri, ows_layer_storage_init(), Ows_layer::parent, Ows_layer::pkey, Ows_layer::pkey_sequence, Ows_layer::retrievable, Ows_layer::srid, Ows_layer::storage, Ows_layer::title, and Ows_layer::writable.
Referenced by ows_parse_config_layer().
void ows_layer_list_add | ( | ows_layer_list * | ll, |
ows_layer * | l ) |
Definition at line 440 of file ows_layer.c.
References Ows_layer_list::first, Ows_layer_list::last, Ows_layer_node::layer, Ows_layer_node::next, ows_layer_node_init(), and Ows_layer_node::prev.
Referenced by ows_parse_config_layer().
list * ows_layer_list_by_ns_prefix | ( | ows_layer_list * | ll, |
list * | layer_name_prefix, | ||
buffer * | ns_prefix ) |
Definition at line 255 of file ows_layer.c.
References Buffer::buf, buffer_cmp(), List::first, list_add_by_copy(), list_init(), List_node::next, ows_layer_ns_prefix(), and List_node::value.
Referenced by wfs_describe_feature_type(), and wfs_generate_schema().
void ows_layer_list_flush | ( | ows_layer_list * | ll, |
FILE * | output ) |
void ows_layer_list_free | ( | ows_layer_list * | ll | ) |
Definition at line 52 of file ows_layer.c.
References Ows_layer_list::first, Ows_layer_list::last, and ows_layer_node_free().
Referenced by ows_free().
list * ows_layer_list_having_storage | ( | const ows_layer_list * | ll | ) |
Definition at line 105 of file ows_layer.c.
References Ows_layer_list::first, Ows_layer_node::layer, list_add_by_copy(), list_init(), Ows_layer::name, Ows_layer_node::next, and Ows_layer::storage.
Referenced by wfs_generate_schema().
bool ows_layer_list_in_list | ( | const ows_layer_list * | ll, |
const list * | l ) |
Definition at line 211 of file ows_layer.c.
References List::first, List_node::next, ows_layer_in_list(), and List_node::value.
ows_layer_list * ows_layer_list_init | ( | ) |
Definition at line 36 of file ows_layer.c.
References Ows_layer_list::first, and Ows_layer_list::last.
Referenced by ows_parse_config_xml().
array * ows_layer_list_namespaces | ( | ows_layer_list * | ll | ) |
Definition at line 228 of file ows_layer.c.
References array_add(), array_init(), array_is_key(), Buffer::buf, buffer_copy(), buffer_init(), Ows_layer_list::first, Ows_layer_node::layer, Ows_layer_node::next, Ows_layer::ns_prefix, Ows_layer::ns_uri, and Buffer::use.
Referenced by cgi_parse_xml(), wfs_gml_display_namespaces(), and wfs_retrieve_typename().
list * ows_layer_list_ns_prefix | ( | ows_layer_list * | ll, |
list * | layer_name_prefix ) |
Definition at line 281 of file ows_layer.c.
References List::first, in_list(), in_list_str(), list_add_by_copy(), list_add_str(), list_init(), List_node::next, ows_layer_get(), ows_layer_ns_prefix(), ows_layer_uri_to_prefix(), and List_node::value.
Referenced by wfs_describe_feature_type(), wfs_generate_schema(), and wfs_request_remove_prop_ns_prefix().
list * ows_layer_list_prefix_to_uri | ( | ows_layer_list * | ll, |
list * | layer_name_prefix ) |
Definition at line 308 of file ows_layer.c.
References List::first, list_add_by_copy(), list_init(), List_node::next, ows_layer_prefix_to_uri(), and List_node::value.
Referenced by wfs_describe_feature_type().
bool ows_layer_list_retrievable | ( | const ows_layer_list * | ll | ) |
Definition at line 125 of file ows_layer.c.
References Ows_layer_list::first, Ows_layer_node::layer, Ows_layer_node::next, and Ows_layer::retrievable.
Referenced by wfs_feature_type_list().
bool ows_layer_list_writable | ( | const ows_layer_list * | ll | ) |
Definition at line 159 of file ows_layer.c.
References Ows_layer_list::first, Ows_layer_node::layer, Ows_layer_node::next, and Ows_layer::writable.
Referenced by wfs_feature_type_list().
Definition at line 84 of file ows_layer.c.
References 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 ows_request_check(), wfs_feature_type_list(), wfs_request_check_describe_feature_type(), and wfs_request_check_typename().
buffer * ows_layer_no_uri | ( | ows_layer_list * | ll, |
buffer * | layer_name ) |
Definition at line 376 of file ows_layer.c.
References Buffer::buf, buffer_cmp(), Ows_layer_list::first, Ows_layer_node::layer, Ows_layer::name, Ows_layer::name_no_uri, and Ows_layer_node::next.
Referenced by fe_feature_id(), wfs_complex_type(), wfs_describe_feature_type(), wfs_geojson_display_results(), and wfs_gml_feature_member().
buffer * ows_layer_no_uri_to_uri | ( | const ows_layer_list * | ll, |
buffer * | name_no_uri ) |
Definition at line 392 of file ows_layer.c.
References Buffer::buf, buffer_cmp(), Ows_layer_list::first, Ows_layer_node::layer, Ows_layer::name, Ows_layer::name_no_uri, and Ows_layer_node::next.
Referenced by wfs_gml_display_results(), wfs_request_check_fid(), and wfs_retrieve_sql_request_list().
void ows_layer_node_free | ( | ows_layer_list * | ll, |
ows_layer_node * | ln ) |
Definition at line 477 of file ows_layer.c.
References Ows_layer_list::first, Ows_layer_node::layer, Ows_layer_node::next, ows_layer_free(), and Ows_layer_node::prev.
Referenced by ows_layer_list_free().
ows_layer_node * ows_layer_node_init | ( | ) |
Definition at line 461 of file ows_layer.c.
References Ows_layer_node::layer, Ows_layer_node::next, and Ows_layer_node::prev.
Referenced by ows_layer_list_add().
buffer * ows_layer_ns_prefix | ( | ows_layer_list * | ll, |
buffer * | layer_name_prefix ) |
Definition at line 408 of file ows_layer.c.
References Buffer::buf, buffer_cmp(), Ows_layer_list::first, Ows_layer_node::layer, Ows_layer::name_prefix, Ows_layer_node::next, and Ows_layer::ns_prefix.
Referenced by ows_layer_list_by_ns_prefix(), ows_layer_list_ns_prefix(), wfs_gml_feature_member(), and wfs_insert_xml().
buffer * ows_layer_ns_prefix_to_ns_uri | ( | ows_layer_list * | ll, |
buffer * | ns_prefix ) |
Definition at line 359 of file ows_layer.c.
References Buffer::buf, buffer_cmp(), Ows_layer_list::first, Ows_layer_node::layer, Ows_layer_node::next, Ows_layer::ns_prefix, and Ows_layer::ns_uri.
Referenced by wfs_describe_feature_type(), and wfs_generate_schema().
buffer * ows_layer_ns_uri | ( | ows_layer_list * | ll, |
buffer * | ns_prefix ) |
Definition at line 424 of file ows_layer.c.
References Buffer::buf, buffer_cmp(), Ows_layer_list::first, Ows_layer_node::layer, Ows_layer::name, Ows_layer_node::next, and Ows_layer::ns_uri.
Referenced by wfs_insert_xml().
buffer * ows_layer_prefix_to_uri | ( | ows_layer_list * | ll, |
buffer * | layer_name_prefix ) |
Definition at line 343 of file ows_layer.c.
References Buffer::buf, buffer_cmp(), Ows_layer_list::first, Ows_layer_node::layer, Ows_layer::name, Ows_layer::name_prefix, and Ows_layer_node::next.
Referenced by fe_bbox(), fe_binary_comparison_op(), fe_distance_functions(), fe_envelope(), fe_feature_id(), fe_property_name(), fe_spatial_functions(), ows_layer_list_prefix_to_uri(), wfs_complex_type(), wfs_delete_xml(), wfs_describe_feature_type(), wfs_gml_display_results(), wfs_request_check_typename(), wfs_retrieve_sql_request_list(), wfs_retrieve_typename(), and wfs_update_xml().
bool ows_layer_retrievable | ( | const ows_layer_list * | ll, |
const buffer * | name ) |
Definition at line 141 of file ows_layer.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_node::layer, Ows_layer::name, Ows_layer_node::next, and Ows_layer::retrievable.
Referenced by wfs_request_check_fid(), and wfs_request_check_typename().
void ows_layer_storage_flush | ( | ows_layer_storage * | storage, |
FILE * | output ) |
void ows_layer_storage_free | ( | ows_layer_storage * | storage | ) |
Definition at line 54 of file ows_storage.c.
References array_free(), Ows_layer_storage::attributes, buffer_free(), Ows_layer_storage::geom_columns, list_free(), Ows_layer_storage::not_null_columns, Ows_layer_storage::pkey, Ows_layer_storage::pkey_default, Ows_layer_storage::pkey_sequence, Ows_layer_storage::schema, and Ows_layer_storage::table.
Referenced by ows_layer_free(), and ows_layers_storage_fill().
ows_layer_storage * ows_layer_storage_init | ( | ) |
Definition at line 31 of file ows_storage.c.
References array_init(), Ows_layer_storage::attributes, buffer_init(), Ows_layer_storage::geom_columns, Ows_layer_storage::is_geographic, list_init(), Ows_layer_storage::not_null_columns, Ows_layer_storage::pkey, Ows_layer_storage::pkey_default, Ows_layer_storage::pkey_sequence, Ows_layer_storage::schema, Ows_layer_storage::srid, and Ows_layer_storage::table.
Referenced by ows_layer_init().
buffer * ows_layer_uri_to_prefix | ( | ows_layer_list * | ll, |
buffer * | layer_name ) |
Definition at line 327 of file ows_layer.c.
References Buffer::buf, buffer_cmp(), Ows_layer_list::first, Ows_layer_node::layer, Ows_layer::name, Ows_layer::name_prefix, and Ows_layer_node::next.
Referenced by ows_layer_list_ns_prefix(), wfs_feature_type_list(), wfs_generate_schema(), wfs_gml_feature_member(), and wfs_retrieve_sql_request_list().
bool ows_layer_writable | ( | const ows_layer_list * | ll, |
const buffer * | name ) |
Definition at line 175 of file ows_layer.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_node::layer, Ows_layer::name, Ows_layer_node::next, and Ows_layer::writable.
Referenced by wfs_insert_xml(), wfs_request_check_fid(), wfs_request_check_typename(), and wfs_retrieve_typename().
void ows_layers_storage_fill | ( | ows * | o | ) |
Definition at line 479 of file ows_storage.c.
References Buffer::buf, buffer_add_str(), buffer_cmp(), buffer_copy(), buffer_empty(), buffer_free(), buffer_init(), Ows::exit, Ows_layer_list::first, Ows_layer_node::layer, Ows::layers, Ows_layer_node::next, ows_layer_storage_fill(), ows_layer_storage_free(), ows_psql_exec(), Ows_layer_storage::schema, Ows_layer::storage, and Ows_layer_storage::table.
Referenced by main().
void ows_layers_storage_flush | ( | ows * | o, |
FILE * | output ) |
Definition at line 456 of file ows_storage.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_node::layer, Ows::layers, Ows_layer::name_prefix, Ows_layer_node::next, Ows_layer::retrievable, Ows_layer_storage::schema, Ows_layer_storage::srid, Ows_layer::storage, Ows_layer_storage::table, and Ows_layer::writable.
Referenced by ows_usage().
bool ows_libxml_check_namespace | ( | ows * | o, |
xmlNodePtr | n ) |
Definition at line 67 of file ows_libxml.c.
References ows_libxml_check_namespace(), and ows_libxml_check_namespace_node().
Referenced by fe_filter(), ows_libxml_check_namespace(), and ows_schema_validation().
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().
Definition at line 136 of file ows_metadata.c.
References array_get(), array_is_key(), buffer_case_cmp(), buffer_copy(), buffer_free(), buffer_from_str(), buffer_init(), list_add_str(), list_init(), Ows::metadata, ows_error(), OWS_ERROR_MISSING_PARAMETER_VALUE, Ows_meta::type, and Ows_meta::versions.
Referenced by main().
void ows_metadata_flush | ( | ows_meta * | metadata, |
FILE * | output ) |
void ows_metadata_free | ( | ows_meta * | metadata | ) |
Definition at line 115 of file ows_metadata.c.
References Ows_meta::abstract, Ows_meta::access_constraints, buffer_free(), Ows_meta::fees, Ows_meta::keywords, list_free(), Ows_meta::name, Ows_meta::title, Ows_meta::type, and Ows_meta::versions.
Referenced by ows_free().
ows_meta * ows_metadata_init | ( | ) |
Definition at line 92 of file ows_metadata.c.
References Ows_meta::abstract, Ows_meta::access_constraints, Ows_meta::fees, Ows_meta::keywords, Ows_meta::name, Ows_meta::title, Ows_meta::type, and Ows_meta::versions.
Referenced by ows_parse_config_metadata().
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().
void ows_parse_config_mapfile | ( | ows * | o, |
const char * | filename ) |
Referenced by ows_parse_config().
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().
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().
void ows_request_check | ( | ows * | o, |
ows_request * | or, | ||
const array * | cgi, | ||
const char * | query ) |
Definition at line 263 of file ows_request.c.
References array_get(), array_is_key(), Buffer::buf, buffer_case_cmp(), buffer_cmp(), buffer_free(), buffer_from_str(), cgi_method_get(), cgi_method_post(), check_regexp(), Ows::check_schema, List::first, Ows_layer_list::first, Ows_layer_node::layer, Ows::layers, Ows::metadata, Ows_request::method, Ows_layer::name, List_node::next, Ows_layer_node::next, Ows_layer::ns_prefix, Ows_layer::ns_uri, ows_error(), OWS_ERROR_CONFIG_FILE, OWS_ERROR_INVALID_PARAMETER_VALUE, OWS_ERROR_MISSING_PARAMETER_VALUE, ows_layer_match_table(), OWS_METHOD_KVP, OWS_METHOD_XML, ows_request_check_version(), ows_schema_validation(), ows_version_get(), ows_version_init(), ows_version_set(), Ows::request, Ows_request::service, Ows_layer::srid, Ows_layer::title, Ows_meta::type, Buffer::use, List_node::value, Ows_request::version, WFS, wfs_generate_schema(), WFS_SCHEMA_TYPE_100, and WFS_SCHEMA_TYPE_110.
Referenced by main().
void ows_request_flush | ( | ows_request * | or, |
FILE * | output ) |
void ows_request_free | ( | ows_request * | or | ) |
Definition at line 57 of file ows_request.c.
References OWS_SERVICE_UNKNOWN, ows_version_free(), Ows_request::request, Ows_request::service, Ows_request::version, WFS, Ows_request::wfs, and wfs_request_free().
Referenced by main(), and ows_free().
ows_request * ows_request_init | ( | ) |
Definition at line 39 of file ows_request.c.
References Ows_request::method, OWS_METHOD_UNKNOWN, OWS_SERVICE_UNKNOWN, Ows_request::request, Ows_request::service, Ows_request::version, and Ows_request::wfs.
Referenced by main().
int ows_schema_validation | ( | ows * | o, |
buffer * | xml_schema, | ||
buffer * | xml, | ||
bool | schema_is_file, | ||
enum ows_schema_type | schema_type ) |
Definition at line 154 of file ows_request.c.
References Buffer::buf, libxml2_callback(), ows_generate_schema(), ows_libxml_check_namespace(), Ows::schema_wfs_100, Ows::schema_wfs_110, Buffer::use, WFS_SCHEMA_TYPE_100, and WFS_SCHEMA_TYPE_110.
Referenced by fe_filter(), and ows_request_check().
void ows_service_identification | ( | const ows * | o | ) |
Definition at line 108 of file ows_get_capabilities.c.
References Ows_meta::abstract, Ows_meta::access_constraints, Buffer::buf, Ows_meta::fees, List::first, Ows_meta::keywords, Ows::metadata, List_node::next, Ows::output, Ows_meta::title, Ows_meta::type, List_node::value, and Ows_meta::versions.
Referenced by wfs_get_capabilities_110().
void ows_service_metadata | ( | const ows * | o | ) |
Definition at line 62 of file ows_get_capabilities.c.
References Ows_meta::abstract, Ows_meta::access_constraints, Buffer::buf, Ows_meta::fees, List::first, Ows_meta::keywords, Ows::metadata, Ows_meta::name, List_node::next, Ows::online_resource, Ows::output, Ows_meta::title, and List_node::value.
Referenced by wfs_get_capabilities_100().
void ows_service_provider | ( | const ows * | o | ) |
Definition at line 155 of file ows_get_capabilities.c.
References Ows_contact::address, Buffer::buf, 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::output, Ows_contact::phone, Ows_contact::position, Ows_contact::postcode, Ows_contact::site, and Ows_contact::state.
Referenced by wfs_get_capabilities_110().
Definition at line 56 of file ows_srs.c.
References Ows_srs::auth_name, Ows_srs::auth_srid, buffer_copy(), Ows_srs::honours_authority_axis_order, Ows_srs::is_axis_order_gis_friendly, Ows_srs::is_geographic, Ows_srs::is_long, and Ows_srs::srid.
Referenced by ows_bbox_boundaries().
void ows_srs_flush | ( | ows_srs * | c, |
FILE * | output ) |
void ows_srs_free | ( | ows_srs * | c | ) |
Definition at line 76 of file ows_srs.c.
References Ows_srs::auth_name, and buffer_free().
Referenced by fe_envelope(), fe_spatial_functions(), ows_bbox_free(), ows_bbox_set_from_str(), ows_psql_gml_to_sql(), wfs_insert_xml(), wfs_request_free(), and wfs_update_xml().
Definition at line 423 of file ows_srs.c.
References Buffer::buf, buffer_add_int(), buffer_add_str(), buffer_free(), buffer_init(), and ows_psql_exec().
Referenced by ows_srs_get_from_srid(), and wfs_feature_type_list().
Definition at line 398 of file ows_srs.c.
References Buffer::buf, List::first, list_add(), list_init(), List_node::next, ows_srs_get_from_a_srid(), List::size, and List_node::value.
Definition at line 380 of file ows_srs.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_node::layer, Ows::layers, Ows_layer::name, Ows_layer_node::next, Ows_layer_storage::srid, and Ows_layer::storage.
Referenced by fe_envelope(), fe_kvp_bbox(), fe_spatial_functions(), wfs_feature_type_list(), wfs_request_check_srs(), and wfs_retrieve_sql_request_list().
ows_srs * ows_srs_init | ( | ) |
Definition at line 37 of file ows_srs.c.
References Ows_srs::auth_name, Ows_srs::auth_srid, buffer_init(), Ows_srs::honours_authority_axis_order, Ows_srs::is_axis_order_gis_friendly, Ows_srs::is_geographic, Ows_srs::is_long, and Ows_srs::srid.
Referenced by fe_envelope(), fe_spatial_functions(), ows_bbox_init(), ows_bbox_set_from_str(), ows_psql_gml_to_sql(), wfs_insert_xml(), wfs_request_check_srs(), and wfs_update_xml().
Definition at line 361 of file ows_srs.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_storage::is_geographic, Ows_layer_node::layer, Ows::layers, Ows_layer::name, Ows_layer_node::next, and Ows_layer::storage.
Referenced by fe_distance_functions(), and wfs_retrieve_sql_request_select().
Definition at line 185 of file ows_srs.c.
References Ows_srs::auth_name, Ows_srs::auth_srid, Buffer::buf, buffer_add_int(), buffer_add_str(), buffer_copy(), buffer_empty(), buffer_free(), buffer_init(), ows_psql_exec(), ows_srs_set_is_geographic_and_is_axis_order_gis_friendly_from_def(), Ows::pg, and Ows_srs::srid.
Definition at line 251 of file ows_srs.c.
References Ows_srs::auth_name, Ows_srs::auth_srid, Buffer::buf, buffer_add_int(), buffer_add_str(), buffer_empty(), buffer_free(), buffer_init(), Ows_srs::honours_authority_axis_order, Ows_srs::is_axis_order_gis_friendly, Ows_srs::is_geographic, ows_psql_exec(), ows_srs_set_is_geographic_and_is_axis_order_gis_friendly_from_def(), and Ows_srs::srid.
Referenced by fe_spatial_functions(), ows_bbox_set(), ows_bbox_transform(), ows_srs_set_from_srsname(), and wfs_request_check_srs().
Definition at line 303 of file ows_srs.c.
References Ows_srs::honours_authority_axis_order, Ows_srs::is_long, and ows_srs_set_from_srid().
Referenced by fe_envelope(), fe_spatial_functions(), ows_bbox_set_from_str(), ows_psql_gml_to_sql(), wfs_insert_xml(), wfs_request_check_srs(), and wfs_update_xml().
Definition at line 232 of file ows_srs.c.
References Ows_srs::auth_name, Ows_srs::auth_srid, buffer_add_str(), buffer_empty(), Ows_srs::is_axis_order_gis_friendly, Ows_srs::is_geographic, and Ows_srs::srid.
Referenced by ows_bbox_set(), and ows_bbox_set_from_geobbox().
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().
bool ows_version_check | ( | ows_version * | v | ) |
Definition at line 114 of file ows_version.c.
References Ows_version::major, Ows_version::minor, and Ows_version::release.
Referenced by ows_config_check().
void ows_version_flush | ( | ows_version * | v, |
FILE * | output ) |
void ows_version_free | ( | ows_version * | v | ) |
Definition at line 94 of file ows_version.c.
Referenced by ows_free(), and ows_request_free().
int ows_version_get | ( | ows_version * | v | ) |
Definition at line 106 of file ows_version.c.
References Ows_version::major, Ows_version::minor, and Ows_version::release.
Referenced by fe_filter(), fe_filter_capabilities_110(), fe_functions_capabilities(), fe_property_is_like(), ows_pg(), ows_psql_gml_to_sql(), ows_request_check(), wfs_describe_feature_type(), wfs_error(), wfs_feature_type_list(), wfs_generate_schema(), wfs_geojson_display_results(), wfs_get_capabilities(), wfs_gml_bounded_by(), wfs_gml_display_namespaces(), wfs_request_check_bbox(), wfs_request_check_get_capabilities(), wfs_request_check_output(), wfs_request_check_srs(), wfs_request_check_version(), wfs_transaction_insert_result(), wfs_transaction_response(), and wfs_transaction_result().
ows_version * ows_version_init | ( | ) |
Definition at line 33 of file ows_version.c.
References Ows_version::major, Ows_version::minor, and Ows_version::release.
Referenced by ows_init(), ows_psql_postgis_version(), and ows_request_check().
void ows_version_set | ( | ows_version * | v, |
int | major, | ||
int | minor, | ||
int | release ) |
Definition at line 51 of file ows_version.c.
References Ows_version::major, Ows_version::minor, and Ows_version::release.
Referenced by ows_init(), ows_request_check(), ows_request_check_version(), and wfs_request_check_get_capabilities().
bool ows_version_set_str | ( | ows_version * | v, |
char * | str ) |
Definition at line 61 of file ows_version.c.
References check_regexp(), Ows_version::major, Ows_version::minor, and Ows_version::release.
Referenced by ows_parse_config_tinyows().
void wfs | ( | ows * | o, |
wfs_request * | wf ) |
Definition at line 949 of file wfs_request.c.
References array_get(), array_is_key(), buffer_cmp(), Ows::cgi, cgi_method_get(), ows_error(), OWS_ERROR_INVALID_PARAMETER_VALUE, wfs_delete(), WFS_DESCRIBE_FEATURE_TYPE, wfs_describe_feature_type(), WFS_GET_CAPABILITIES, wfs_get_capabilities(), WFS_GET_FEATURE, wfs_get_feature(), wfs_parse_operation(), and WFS_TRANSACTION.
Referenced by main().
void wfs_delete | ( | ows * | o, |
wfs_request * | wr ) |
Definition at line 635 of file wfs_transaction.c.
References buffer_add_str(), buffer_copy(), buffer_free(), buffer_init(), Filter_encoding::error_code, fe_error(), fe_filter(), fe_kvp_bbox(), fe_kvp_featureid(), FE_NO_ERROR, filter_encoding_free(), filter_encoding_init(), List::first, list_explode(), list_free(), List_node::next, Mlist_node::next, ows_psql_schema_name(), ows_psql_table_name(), Filter_encoding::sql, Buffer::use, List_node::value, Mlist_node::value, wfs_error(), WFS_ERROR_NO_MATCHING, wfs_execute_transaction_request(), and wfs_transaction_response().
Referenced by wfs().
void wfs_describe_feature_type | ( | ows * | o, |
wfs_request * | wr ) |
Definition at line 164 of file wfs_describe.c.
References Buffer::buf, buffer_cmp(), buffer_flush(), Ows::encoding, List::first, List::last, Ows::layers, list_free(), list_pop(), List_node::next, Ows::output, ows_error(), OWS_ERROR_CONFIG_FILE, ows_layer_list_by_ns_prefix(), ows_layer_list_ns_prefix(), ows_layer_list_prefix_to_uri(), ows_layer_no_uri(), ows_layer_ns_prefix_to_ns_uri(), ows_layer_prefix_to_uri(), ows_version_get(), Ows::request, List_node::value, Ows_request::version, wfs_complex_type(), WFS_GML212, WFS_GML311, and WFS_XML_SCHEMA.
Referenced by wfs().
void wfs_error | ( | ows * | o, |
wfs_request * | wf, | ||
enum wfs_error_code | code, | ||
char * | message, | ||
char * | locator ) |
Definition at line 124 of file wfs_error.c.
References Ows::output, ows_version_get(), Ows::request, Ows_request::version, wfs_error_100(), and wfs_error_110().
Referenced by wfs_delete(), wfs_parse_operation(), wfs_request_check_fid(), wfs_request_check_filter(), wfs_request_check_output(), wfs_request_check_parameters(), wfs_request_check_propertyname(), wfs_request_check_typename(), wfs_retrieve_sql_request_list(), and wfs_transaction_response().
buffer * wfs_generate_schema | ( | ows * | o, |
ows_version * | version ) |
Definition at line 280 of file wfs_describe.c.
References buffer_add(), buffer_add_str(), buffer_cmp(), buffer_copy(), buffer_init(), List::first, Ows::layers, list_add_by_copy(), list_free(), list_init(), List_node::next, ows_layer_list_by_ns_prefix(), ows_layer_list_having_storage(), ows_layer_list_ns_prefix(), ows_layer_ns_prefix_to_ns_uri(), ows_layer_uri_to_prefix(), ows_version_get(), Ows::schema_dir, List_node::value, WFS_SCHEMA_100, and WFS_SCHEMA_110.
Referenced by ows_request_check().
void wfs_get_capabilities | ( | ows * | o, |
wfs_request * | wr ) |
Definition at line 581 of file wfs_get_capabilities.c.
References ows_version_get(), Ows::request, Ows_request::version, wfs_get_capabilities_100(), and wfs_get_capabilities_110().
Referenced by wfs().
void wfs_get_feature | ( | ows * | o, |
wfs_request * | wr ) |
Definition at line 899 of file wfs_get_feature.c.
References buffer_cmp(), mlist_free(), WFS_GEOJSON, wfs_geojson_display_results(), WFS_GML212, WFS_GML311, wfs_gml_display_hits(), wfs_gml_display_results(), WFS_JSONP, and wfs_retrieve_sql_request_list().
Referenced by wfs().
void wfs_gml_feature_member | ( | ows * | o, |
wfs_request * | wr, | ||
buffer * | layer_name, | ||
list * | properties, | ||
PGresult * | res ) |
Definition at line 177 of file wfs_get_feature.c.
References array_get(), Buffer::buf, buffer_cmp(), List::first, in_list_str(), Ows::layers, Ows::output, ows_layer_get(), ows_layer_no_uri(), ows_layer_ns_prefix(), ows_layer_uri_to_prefix(), ows_psql_describe_table(), ows_psql_id_column(), ows_psql_not_null_properties(), Buffer::use, List_node::value, WFS_GML311, and wfs_gml_display_feature().
Referenced by wfs_gml_display_results().
void wfs_parse_operation | ( | ows * | o, |
wfs_request * | wr, | ||
buffer * | op ) |
Definition at line 1042 of file wfs_transaction.c.
References alist_init(), Buffer::buf, buffer_add_str(), buffer_cmp(), buffer_empty(), buffer_free(), buffer_init(), Buffer::use, wfs_delete_xml(), wfs_error(), WFS_ERROR_NO_MATCHING, wfs_execute_transaction_request(), wfs_insert_xml(), wfs_transaction_response(), and wfs_update_xml().
Referenced by wfs().
void wfs_request_check | ( | ows * | o, |
wfs_request * | wr, | ||
const array * | cgi ) |
Definition at line 905 of file wfs_request.c.
References array_get(), buffer_case_cmp(), cgi_method_get(), Ows::exit, ows_error(), OWS_ERROR_INVALID_PARAMETER_VALUE, OWS_ERROR_OPERATION_NOT_SUPPORTED, Ows::request, Ows_request::service, WFS, WFS_DESCRIBE_FEATURE_TYPE, WFS_GET_CAPABILITIES, WFS_GET_FEATURE, wfs_request_check_describe_feature_type(), wfs_request_check_get_capabilities(), wfs_request_check_get_feature(), wfs_request_check_transaction(), wfs_request_check_version(), and WFS_TRANSACTION.
Referenced by main().
void wfs_request_flush | ( | wfs_request * | wr, |
FILE * | output ) |
void wfs_request_free | ( | wfs_request * | wr | ) |
Definition at line 168 of file wfs_request.c.
References alist_free(), buffer_free(), list_free(), mlist_free(), ows_bbox_free(), and ows_srs_free().
Referenced by ows_request_free().
wfs_request * wfs_request_init | ( | ) |
Definition at line 36 of file wfs_request.c.
References WFS_FORMAT_UNKNOWN, and WFS_REQUEST_UNKNOWN.
Referenced by main().
Definition at line 598 of file wfs_request.c.
References Buffer::buf, buffer_ncmp(), buffer_shift(), List::first, Ows::layers, list_free(), List_node::next, ows_layer_list_ns_prefix(), Buffer::use, and List_node::value.
Referenced by fe_property_name(), wfs_request_check_propertyname(), wfs_request_check_sortby(), and wfs_update_xml().