gospodarka-przestrzenna / MongoConnector

Qgis mongodb plugin
GNU General Public License v2.0
10 stars 5 forks source link

Make the exceptions more verbose #3

Closed mbourqui closed 8 years ago

mbourqui commented 8 years ago

It's really hard to spot the issues in the data with only a single line and generic error message. Would it be possible to include some hints about the corrupted data, like a document id or the actual item that raised the exception?

mk45 commented 8 years ago

What is Your error message ? Can You give me example of corrupted data, or the way they might be corrupted. Did You find/know what caused exception in your case? Did You saw example ? Ok I will start to work on such feature.

mbourqui commented 8 years ago

The error message is: Collection or collections geometry is improper I am currently looking for a sample of corrupted, but as I have 200K points, it's not that simple... Thank you!

mbourqui commented 8 years ago

In my particular case, I had a numeric feature containing NaN's.

mk45 commented 8 years ago

Once again thank You for spotting this inconvenience. I will fix that but not before Eastern Holidays.

mbourqui commented 8 years ago

You're welcome! If I had more time, I would have make a pull request, but I am a bit busy those days.

mbourqui commented 8 years ago

Actually, a second source of failure was that one of my features was not present in every document.

mk45 commented 8 years ago

I've made new version with very verbose exceptions. It is uploaded to QGIS plugins page and ready for download. You may test this version on Your corrupted data and see if it is ok. I'm waiting for feedback.

mbourqui commented 8 years ago

I tried with missing keys, and it works great! Thank you very much :smiley:

mk45 commented 8 years ago

Please vote 5 stars for plugin if you wish :P. I'm closing this ticket.