Revert "Remove unnecessary conversion"

This reverts commit 6e8f87069990f50e2b4c308d5de8c8e2a1929ac5.
add ogr working test