Thank you for reply, I will check that code. I know that the best option is to move to native types, but there are some limitations, curves for example. Another thing is, that there are databases, where we could not control which geometry storage types i used.