Skip to main content

I am learning now geodjango. I made basic web app with postgis database. With openlayers iam displaying basic wms map and I want to add other layers from my postgis database. I use render_to_kml function and then I visualize this kml with openlayers. The problem is that I can only display point layers instead of multipolygons...I tried to make another kml template bud I misunderstand it and there is no good documentation... I paste here my files ( view, template, urls) and plsplease give me advice if you can,,,where I have mistake ( I think it will be something with KML templates but i dont know.)

this is my views.py

this is my html template

this is my urls.py

  1. this is my views.py

    this is my views.py

  2. this is my html template

  3. this is my urls.py this is my urls.py

  1. this is my html template
  1. this is my urls.py

This results into application with 3 layers (basic map and 2layers from my postgis database which are equivallentequivalent (both are point feature....Polygons feature is only copy of Point feature...Thats my problem))... Anyone have plshas a solution for me? Thank, Mchal Beniak

I am learning now geodjango. I made basic web app with postgis database. With openlayers iam displaying basic wms map and I want to add other layers from my postgis database. I use render_to_kml function and then I visualize this kml with openlayers. The problem is that I can only display point layers instead of multipolygons...I tried to make another kml template bud I misunderstand it and there is no good documentation... I paste here my files ( view, template, urls) and pls give me advice if you can,,,where I have mistake ( I think it will be something with KML templates but i dont know.)

this is my views.py

this is my html template

this is my urls.py

  1. this is my views.py
  1. this is my html template
  1. this is my urls.py

This results into application with 3 layers (basic map and 2layers from my postgis database which are equivallent (both are point feature....Polygons feature is only copy of Point feature...Thats my problem))... Anyone have pls solution for me? Thank, Mchal Beniak

I am learning now geodjango. I made basic web app with postgis database. With openlayers iam displaying basic wms map and I want to add other layers from my postgis database. I use render_to_kml function and then I visualize this kml with openlayers. The problem is that I can only display point layers instead of multipolygons...I tried to make another kml template bud I misunderstand it and there is no good documentation... I paste here my files ( view, template, urls) and please give me advice if you can,,,where I have mistake ( I think it will be something with KML templates but i dont know.)

this is my views.py

this is my html template

  1. this is my views.py

  2. this is my html template

  3. this is my urls.py this is my urls.py

This results into application with 3 layers (basic map and 2layers from my postgis database which are equivalent (both are point feature....Polygons feature is only copy of Point feature...Thats my problem))... Anyone has a solution for me?

edited title
Link
benihamalu
  • 299
  • 1
  • 5

Geodjango render_to_kml Multipolygons - Can be fast or faster as WMS?

edited title
Source Link
benihamalu
  • 299
  • 1
  • 5

Geodjango render_to_kml Multipolygons

I am learning now geodjango. I made basic web app with postgis database. With openlayers iam displaying basic wms map and I want to add other layers from my postgis database. I use render_to_kml function and then I visualize this kml with openlayers. The problem is that I can only display point layers instead of multipolygons...I tried to make another kml template bud I misunderstand it and there is no good documentation... I paste here my files ( view, template, urls) and pls give me advice if you can,,,where I have mistake ( I think it will be something with KML templates but i dont know.)

this is my views.py

this is my html template

this is my urls.py

  1. this is my views.py
  1. this is my html template
  1. this is my urls.py

This results into application with 23 layers (basic map and 2layers from my postgis database which are equivallent (both are point feature....Polygons feature is only copy odof Point feature...Thats my problem))... Anyone have pls solution for me? Thank, Mchal Beniak

Geodjango render_to_kml

I am learning now geodjango. I made basic web app with postgis database. With openlayers iam displaying basic wms map and I want to add other layers from my postgis database. I use render_to_kml function and then I visualize this kml with openlayers. The problem is that I can only display point layers instead of multipolygons...I tried to make another kml template bud I misunderstand it and there is no good documentation... I paste here my files ( view, template, urls) and pls give me advice if you can,,,where I have mistake ( I think it will be something with KML templates but i dont know.)

this is my views.py

this is my html template

this is my urls.py

  1. this is my views.py
  1. this is my html template
  1. this is my urls.py

This results into application with 2 layers which are equivallent (both are point feature....Polygons feature is only copy od Point feature...Thats my problem)... Anyone have pls solution for me? Thank, Mchal Beniak

Geodjango render_to_kml Multipolygons

I am learning now geodjango. I made basic web app with postgis database. With openlayers iam displaying basic wms map and I want to add other layers from my postgis database. I use render_to_kml function and then I visualize this kml with openlayers. The problem is that I can only display point layers instead of multipolygons...I tried to make another kml template bud I misunderstand it and there is no good documentation... I paste here my files ( view, template, urls) and pls give me advice if you can,,,where I have mistake ( I think it will be something with KML templates but i dont know.)

this is my views.py

this is my html template

this is my urls.py

  1. this is my views.py
  1. this is my html template
  1. this is my urls.py

This results into application with 3 layers (basic map and 2layers from my postgis database which are equivallent (both are point feature....Polygons feature is only copy of Point feature...Thats my problem))... Anyone have pls solution for me? Thank, Mchal Beniak

Source Link
benihamalu
  • 299
  • 1
  • 5
Loading