Project

General

Profile

« Previous | Next » 

Revision 6430

schemas/vegbien.sql: Added _locationnarrative_is_cultivated()

View differences:

vegbien.sql
444 444

  
445 445

  
446 446
--
447
-- Name: _locationnarrative_is_cultivated(text); Type: FUNCTION; Schema: public; Owner: -
448
--
449

  
450
CREATE FUNCTION _locationnarrative_is_cultivated(locationnarrative text) RETURNS boolean
451
    LANGUAGE sql IMMUTABLE STRICT
452
    AS $_$
453
SELECT
454
    $1 LIKE '%cultivated%'
455
OR  $1 LIKE '%cultivad%'
456
OR  $1 LIKE '%ornamental%'
457
OR  $1 LIKE '%garden%'
458
OR  $1 LIKE '%jardin%'
459
OR  $1 LIKE '%jard?n%'
460
OR  $1 LIKE '%jardim%'
461
OR  $1 LIKE '%plantation%'
462
OR  $1 LIKE '%plantacion%'
463
OR  $1 LIKE '%plantaci?n%'
464
OR  $1 LIKE '%universit%'
465
OR  $1 LIKE '%universidad%'
466
OR  $1 LIKE '%campus%' 
467
OR  $1 LIKE '%urban%'
468
OR  $1 LIKE '%greenhouse%'
469
OR  $1 LIKE '%arboretum%'
470
OR  $1 LIKE '%farm%'
471
OR  $1 LIKE '%weed%'
472
OR  $1 LIKE '%corn field%'
473
$_$;
474

  
475

  
476
--
447 477
-- Name: _m2_to_ha(double precision); Type: FUNCTION; Schema: public; Owner: -
448 478
--
449 479

  

Also available in: Unified diff