Comments (8)
That's a string from contrib.gis
indeed!
Can you check the type of your PointField
? It should be djgeojson.fields.PointField
.
from django-geojson.
I can confirm this, had the same issue on arch after installing gdal
all works fine!
from django-geojson.
the same problem, after sudo aptitude install gdal-bin
all good
from django-geojson.
Confirmed - with the same solution as mentioned above.
Not really surprising considering the following import pattern is used throughout django-geojson & django-leaflet:
# from django-geojson serializers.py
try:
from django.contrib.gis.geos import WKBWriter
from django.contrib.gis.geos import GEOSGeometry
from django.contrib.gis.db.models.fields import GeometryField
except (ImportError, ImproperlyConfigured):
from .nogeos import WKBWriter
from .nogeos import GEOSGeometry
from .fields import GeometryField
As contrib.gis
comes with Django I don't see how this was intended to prefer the nogeos
stuff. Perhaps contrib.gis
used to raise ImproperlyConfigured
when gdal isn't present? However django-leaflet only handles ImportError
in all the places I looked...
from django-geojson.
Encountered the same since I updated to 2.11.0 :(
(the bug is not present in 2.10.0)
from django-geojson.
You can check the diff
2.10.0...2.11.0
@Gagaro could you update the Github releases page please? And also, use PRs where Travis tests remain green instead of committing to master (easier to follow regressions etc.). Thanks!
from django-geojson.
Travis tests are green, the only PR I merged without travis was the pip install one which was very simple (but still needed travis...).
And yes I should update the releases.
from django-geojson.
Is there any chance that this issue could be resolved? I just started using django-geojson, and I'm getting the same error as @flesser for apparently the same reason. I don't want to install gdal just to make an import I don't plan to use not crash. I cannot downgrade to 2.10 because my project uses Django 2.x.
from django-geojson.
Related Issues (20)
- UWSGI crashes after installing django-geojson HOT 2
- 'Shop' object has no attribute 'geom'
- JSONFormField is removed from jsonfield HOT 1
- Leaflet widget is not rendered automatically for forms.Forms HOT 4
- Generate FeatureCollection GeoJSON from queryset in the database
- Daes it make sense to improve validators process? HOT 2
- jsonfield dependency still required? HOT 1
- Error creating geometry from value 'null' (String input unrecognized as WKT EWKT, and HEXEWKB.) HOT 2
- Make 'name' the default for 'crs_type' HOT 3
- Leaflet warning when using own widget HOT 1
- Migration breakage when switching from 'jsonfield' to django.db.models.JSONField
- Problems running the test suite locally HOT 7
- 'Serializer' object has no attribute 'deserialize' HOT 6
- GeoJSONLayerView and LoginRequiredMixin HOT 5
- Django 2.0: AttributeError: 'CharField' object has no attribute 'rel' HOT 3
- How I Can Add Circle Support In Geometry Type HOT 1
- Support Model methods with no parameters HOT 1
- Serving geoJson with custom coordinates HOT 1
- Makemigrations Failing - Could not find GDAL. HOT 1
- Object has no attribute 'geom' 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 django-geojson.