g_is_valid function

Test if a geometry is valid