In the Shapely package, there is a function that allows you to determine whether coordinates include a Z value. It is
Is there a way that a similar command can be carried on the geometry column of a SQLite table?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
If you have a SpatiaLite database you can use the SQL function ST_Is3D http://www.gaia-gis.it/gaia-sins/spatialite-sql-latest.html. Example that returns "1" as a result
SELECT ST_Is3d(ST_GeomFromText('POINTZ (1 1 1)'));
CoordDimension and ST_NDims can by used as well, the first returns "XYZ" and the latter "3" but I think that ST_Is3D is the best match for you.