tinyows 1.2.2
|
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <float.h>
#include <string.h>
#include <math.h>
#include "ows.h"
Go to the source code of this file.
Functions | |
ows_bbox * | ows_bbox_init () |
void | ows_bbox_free (ows_bbox *b) |
bool | ows_bbox_set (ows *o, ows_bbox *b, double xmin, double ymin, double xmax, double ymax, int srid) |
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) |
ows_bbox * | ows_bbox_boundaries (ows *o, list *from, list *where, ows_srs *srs) |
bool | ows_bbox_transform (ows *o, ows_bbox *bb, int srid) |
bool | ows_bbox_set_from_geobbox (ows *o, ows_bbox *bb, ows_geobbox *geo) |
void | ows_bbox_to_query (ows *o, ows_bbox *bbox, buffer *query) |
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_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.