Null geometries for CREATE TABLE AS ... SELECT *

Robert Hewlett <[email protected]>
Newsgroups gmane.comp.gis.postgis
Message-ID <CAG_Q50SnHo+ZhGeXTNe1TAqbWzWcjjDp93MsynRnR3QuSkPbQQ@mail.gmail.com>
Thanks, and my bad on that one. Was not expecting any null geometries in
the original data set.



"total_counts"

"Total with null geom: 3711"

"Total with geom: 147611"

"Total features: 151322"





SELECT 'Total features: ' || count(*) as total_counts

FROM index_demo.street_trees_indexed t

UNION

SELECT 'Total with null geom: ' ||  count(*)

FROM index_demo.street_trees_indexed t

WHERE t.geom is null

UNION

SELECT 'Total with geom: ' || count(*)

FROM index_demo.street_trees_indexed t

WHERE t.geom is not null





Rob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.