I'm trying to make polygon of an airport which must be given distance from start point and end point of runway given as latitude and longitude.
Query I've made looks like this:
INSERT INTO airport (name, polygon)
VALUES(
'some airport name',
ST_SetSRID(
ST_Collect(
ST_Buffer(ST_MakePoint(160.04518, -9.43196), 100),
ST_Buffer(ST_MakePoint(160.06376, -9.42452), 100)
), 4326
)
);
unfortunately result polygon is very weird, it covers almost all earth. I've also tried to add srid to each point but it also didn't work. Any ideas?