I want to create Analysis report after creating model for generating cut/fill.

Once it will done, based on this cutfill/table, would be display statics in html format using Python.

Is it possible, and can you tell me how it will done?

closed as off-topic by PolyGeo Mar 20 '16 at 11:14

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions relating to general Information Technology, with no clear GIS component, are off-topic here, but can be researched/asked at Stack Overflow (software development), Super User (computing hardware and software) and Database Administrators (relational databases)" – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Can you expand your question - as currently flagged as 'off topic' - please give more details what you are trying to achieve or the question will be closed. – Mapperz Sep 16 '11 at 13:43
  • i want to display cut/fill analysis report in html using python/modelbuilder. In report, it inculed volume,area,other formating text. – user876307 Sep 17 '11 at 6:30

You can format output as html but there is not enough info in your question to be very specific. Assuming that you writing to an html file:

import sys

htmFile = open("C:\\Dev\\test.html","w")
htmFile.write("""<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

string = "my test string for this example"

for s in string:
    htmFile.write( "<p> %s</p>" %s)



You will need to replace the content with your analysis and output variables. You can format content using string formatting:


  • 1
    You could just use a template system for Python. Just google templating engines for python. Wiki.python.org has a list. It would make it a little easier, at least I think so. – Jamie Nov 2 '11 at 3:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.