fix problem with building spatial reference from wkt