4

I have a spatial table called 'places' in MySQL, with a spatial column 'pt' (point). I tried to import it in QGIS and no points appear. I created a view 'places_as_text' which reproduces the table but shows the points as WKT (used astext(pt) in the definition of the view). Still nothing appears in QGIS.

Any help appreciated

underdark
84.9k22 gold badges237 silver badges418 bronze badges
asked Sep 9, 2011 at 14:34
2

1 Answer 1

4

I'm using MySQL spatial tables everyday with QGIS in r&w mode using

Add Vector> Database> Type: MySQL

and defining a new connection, just like described in http://getspatial.com/gisblog/qgis-vector-data-connection. I can connect both to local and remote server. I'm not using the original geometry definition and not converting it to WKT. Do you have any connection problem (what is the result of test connection)?

Check also your table structure: field type MUST be GEOMETRY otherwise QGIS will load the table as attribute table and will not show any vector!

answered Mar 31, 2012 at 16:08
2
  • Thanks for the hint, I will try and update, but the data is not that easy to access at the moment Commented Apr 2, 2012 at 12:55
  • 3
    It seems that this has been removed in QGIS 2.0 ... Commented Sep 25, 2013 at 9:27

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.