Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sHxxh-00BqZp-78 for pgsql-novice@arkaria.postgresql.org; Fri, 14 Jun 2024 03:50:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sHxxd-00CYmU-Pj for pgsql-novice@arkaria.postgresql.org; Fri, 14 Jun 2024 03:50:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sHxxd-00CYmM-Cc for pgsql-novice@lists.postgresql.org; Fri, 14 Jun 2024 03:50:46 +0000 Received: from mx12-003a0503.pphosted.com ([66.159.236.20]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sHxxZ-001ZXk-3f for pgsql-novice@lists.postgresql.org; Fri, 14 Jun 2024 03:50:43 +0000 Received: from pps.filterd (m0409443.ppops.net [127.0.0.1]) by mx12-003a0503.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45DKX6CR006384 for ; Fri, 14 Jun 2024 13:50:35 +1000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tmr.qld.gov.au; h=content-type:date:from:message-id:mime-version:subject:to; s= pod2024; bh=wC1IPdV3fuvwjmOC4u32oS6LOSJ1yJCT6UOH/GOlIDE=; b=pPdq FUmkRtb1KIm4gHGv6V05UgJK9uNrQl8YH4YcutmxJNj7WKnZTLvRLFfmE+V+R6P+ vjg2N8Ma5LSH2d2hC0kpE3PmoWxcZ50xx+FVvxbFvVO6AGrrUifjX2y3v0YsID8l 8IE1GtFQ78yAErbaECWSsYQrfAgxVoNcapmc7UYQMa4yX3WVfw+e21Ag01kOg/IK JRudxzJQFde8oE2yvOeAW7Z27yetjUH8WcBPjoApkk8vanN1QB48ABFF2H/vvmSk yd+llniBuALneGBJQVe8dW0kQztJjNPo0wSHnYUKetonEITNiWSRZp+queNXh12K D50qUfuhFy3hDHULEw== Received: from aus01-me3-obe.outbound.protection.outlook.com (mail-me3aus01lp2232.outbound.protection.outlook.com [104.47.71.232]) by mx12-003a0503.pphosted.com (PPS) with ESMTPS id 3ynwcbvaw0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 14 Jun 2024 13:50:35 +1000 (AEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mAXmTnSPK0l8TenpBAod8Zx8nwtvxKvOsvA0BLgfREw8vDHg1WwfmuzvA5WNxsfV7jAWF7hMyh4AOvG9x+IQ7Gzw6JKufN+9fa0QwvL3NWEqv+8GLpe5UXElYTDpC5VUddULuV7nQ8QzUp1MDnXsZr4bJykekbwFTGAGpiYPR0MMUq2kBYlX9bVokY6JghUO9KQQ4l3P3SoqyLztRm/s5gsgBBTIUAScDFaHgoZUyyrlrbppK0pTTl3Y2UqUh+bv3Bq9XAyKLtMCsD8A75gzCiQ4Bj4w0lkOENIyYPDGHtofo+Pt9ZNYrfJLOQKn14MOU9OXxn1N3/BBMzG6pCKlEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fY/2+ltwZJVKHV5nRAzLCYkgdCqPV3UoCCfzech/pMA=; b=oHwtb8C8ge584VfKaBDPLkIbYppPmvh6mzXWXJpZe7mv/lKSEs62xRi0QCktOFy0+WhxBc334w8gntnT0uxErdK6M2r12WZVK+CsqlLa2dAgDvt8W364vHZepSASrVp+ybFAMzCtD5cijikok/b+7v3+NQKbmsn4Fmayo6GswTUhOuUh3CW7zZ1zoMWfNM4Qh6Ua86xcQ94xXY/2KFb+drmy6QTH2HGWXUZYe1O44XYmuvtTFrNAazhecj63SZxZngWopp0k1/0DE3CXY7ECpOQ/EJ20FNFot39W5UQvHFZc/+5KzblLUkqrekQbMxuXDdI8AtKuEGWzo8OAWNmAzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=tmr.qld.gov.au; dmarc=pass action=none header.from=tmr.qld.gov.au; dkim=pass header.d=tmr.qld.gov.au; arc=none Received: from SY6P282MB3816.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:1d3::5) by SY8P282MB5257.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:2b8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.25; Fri, 14 Jun 2024 03:50:31 +0000 Received: from SY6P282MB3816.AUSP282.PROD.OUTLOOK.COM ([fe80::bbc:af21:c8f3:2639]) by SY6P282MB3816.AUSP282.PROD.OUTLOOK.COM ([fe80::bbc:af21:c8f3:2639%4]) with mapi id 15.20.7677.019; Fri, 14 Jun 2024 03:50:31 +0000 From: Nicholas G Lawrence To: "pgsql-novice@lists.postgresql.org" Subject: How to create a View of geometry type equals point? Thread-Topic: How to create a View of geometry type equals point? Thread-Index: Adq+Dc1lJlUV6naKTkGZVqoxlUsgWw== Date: Fri, 14 Jun 2024 03:50:31 +0000 Message-ID: Accept-Language: en-AU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SY6P282MB3816:EE_|SY8P282MB5257:EE_ x-ms-office365-filtering-correlation-id: 0b092202-d3a4-4a6d-b400-08dc8c25238f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230035|1800799019|366011|376009|38070700013; x-microsoft-antispam-message-info: =?us-ascii?Q?ywbfQr8XK6/kuhQCH8DPvEftcXXnyQzeKz4VKGJ9TJG3fpmFDwHtXvcnuSzm?= =?us-ascii?Q?jR+XbkPKFssxaDSz+n+BCwziiZRIcCgsDzP0M0vYcMw49BvyjwCRQNlFeZRW?= =?us-ascii?Q?z1pVKpNsJb6EEm2cvouuqgZewMkGBg+EnDmlEiBdm9cc2Q6Zy8HhnTieIGC2?= =?us-ascii?Q?1mcJ5dQLhjQfp2WOLd3l2UosykwDElBfd8g/CpjTcQrOx3TfeCm5Hn9k83Kt?= =?us-ascii?Q?Hrn5iOQAexfK22DjyUyR855hwNMygSmbNnMb/ztM7FXZxUbYhh/3l5LYo5Qe?= =?us-ascii?Q?dCBg1W1YCQf8cbLFeZ2IG3BmZ+fC/Z0wHFj8yAWXdhF6387zqIwTg9weOt7W?= =?us-ascii?Q?i+B6ElczekM1u1JnNLpx6hgcRyRKecA8awmUHt1z6YrRleHNYwKFiJ5MgFdZ?= =?us-ascii?Q?OBuo5sVid9e2zHGKkGC8r/2BNIRWC4SCELSa1YUmkI4pgI6YXAQn/Zxxy61B?= =?us-ascii?Q?ZT6STUX+U9m6lLb2ygcPkC328cD0f3BxD9juSgj7GBc/bPwKc7sjv6PH+HnD?= =?us-ascii?Q?0FNzHC8URfhO9YULbyYzQ7jTkoph9rjqpIDO/tQMj7oiF8D3/+ec/O4HbG84?= =?us-ascii?Q?YzLXT/jjIXJhOJ6zUsnJrOqPMYu4HXLyaMGcsVGuIwW36YDIcmimz53tvLAM?= =?us-ascii?Q?yQLeWaC+UlO46MkwjzN1AvBuxfeQGzZTqTpadvlUNRuPKwBGssX1/Qq/qyn/?= =?us-ascii?Q?PzjPLPLt/BzuF7ZpvuXSzX0OIF9h5vZAKew5oZghdS6JuUzFAXBJ5tqkifX7?= =?us-ascii?Q?Txlt6R7pqW1d/sOCAKw46fR5ynXfhNkY1DiG93NIYna68cdNzt/se5pHnYTG?= =?us-ascii?Q?3LrA0U0plkNyiZriY44ruT8zbKu0OR21+FMXHlL++M1pw1YojqsodSIuxed0?= =?us-ascii?Q?HBqR6tjaFSKDLt/lO9jyyiCn9pxd4YvbdvaDvzp2NsyLkC6k40dQqsXndLGF?= =?us-ascii?Q?z+taqBzjGaF5OyIw4P3jBTr6cq26zCqWPxPt/gqZVKkQ9lKc5sJpJ/2cNNIJ?= =?us-ascii?Q?HmDSYleQ+/AQuZJpr6qtzrZv1XdK2miqNm6cwrNW2b+SmTQ0NUGfkdf+8F7V?= =?us-ascii?Q?vqkq9mkRauNT8S/vfLljWJZBE6xttw/mUJKxUaAMz+IYAmKyQ6zax7Lfcb1A?= =?us-ascii?Q?IwP0ttUtHY19DVaodt5/vNmhtdwfiUt5JbHKfdoxnJT1KFZW3NfjrhxO7Tfu?= =?us-ascii?Q?ZZxF4Ap6XCAv1ZdM/8npnmzs1ZJLNhfrCbbN/aBRq8P7M2VhEkNTTkWG/2nP?= =?us-ascii?Q?JLA7SDF8vFwr2Ikce02O+SS84lxYlzyciS2a3KBWi4qou3JEJdV7xJCQzoh6?= =?us-ascii?Q?14aqD6xcgrPP51wg8IYuts2L?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SY6P282MB3816.AUSP282.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230035)(1800799019)(366011)(376009)(38070700013);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?2ycN6pfFYVachvZXw2jVS6Luv0rENG1xAxfivus8P30e+4omO/1zgACUNvS+?= =?us-ascii?Q?RtoXz8el4MH4a8lmbnvLQa93CC7bZ33BJWGrir2L8hiUDCtLaP/NuFkiXaIY?= =?us-ascii?Q?WlZKL5i+9/RIj0Qy6yofh/z951VbBzBkAgi6XVD3SCBcA5yJSjxm+2p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7NEpIw37zr5STZl69WA1yWvofQQSKbUgpR2rRF/Yp1F?= =?us-ascii?Q?wShOeGkQaq6pnH7IXN4EzNvFLh+QfMEBjVRPtcGHOdxffhbfMiu5na146JXp?= =?us-ascii?Q?L6NLqU1X4t56t9b1hn347qMaQuRwnXJqJ9XBlKhWaIdWaPh278vrd1FNKEMK?= =?us-ascii?Q?V/65+vQDO3kfHx7a4k1uGv+x5UxDCI/VXcW2MooYsFU3j+3/wu71zlHAhWDo?= =?us-ascii?Q?wuC/EZLub7LNLl7w+1jXJXumZpglJzzXymuAgp42do5s1W+QhJ96w709Gi5x?= =?us-ascii?Q?rwhPpE0mNk1yqcCpHJHsoQQCr/1amftPAG8Vvc+7Yub1FgWg1jWhTgPDk7ZJ?= =?us-ascii?Q?FViigXzIgY5k9eCoTWlIhS03E5K7taEpMIUrLTm7fo/A6ayCMgNxNVgSZD4H?= =?us-ascii?Q?qUklT9zSfDjN5Y9H/GOEjbIP+5rC4hf5xvRM4IcWVOZz/wprlmjU/52m1MIh?= =?us-ascii?Q?eqbSNT2sPi201p3SHnj+GWp6iuMkIFrny233OQw17EZX9Fw38wJ5/ZT0ERcb?= =?us-ascii?Q?zHwvy5swK1hW4DFJuQK2GSbVMcqYuen06UAtcGvI1dy/uGxSONoLBgLzEdvm?= =?us-ascii?Q?bg=3D=3D?= Content-Type: multipart/alternative; boundary="_000_SY6P282MB3816FC60EBF8F7E10D2CB99AD3C22SY6P282MB3816AUSP_" MIME-Version: 1.0 X-OriginatorOrg: tmr.qld.gov.au X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SY6P282MB3816.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 0b092202-d3a4-4a6d-b400-08dc8c25238f X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2024 03:50:31.7915 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7448469d-8ba5-44d4-a43c-8d7ff6fb550d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rw6bbRY/aIQ+HyeRLBme00GNBMOt0nYLFIV6WD/mtXbJmLPWxwz8jANa/+f+v+CmYNg/xwtD72J+uwbvzRq1N8W10wYKdTNM8n0APps7HE+H+wqXVK8DTqu178N4+MmO X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY8P282MB5257 X-Proofpoint-GUID: gOysInqsicaMJ3klc3ovHLsJ9SZ7Ec66 X-Proofpoint-ORIG-GUID: gOysInqsicaMJ3klc3ovHLsJ9SZ7Ec66 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-13_15,2024-06-13_02,2024-05-17_01 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_SY6P282MB3816FC60EBF8F7E10D2CB99AD3C22SY6P282MB3816AUSP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello pgsql-novice, I want to create a View within PostGIS that filters only those records that= have Geometry type equal to Point (and also another view of geometry type equal to Polygon) What SELECT statement achieves this? Thanks, Nick Lawrence Senior Spatial Science Officer | Geospatial Technologies Engineering & Technology | Transport and Main Roads Floor 19 | 313 Adelaide Street | Brisbane City Qld 4000 GPO Box 1412 | Brisbane City Qld 4001 P: (07) 30667977 E: nicholas.g.lawrence@tmr.qld.gov.au W: www.tmr.qld.gov.au WARNING: This email (including any attachments) may contain legally privile= ged, confidential or private information and may be protected by copyright.= You may only use it if you are the person(s) it was intended to be sent to= and if you use it in an authorised way. No one is allowed to use, review, = alter, transmit, disclose, distribute, print or copy this email without app= ropriate authority. If this email was not intended for you and was sent to you by mistake, plea= se telephone or email me immediately, destroy any hard copies of this email= and delete it and any copies of it from your computer system. Any right wh= ich the sender may have under copyright law, and any legal privilege and co= nfidentiality attached to this email is not waived or destroyed by that mis= take. It is your responsibility to ensure that this email does not contain and is= not affected by computer viruses, defects or interference by third parties= or replication problems (including incompatibility with your computer syst= em). Opinions contained in this email do not necessarily reflect the opinions of= the Department of Transport and Main Roads, or endorsed organisations util= ising the same infrastructure.=20 --_000_SY6P282MB3816FC60EBF8F7E10D2CB99AD3C22SY6P282MB3816AUSP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello pgsql-novice,

 

I want to create a View within PostGIS that filters = only those records that have Geometry type equal to Point

(and also another view of geometry type equal to Pol= ygon)

What SELECT statement achieves this?

 

Thanks,

 

Nick Lawrence=
Senior Spatial Science Officer | Geospatial Technologies
Engineering & Technology | Transport and Main Roads

 

Floor 19 | 313 Adelai= de Street | Brisbane City Qld 4000
GPO Box 1412 | Brisbane City Qld 4001
P: (07) 30667977
E: nicholas.g.lawrence@tmr.qld.gov.au
W:
www.tmr.qld.gov.a= u

 


WARNING: This email (inc= luding any attachments) may contain legally privileged, confidential or pri= vate information and may be protected by copyright. You may only use it if = you are the person(s) it was intended to be sent to and if you use it in an= authorised way. No one is allowed to use, review, alter, transmit, disclos= e, distribute, print or copy this email without appropriate authority.

If this email was not intended for you and was sent to you by mistake, plea= se telephone or email me immediately, destroy any hard copies of this email= and delete it and any copies of it from your computer system. Any right wh= ich the sender may have under copyright law, and any legal privilege and co= nfidentiality attached to this email is not waived or destroyed by that mis= take.

It is your responsibility to ensure that this email does not contain and is= not affected by computer viruses, defects or interference by third parties= or replication problems (including incompatibility with your computer syst= em).

Opinions contained in this email do not necessarily reflect the opinions of= the Department of Transport and Main Roads, or endorsed organisations util= ising the same infrastructure.

--_000_SY6P282MB3816FC60EBF8F7E10D2CB99AD3C22SY6P282MB3816AUSP_--