Support for GIS field types
See original GitHub issueRight now, using a DjangoObjectType on a model that contains GIS fields (like django.contrib.gis.db.models.fields.PointField
) will trigger an exception: Exception: Don't know how to convert the Django field myapp.MyModel.point (<class 'django.contrib.gis.db.models.fields.PointField'>)
.
It would be great to add support for this. Otherwise, is there any docs on how to create a custom Field with custom serialization/deserialization like in django-rest-framework?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top Results From Across the Web
ArcGIS field data types
When you create feature classes and tables, you select a data type for each field. The available types include a variety of number...
Read more >ArcGIS Desktop Help 9.2 - Geodatabase field data types
The available types include a variety of number types, text, date, binary large objects (BLOBs), or globally unique identifiers (GUIDs).
Read more >Exploring Data Formats and Fields - QGIS Documentation
QGIS supports (multi)point, (multi)line, (multi)polygon, CircularString, CompoundCurve, CurvePolygon, MultiCurve, MultiSurface feature types, all with Z and/or ...
Read more >ArcGIS Data Types - DBMS Data Types - GISRSStudy
ArcGIS Geodatabase Data Deacription ; Short integer, -32,768 to 32,767, 2 ; Long integer, -2,147,483,648 to 2,147,483,647, 4 ; Float (single-precision floating- ...
Read more >GIS Data Types - YouTube
Description of raster and vector GIS data types.This video was produced by West Virginia View (http://www.wvview.org/) with support from ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @sanfilippopablo,
the PR convert Geometry fields to well-known text (WKT):
if you want to convert to GeoJSON:
Response:
Recently I have developed a library for Geographic types, inputs, filters… https://github.com/flavors/django-graphql-geojson
Maybe this helps as well https://github.com/EverWinter23/graphene-gis