[][src]Function spatialite_sys::gaiaParseWkt

pub unsafe extern "C" fn gaiaParseWkt(
    in_buffer: *const c_uchar,
    type_: c_short
) -> gaiaGeomCollPtr

Creates a Geometry object from WKT notation

\param in_buffer pointer to WKT buffer \param type the expected Geometry Class Type \n if actual type defined in WKT doesn't corresponds to this, an error will be raised.

\return the pointer to the newly created Geometry object: NULL on failure

\sa gaiaOutWkt, gaiaOutWktStrict, gaiaParseEWKT, gaiaToEWKT

\note you are responsible to destroy (before or after) any allocated Geometry, unless you've passed ownership of the Geometry object to some further object: in this case destroying the higher order object will implicitly destroy any contained child object.