PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwtype_name()

const char* lwtype_name ( uint8_t  type)

Return the type name string associated with a type number (e.g.

Point, LineString, Polygon)

Definition at line 218 of file lwutil.c.

References lwgeomTypeName.

Referenced by _lwt_AddLineEdge(), analyze_geometry(), assvg_geom_buf(), assvg_geom_size(), asx3d3_multi_buf(), circ_tree_print(), do_type_test(), encode_geometry(), geography_valid_type(), geometry_geometrytype(), gserialized_from_any_size(), gserialized_from_lwgeom_any(), lw_dist2d_distribute_bruteforce(), lw_dist2d_distribute_fast(), lw_dist3d_distribute_bruteforce(), lwcircstring_from_lwpointarray(), lwcircstring_from_wkb_state(), lwcollection_add_lwgeom(), lwcollection_extract(), lwcollection_from_gserialized_buffer(), lwcollection_summary(), lwcompound_contains_point(), lwcompound_linearize(), lwcompound_to_wkt_sb(), lwcurvepoly_add_ring(), lwcurvepoly_to_wkt_sb(), LWGEOM2GEOS(), lwgeom_affine(), lwgeom_calculate_circ_tree(), lwgeom_calculate_gbox_cartesian(), lwgeom_calculate_gbox_geodetic(), lwgeom_check_geodetic(), lwgeom_clean(), lwgeom_clip_to_ordinate_range(), lwgeom_clone(), lwgeom_clone_deep(), LWGEOM_collect(), lwgeom_collect_endpoints(), lwgeom_construct_empty(), lwgeom_count_rings(), lwgeom_count_vertices(), lwgeom_dimension(), lwgeom_dimensionality(), lwgeom_distance_spheroid(), lwgeom_force_dims(), lwgeom_free(), lwgeom_from_gserialized(), lwgeom_from_gserialized_buffer(), lwgeom_from_twkb_state(), lwgeom_from_wkb_state(), lwgeom_grid(), lwgeom_homogenize(), lwgeom_interpolate_point(), lwgeom_is_empty(), lwgeom_locate_along(), lwgeom_longitude_shift(), lwgeom_make_geos_friendly(), lwgeom_nudge_geodetic(), lwgeom_release(), lwgeom_remove_repeated_points(), lwgeom_same(), lwgeom_scale(), lwgeom_segmentize_sphere(), lwgeom_set_effective_area(), lwgeom_set_geodetic(), lwgeom_simplify(), LWGEOM_snaptogrid(), LWGEOM_snaptogrid_pointoff(), lwgeom_split(), lwgeom_startpoint(), lwgeom_subdivide_recursive(), lwgeom_swap_ordinates(), lwgeom_to_encoded_polyline(), lwgeom_to_geojson(), lwgeom_to_gml2(), lwgeom_to_gml3(), lwgeom_to_kml2_sb(), LWGEOM_to_latlon(), lwgeom_to_points(), lwgeom_to_svg(), lwgeom_to_twkb_buf(), lwgeom_to_wkb_buf(), lwgeom_to_wkb_size(), lwgeom_to_wkt_sb(), lwgeom_to_x3d3(), lwgeom_transform(), lwgeom_twkb_type(), lwgeom_wkb_type(), lwgeom_wrapx(), lwline_from_lwgeom_array(), lwline_from_ptarray(), lwline_from_twkb_state(), lwline_from_wkb_state(), lwline_split(), lwline_summary(), lwmcurve_to_wkt_sb(), lwmsurface_to_wkt_sb(), lwpoint_summary(), lwpoly_from_twkb_state(), lwpoly_from_wkb_state(), lwpoly_split(), lwpoly_summary(), lwtriangle_from_wkb_state(), lwtype_from_wkb_state(), postgis_typmod_out(), postgis_typmod_type(), postgis_valid_typmod(), ShpLoaderGenerateShapeRow(), and ST_MakeValid().

219 {
220  if ( type > 15 )
221  {
222  /* assert(0); */
223  return "Invalid type";
224  }
225  return lwgeomTypeName[(int ) type];
226 }
static char * lwgeomTypeName[]
Definition: lwutil.c:60
type
Definition: ovdump.py:41