tinyows 1.2.2
|
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <libpq-fe.h>
#include <string.h>
#include "ows.h"
Go to the source code of this file.
Functions | |
ows_srs * | ows_srs_init () |
ows_srs * | ows_srs_copy (ows_srs *d, ows_srs *s) |
void | ows_srs_free (ows_srs *c) |
static void | ows_srs_set_is_geographic_and_is_axis_order_gis_friendly_from_def (ows_srs *s, const char *proj4text, const char *srtext) |
bool | ows_srs_set (ows *o, ows_srs *s, const buffer *auth_name, int auth_srid) |
bool | ows_srs_set_geobbox (ows *o, ows_srs *s) |
bool | ows_srs_set_from_srid (ows *o, ows_srs *s, int srid) |
bool | ows_srs_set_from_srsname (ows *o, ows_srs *s, const char *srsname) |
bool | ows_srs_meter_units (ows *o, buffer *layer_name) |
int | ows_srs_get_srid_from_layer (ows *o, buffer *layer_name) |
list * | ows_srs_get_from_srid (ows *o, list *l) |
buffer * | ows_srs_get_from_a_srid (ows *o, int srid) |
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_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().
|
static |
Definition at line 127 of file ows_srs.c.
References Ows_srs::is_axis_order_gis_friendly, and Ows_srs::is_geographic.
Referenced by ows_srs_set(), and ows_srs_set_from_srid().