check if geometry is a dict when reading from couchdb
update context_document_url