Comments (14)
Attempting to export and import one of the databases for my omeka 2.6.1 instance. I am currently running mysql 5.1 and trying to import the database into mysql 8.0. I get the following error when I attempt the import. It appears to be associated with the Neatline Plugin. ERROR 1416 (22003) at line 703: Cannot get geometry object from data you send to the GEOMETRY field. I also tried to import the mysql dump into mysql 5.7 and got the very same error message. Is there a fix available for this?
from neatline.
Hi tpegues2,
We've run into this issue with migrating to new versions of MySQL before, and have a potential solution - please see this troubleshooting post in our documentation for further info: https://neatline.org/docs/troubleshooting/
If you have any questions, or need further troubleshooting, please respond here and I will pass the issue on to our developers.
Thank you,
Elizabeth
from neatline.
from neatline.
Hi Tharrow,
I really thought that we figured out the migration issues with the null coverage, but I guess we missed something. If your records data isn't too sensitive, could I have you send a copy of your coverage column to me at [email protected]?
select astext(coverage) from omeka_neatline_records;
from neatline.
from neatline.
from neatline.
from neatline.
from neatline.
from neatline.
from neatline.
Hi Tharrow,
Sorry about the delay. I figured out pretty quickly that there were eight specific lines out of the data you sent me that mysql did not like. However, I'm not actually very conversant in WKT, so it took me a little bit of staring to figure out what distinguished those lines from the others. Turns out, it was actually pretty obvious.
Valid WKT Polygons must have at least 4 points: three or more vertices and one additional point equal to the first that closes it off. The eight lines contain polygons that do not meet this criteria. These are not meaningful polygons and should be redefined as points or lines instead. If there's some reason that you really want them to be polygons, it is apparently valid (at least to mysql) to simply add one or two identical end points.
So: POLYGON(0 0, 0 0) and POLYGON(0 0, 10 10, 0 0) are not valid, but POLYGON(0 0, 10 10, 0 0, 0 0) is.
I hope that clears things up. I will send you the 8 offending entries through email and leave this here for posterity.
This is of course concerning for us because neatline shouldn't allow the creation of these invalid polygons. We'll discuss it internally and probably create a new issue to add some validation logic to prevent this.
from neatline.
Hi @tpegues2, I'm not sure if this issue was resolved or not - but we now have a potential patch for the issues that have come up related to MySQL migrations. If you are interesting in testing out this plugin version, you can download it from this branch:
https://github.com/scholarslab/Neatline/tree/bug/mysql-functions
If you continue to seeing errors with the Neatline plugin, please let us know.
from neatline.
@eam5 Sorry, I just forgot to close this ticket. I sent the corrected SQL to @tpegues2 over email back in July and that seemed to have worked.
The most recent fix should have no impact on this issue. Since the MySQL docs indicate that "ST_GeomFromText(), ST_GeometryFromText(), GeomFromText(), and GeometryFromText() are synonyms", that update should not functionally change anything for older versions which still support GeomFromText.
That is, we still need to figure out how to mitigate the invalid polygon generation problem. Although knowing about the issue does allow us to guide users through migrations, it's certainly not an ideal place for this to be.
from neatline.
from neatline.
Related Issues (20)
- Long term fix to browse.php pagination issue
- Added question to closed issue 481 HOT 1
- Minimum zoom level imposed on static image base layer HOT 3
- Item field title and contents clash HOT 6
- Neatline does not show editor with a static image basemap. HOT 3
- layers folder HOT 6
- Unable to save items, import items, and display Neatline - .astext does not exist error HOT 15
- WMS layers are not loading HOT 3
- Stamen maps not loading in Chrome HOT 14
- "order" parameter in records view is vulnerable to SQL injection HOT 2
- Mysqli prepare error installing on Omeka Classic 2.8 HOT 2
- Stamen layer not being rendered in public view HOT 2
- Items not importing into exhibits
- Maps Display in Editor, Not Public or Fullscreen HOT 2
- Spatial layers menu hidden by Waypoints menu
- Update the Stamen map provider
- during server migration, Neatline Exhibit files blocked due to a bug HOT 4
- Neatline update error - 2.6.4 - Timeline API
- Neatline broken on my Omeka installation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neatline.