Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am getting an error trying to create a bounding box of a geometry using ST_Box2D(). Is the function deprecated? If so, what is the equivalent function?

SELECT ST_Box2D(ST_GeomFromText('LINESTRING(1 2, 3 4, 5 6)'));
share|improve this question

1 Answer 1

up vote 2 down vote accepted

Yes, its removed only available in legacy.sql. Use Box2D instead of ST_Box2D.

The reason it was removed is that its a casting function so we standardized on having casting functions have same name as thing they cast to to be consistent with the rest of PostgreSQL proper.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.