1 minute read

Recuadro de Código 21. Función sic_getdemeritolt

Next Article
6. Bibliografía

6. Bibliografía

if pfrentes > 2 then geomfrente := valuacion.sic_getfrentelargo(geomfrente);

end if; vidprediofrente := rfrentes.idprediofrente; vlotetipo := rfrentes.lotetipo; profundidad := (select geom from valuacion.predioprofundidad13 where idprediofrente = vidprediofrente); ……….corte de código…….. if clase = 'INTERMEDIO CON UN SOLO FRENTE' or clase = 'INTERMEDIO CON MAS DE DOS FRENTES' then if medidaprofundidad > ptipo then if st_area(poligono) > atipo then profacumulada = ptipo; if clase = 'INTERMEDIO CON MAS DE DOS FRENTES' then medidaprofundidad = (medidaprofundidad / 2);

Advertisement

end if; parteentera := (select st_setsrid(poligono,srid)); if medidaprofundidad > profacumulada then if vcalle is null then vfraccion := vzona; else vfraccion := vcalle;

end if;

loop exit when finfracciones = true; lineaef := st_offsetcurve(geomfrente,(profacumulada*-1)); ptaef := st_startpoint(lineaef); ptbef := st_endpoint(lineaef); anguloab := st_azimuth(ptaef,ptbef); anguloba := st_azimuth(ptbef,ptaef); incremento := (medidafrente / 0.25); lineaef_ext := st_makeline(st_translate(ptaef,sin(anguloba) * incremento, cos(anguloba) * incremento), st_translate(ptbef,sin(anguloab) * incremento, cos(anguloab) * incremento));

……….corte de código…….. insert into valuacion.prediodemeritolt13 values(uuid_generate_v4(),v_idpredio,vidprediofrente,demfraccion,dft,dpi,dfm,st_area(fraccion1), fraccion1,nfraccion,vfraccion*demfraccion); ……….corte de código…….. return inserto;

end; $BODY$;

Recuadro de Código 21. Función sic_getdemeritolt.

En las líneas amarillas del recuadro de código 21 se observa parte del proceso para la identificación de las franjas, así como la inserción de las mismas en la base de datos y el cálculo de los deméritos.

This article is from: