Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Consultas 2019
Consultas 2019
select b.the_geom
from distritos a, distritos b
where st_touches(a.the_geom, b.the_geom) and a.id=5
select b.ge,nombre
from calles a, estudiantes2019 b
where st_dwithin(a.geom, b.ge,190) and a.nombrec='Av. Arce'
Conjuncionar el distrito 5 y 9
select st_union(a.the_geom,b.the_geom)
from distritos a, distritos b
where a.id=5 and b.id=9
select ge,nombre
from estudiantes2019 a,
(select st_union(a.the_geom,b.the_geom) as gg
from distritos a, distritos b
where a.id=5 and b.id=1) as b
where st_within(ge,gg)
____________________________________
Potosi, 20 de mayo
select a.geom,unidad_edu
from escuelas_potosi a,
(select geom, nombre, st_buffer(geom, 5000) as f
from centros_po20
where nombre='Puna') as b
where st_within(a.geom,f)
_______________________________
con la base de datos Potosi
select a.geom,a.nombree
from municipios a, municipios b
where st_touches(a.geom,b.geom) and b.nombree='Chaqui'
select geom,nombrecp
from centros_pobla a,
(select g, st_area(g) as a
from
(select distrito,st_union(geom) as g
from municipios
group by distrito) as t
order by a desc
limit 1) as b
where st_within(a.geom,g)