Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot sync models with geometry field to MS SQL Server #187

Open
joshdpocock opened this issue Nov 8, 2018 · 2 comments
Open

cannot sync models with geometry field to MS SQL Server #187

joshdpocock opened this issue Nov 8, 2018 · 2 comments

Comments

@joshdpocock
Copy link

joshdpocock commented Nov 8, 2018

I'm unable to migrate any model which has a Django built in geometry field (e.g. Point, Polygon etc). I keep getting the error 'AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type''.

Does django-pyodbc-azure support geometry data?

@singhravi1
Copy link

No, this does not support geometry fields.

@joshdpocock
Copy link
Author

Thank you for your reply, I found a workaround by converting sql geometry fields to varchar fields with WKT geometry and then converting them to GEOSGeometry Objects. It's working well and I'm very pleased with django-pyodbc-azure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants