What i did so far is create a GeoDjango project, the define models as shown 
below
#models.py looks like thi

from django.db import models

# Create your models here.
# This is an auto-generated Django model module created by ogrinspect.
from django.contrib.gis.db import models

class Locations(models.Model):
    zid = models.IntegerField()
    name = models.CharField(max_length=20)
    elev = models.FloatField()
    icon = models.IntegerField()
    point = models.PointField()                             #this i tried 
to do it for the poin to be ploted
    geom = models.MultiLineStringField(srid=4326)
    objects = models.GeoManager()


# Auto-generated `LayerMapping` dictionary for Locations model
locations_mapping = {
    'zid' : 'ZID',
    'name' : 'NAME',
    'elev' : 'ELEV',
    'icon' : 'ICON',
    'point' : 'POINT'
    'geom' : 'MULTILINESTRING',
}


The rest of the files i followed the GeoDjango tutorial

but this does not seem to be working, First i tred bt using a .kml file 
convert it to a shapefile then import it to generate models bt does not work

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/M2ATTXtI534J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to