tinyows 1.2.2
ows_srs.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <libpq-fe.h>
#include <string.h>
#include "ows.h"
Include dependency graph for ows_srs.c:

Go to the source code of this file.

Functions

ows_srsows_srs_init ()
 
ows_srsows_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)
 
listows_srs_get_from_srid (ows *o, list *l)
 
bufferows_srs_get_from_a_srid (ows *o, int srid)
 

Function Documentation

◆ ows_srs_copy()

ows_srs * ows_srs_copy ( ows_srs * d,
ows_srs * s )

◆ ows_srs_free()

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().

Here is the call graph for this function:

◆ ows_srs_get_from_a_srid()

buffer * ows_srs_get_from_a_srid ( ows * o,
int srid )

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().

Here is the call graph for this function:

◆ ows_srs_get_from_srid()

list * ows_srs_get_from_srid ( ows * o,
list * l )

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.

Here is the call graph for this function:

◆ ows_srs_get_srid_from_layer()

◆ ows_srs_init()

◆ ows_srs_meter_units()

◆ ows_srs_set()

bool ows_srs_set ( ows * o,
ows_srs * s,
const buffer * auth_name,
int auth_srid )

◆ ows_srs_set_from_srid()

◆ ows_srs_set_from_srsname()

bool ows_srs_set_from_srsname ( ows * o,
ows_srs * s,
const char * srsname )

◆ ows_srs_set_geobbox()

bool ows_srs_set_geobbox ( ows * o,
ows_srs * s )

◆ ows_srs_set_is_geographic_and_is_axis_order_gis_friendly_from_def()

static void ows_srs_set_is_geographic_and_is_axis_order_gis_friendly_from_def ( ows_srs * s,
const char * proj4text,
const char * srtext )
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().


Generated for tinyows by doxygen 1.13.2