geo/includes/geo.wkb.inc, line 2
- Versions
- 6
geo_wkb_types($key = NULL)
Code
<?php
function geo_wkb_types($key = NULL) {
$geo_types = array(
1 => 'point',
2 => 'linestring',
3 => 'polygon',
4 => 'multipoint',
5 => 'multilinestring',
6 => 'multipolygon',
);
if ($key) return $geo_types[$key];
return $geo_types;
}
?> 