Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

285
Views
PostGIS con Laravel

Por alguna razón, usar ST_Intersects en Laravel da error:

 Undefined function: 7 ERROR: function st_intersects(public.geometry, public.geometry) does not exist

Exactamente la misma consulta, con la misma base de datos funciona perfectamente bien en PHP simple.

Texto completo de la consulta:

 $query = "SELECT estado, municipio, COUNT(*) FROM public.focos_bdq, dados_geo.poligonos_deter WHERE ST_Intersects(focos_bdq.geometria, poligonos_deter.geom) AND bioma LIKE '$bioma_bd' AND date_trunc('month', data_hora_gmt)::date = '$mes_anterior' AND (satelite LIKE 'AQUA%' OR satelite LIKE 'TERRA%') GROUP BY municipio, estado ORDER BY COUNT(*) DESC"; $focos = \DB::select($query);
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Tal vez debería agregar el nombre del esquema (postgis) al nombre de la función. postgis.ST_Intersects(...

Alternativamente, el usuario con el que laravel inicia sesión podría necesitar tener su ruta de búsqueda de esquema configurada correctamente.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!