3
如何获得以平方米为单位的WGS84多边形的面积?
下面以平方度给我了多边形的面积: SELECT ST_Area(ST_GeomFromText('POLYGON((871325.790874952 6105405.3261047,871418.748307692 6105359.72944624,871346.22022442 6105215.141258,871254.85408906 6105261.72007212,871325.790874952 6105405.3261047))',4326)) As sqm; 结果:16586.2319335938 如何获得以平方米为单位的面积?我尝试了以下方法: SELECT ST_Area(ST_Transform(ST_GeomFromText('POLYGON((871325.790874952 6105405.3261047,871418.748307692 6105359.72944624,871346.22022442 6105215.141258,871254.85408906 6105261.72007212,871325.790874952 6105405.3261047))',4326)),31467) As sqm; 但是似乎ST_Transform不起作用。我收到以下错误消息: ERROR: function st_transform(geometry) does not exist LINE 1: SELECT ST_Area(ST_Transform(ST_GeomFromText('POLYGON((871325... ^ HINT: No function matches the given name and argument types. You might need to add explicit type …