Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8761691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:20:55+00:00 2026-06-13T15:20:55+00:00

I am using geoDjango . I have installed following packages from source Gdal ,

  • 0

I am using geoDjango. I have installed following packages from source Gdal, proj1.4, geos3.3.5 and Postgis2.0.1. I am ubuntu user. When I run syncdb after that I am getting following error. Am I missing something? thanks

Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
Failed to install index for cities.City model: operator class "gist_geometry_ops" does not exist for access method "gist"

Failed to install index for cities.District model: operator class "gist_geometry_ops" does not exist for access method "gist"

Failed to install index for cities.PostalCodeCA model: operator class "gist_geometry_ops" does not exist for access method "gist"

Installed 0 object(s) from 0 fixture(s)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:20:57+00:00Added an answer on June 13, 2026 at 3:20 pm

    you need to create a postgis template and load the relevent postgis.sql

    say your postgis path is /usr/share/postgresql/8.4/contrib
    run this

    
    POSTGIS_SQL_PATH=/usr/share/postgresql/8.4/contrib
    sudo -u postgres createdb  -E UTF8 template_postgis1 # Create the template spatial database.
    sudo -u postgres createlang  -d template_postgis1 plpgsql # Adding PLPGSQL language support.
    sudo -u postgres psql  -d postgres -c "UPDATE pg_database SET datistemplate='true' WHERE datname='template_postgis1';"
    sudo -u postgres psql  -d template_postgis1 -f $POSTGIS_SQL_PATH/postgis.sql # Loading the PostGIS SQL routines
    sudo -u postgres psql  -d template_postgis1 -f $POSTGIS_SQL_PATH/spatial_ref_sys.sql
    sudo -u postgres psql  -d template_postgis1 -c "GRANT ALL ON geometry_columns TO PUBLIC;" # Enabling users to alter spatial tables.
    sudo -u postgres psql   -d template_postgis1 -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;"
    
    
    
    

    your database then needs to then be created with the created templete template

    sudo -u postgres createdb   database_name -T template_postgis1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using mercurial, I've run into an odd problem where a line from one committer
From GeoDjango Point Field, I get the following points: object1.point = POINT(-113.4741271000000040 53.4235217000000020) object2.point
Using Java,I have to fetch multiple sets of values from an XML file to
I am new to geodjango, I have the following settings: DATABASES = { default
I have a Django project hosted on Heroku with a buildpack forked from cirlabs/heroku-buildpack-geodjango
I have implemented GeoDjango using postgis. Here is my model: ... geometria = models.PolygonField(srid=4326,
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I'm attempting to launch a GeoDjango app. I've installed Postgres & PostGIS using brew
I am using geodjango and have a collection of points in my database. To
Using the http://www.ifans.com/forums/showthread.php?t=132024 post from another question i am allowing the user to enter

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.