0% found this document useful (0 votes)
28 views2 pages

See Also 7.12.10 ST - Point - Inside - Circle Name: Note This Only Works For Points As The Name Suggests

This document summarizes the ST_Point_Inside_Circle PostGIS function. ST_Point_Inside_Circle takes in a point geometry, x and y coordinates of a circle's center, and the circle's radius. It returns true if the point falls within the circle boundaries, and false otherwise. It only works for point geometries, as the function name implies. Examples are provided demonstrating how to call the function and interpret its boolean output.

Uploaded by

Mathias Eder
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

See Also 7.12.10 ST - Point - Inside - Circle Name: Note This Only Works For Points As The Name Suggests

This document summarizes the ST_Point_Inside_Circle PostGIS function. ST_Point_Inside_Circle takes in a point geometry, x and y coordinates of a circle's center, and the circle's radius. It returns true if the point falls within the circle boundaries, and false otherwise. It only works for point geometries, as the function name implies. Examples are provided demonstrating how to call the function and interpret its boolean output.

Uploaded by

Mathias Eder
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

PostGIS 1.5.

1 Manual
264 / 315

See Also
7.12.10 ST_Point_Inside_Circle
Name
ST_Point_Inside_Circle Is the point geometry insert circle defined by center_x, center_y , radius

Synopsis
boolean ST_Point_Inside_Circle(geometry a_point, float center_x, float center_y, float radius);

Description
The syntax for this functions is point_inside_circle(<geometry>,<circle_center_x>,<circle_center_y>,<radius>). Returns the
true if the geometry is a point and is inside the circle. Returns false otherwise.

Note This only works for points as the name suggests

Examples
SELECT ST_Point_Inside_Circle(ST_Point(1,2), 0.5, 2, 3);
st_point_inside_circle
-----------------------t

See Also
ST_DWithin

7.12.11 ST_XMax
Name
ST_XMax Returns X maxima of a bounding box 2d or 3d or a geometry.

Synopsis
float ST_XMax(box3d aGeomorBox2DorBox3D);

PostGIS 1.5.1 Manual


265 / 315

Description
Returns X maxima of a bounding box 2d or 3d or a geometry.
Note
Although this function is only defined for box3d, it will work for box2d and geometry because of the auto-casting behavior
defined for geometries and box2d. However you can not feed it a geometry or box2d text represenation, since that will
not auto-cast.

This function supports 3d and will not drop the z-index.


This method supports Circular Strings and Curves

Examples
SELECT ST_XMax(BOX3D(1 2 3, 4 5 6));
st_xmax
------4
SELECT ST_XMax(ST_GeomFromText(LINESTRING(1 3 4, 5 6 7)));
st_xmax
------5
SELECT ST_XMax(CAST(BOX(-3 2, 3 4) As box2d));
st_xmax
------3
--Observe THIS DOES NOT WORK because it will try to autocast the string representation to a BOX3D
SELECT ST_XMax(LINESTRING(1 3, 5 6));
--ERROR:

BOX3D parser - doesnt start with BOX3D(

SELECT ST_XMax(ST_GeomFromEWKT(CIRCULARSTRING(220268 150415 1,220227 150505 2,220227


150406 3)));
st_xmax
-------220288.248780547

See Also
ST_XMin, ST_YMax, ST_YMin, ST_ZMax, ST_ZMin

7.12.12 ST_XMin
Name
ST_XMin Returns X minima of a bounding box 2d or 3d or a geometry.

You might also like