Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove blank page #1925

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
{
"title": "ST_AREA_SQUARE_METERS",
"language": "en"
}
---

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

## Description

Calculate the area of the region on the sphere of the Earth

## Alias

- ST_Area_Square_Km

## Syntax

```sql
ST_Area_Square_Meters( <geo>)
```

## Parameters

| Parameters | Instructions |
| -- |--------|
| `<geo>` | The spherical position of the earth |

## Return Value

ST_Area_Square_Meters( <geo>): the units returned are square meters

ST_Area_Square_Km( <geo>): the units returned are square kilometers

## Examples

```sql
SELECT ST_Area_Square_Meters(ST_Circle(0, 0, 1));
```

```text
+-------------------------------------------------+
| st_area_square_meters(st_circle(0.0, 0.0, 1.0)) |
+-------------------------------------------------+
| 3.1415926535897869 |
+-------------------------------------------------+
```

```sql
SELECT ST_Area_Square_Km(ST_Polygon("POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))"));
```

```text
+----------------------------------------------------------------------+
| st_area_square_km(st_polygon('POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))')) |
+----------------------------------------------------------------------+
| 12364.036567076409 |
+----------------------------------------------------------------------+
```

```sql
SELECT ST_Area_Square_Meters(ST_Point(0, 1));
```

```text
+-------------------------------------------+
| st_area_square_meters(st_point(0.0, 1.0)) |
+-------------------------------------------+
| 0 |
+-------------------------------------------+
```

```sql
SELECT ST_Area_Square_Meters(ST_LineFromText("LINESTRING (1 1, 2 2)"));
```

```text
+-----------------------------------------------------------------+
| st_area_square_meters(st_linefromtext('LINESTRING (1 1, 2 2)')) |
+-----------------------------------------------------------------+
| 0 |
+-----------------------------------------------------------------+
```

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
{
"title": "ST_ASTEXT,ST_ASWKT",
"title": "ST_ASTEXT",
"language": "en"
}
---
Expand Down Expand Up @@ -28,6 +28,10 @@ under the License.

Convert a geometric figure to a representation of WKT (Well Known Text)

## Alias

- ST_ASWKT

## Syntax

```sql
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
{
"title": "ST_GEOMETRYFROMTEXT,ST_GEOMFROMTEXT",
"title": "ST_GEOMETRYFROMTEXT",
"language": "en"
}
---
Expand Down Expand Up @@ -28,6 +28,11 @@ under the License.

Convert a linear WKT (Well Known Text) to the corresponding memory geometry


## Alias

- ST_GEOMFROMTEXT

## Syntax

```sql
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
{
"title": "ST_GEOMETRYFROMWKB,ST_GEOMFROMWKB",
"title": "ST_GEOMETRYFROMWKB",
"language": "en"
}
---
Expand Down Expand Up @@ -28,6 +28,10 @@ under the License.

Converts a standard figure WKB (Well-known binary) to the corresponding memory geometry

## Alias

- ST_GEOMFROMWKB

## Syntax

```sql
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
{
"title": "ST_LINEFROMTEXT,ST_LINESTRINGFROMTEXT",
"title": "ST_LINEFROMTEXT",
"language": "en"
}
---
Expand Down Expand Up @@ -28,6 +28,10 @@ under the License.

Converts a WKT (Well Known Text) to a memory representation in the form of a Line

## Alias

- ST_LINESTRINGFROMTEXT

## Syntax

```sql
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
{
"title": "ST_POLYGON,ST_POLYFROMTEXT,ST_POLYGONFROMTEXT",
"title": "ST_POLYGON",
"language": "en"
}
---
Expand Down Expand Up @@ -28,6 +28,11 @@ under the License.

Convert a WKT (Well Known Text) to the corresponding polygonal memory form

## Alias

- st_polygonfromtext
- st_polyfromtext

## Syntax

```sql
Expand Down
Loading