Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

952
Vistas
How to change buffer size from degrees to distance by meters in PostGIS?
SELECT ST_Buffer(geom, 400)
FROM my_table;

This query creates a buffer in 400 degrees. How can I change it to have 400m buffers around points? I have tried to use ST_Transform and ST_SetSRID but I got errors. Most likely because I structure my query wrong. Thank you for your help.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

ST_buffer uses the projection unit. You can cast the geometry to a geography to use meters, or rely on a suitable local projection whose unit is in meters.

SELECT ST_Buffer(geom::geography, 400)
FROM my_table;

If it is not yet set, you may have to set the original CRS first

SELECT ST_Buffer(st_setSRID(geom,4326)::geography, 400)
FROM my_table;
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda