AddressForAll / WS

Core infrastructure for AdressForAll Web Services
1 stars 0 forks source link

Acrescentar opção de cadastral_asis em any_load #24

Closed ppKrauss closed 3 years ago

ppKrauss commented 3 years ago

Trecho principal de FUNCTION ingest.any_load() a ser corrigido

  ...
  IF ftype<20 THEN -- feature_type id
    q_ins:= $$
      INSERT INTO ingest.cadastral_asis
      SELECT file_id, cad_id, properties
      FROM scan WHERE properties IS NOT NULL AND cad_id IS NOT NULL
    $$;
  ELSE
    q_ins:= $$
      INSERT INTO ingest.feature_asis
      SELECT *
      FROM scan WHERE geom IS NOT NULL AND ST_IsValid(geom)
    $$;
  END IF;
0e1 commented 3 years ago

Implementado em: https://github.com/AddressForAll/WS/commit/80576fe473cdc2b87d80b3a9fee249f15ee27b0c#diff-8cff83abecbc68d061ba8cd52af7269f9df92d236256a520e3fdce6a457da1fe

e

https://github.com/AddressForAll/WS/commit/5ea39246a90a1cf4a7341a46439106ddb52c4559#diff-8cff83abecbc68d061ba8cd52af7269f9df92d236256a520e3fdce6a457da1fe