def _getGeometry(self, params):
        try:
            geometry = bson.json_util.loads(params['geometry'])
            GeoJSON.to_instance(geometry, strict=True)

            if geometry['type'] != 'Point':
                raise ValueError

            return geometry
        except (__HOLE__, ValueError):
            raise RestException("Invalid GeoJSON passed as 'geometry'"
                                " parameter.")
dataset/ETHPy150Open girder/girder/plugins/geospatial/server/geospatial.py/GeospatialItem._getGeometry