We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OLE2A(str) has limit of length of str, it is 4k, when I import a multipolygon from wkt, Sometime the length of wkt will break 4k。
code: STDMETHODIMP CShape::ImportFromWKT(BSTR Serialized, VARIANT_BOOL *retVal) { AFX_MANAGE_STATE(AfxGetStaticModuleState()) *retVal = VARIANT_FALSE;
USES_CONVERSION; CString ser = OLE2A(Serialized); OGRGeometry* oGeom = NULL; char* buffer = ser.GetBuffer();
suggest: char* pBuf = _com_util::ConvertBSTRToString(Serialized);
char *pszBuffBack = pBuf; OGRGeometry* oGeom = NULL; OGRErr err = OGRGeometryFactory::createFromWkt(&pBuf, NULL, &oGeom); delete[] pszBuffBack;
The text was updated successfully, but these errors were encountered:
Thanks for taking the time to report this.
You can make a pull request against the develop branch. We will investigate it and merge it.
Sorry, something went wrong.
pmeems
No branches or pull requests
OLE2A(str) has limit of length of str, it is 4k, when I import a multipolygon from wkt, Sometime the length of wkt will break 4k。
code:
STDMETHODIMP CShape::ImportFromWKT(BSTR Serialized, VARIANT_BOOL *retVal)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())
*retVal = VARIANT_FALSE;
suggest:
char* pBuf = _com_util::ConvertBSTRToString(Serialized);
The text was updated successfully, but these errors were encountered: