[TinyOWS-dev] [tinyows] #21: Config file metadata optional

tinyows trac at camptocamp.com
Sun Mar 8 04:45:58 EST 2009


#21: Config file metadata optional
----------------------------+-----------------------------------------------
     Reporter:  ol          |           Owner:                             
         Type:  defect      |          Status:  closed                     
     Priority:  minor       |         Version:  SVN                        
   Resolution:  fixed       |        Keywords:  config file metadata assert
        Stage:  Unreviewed  |        Approval:  Unnecessary                
        Patch:  None        |      Complexity:  Unknown                    
Compatibility:  Unknown     |   Specification:  Unnecessary                
----------------------------+-----------------------------------------------
Changes (by ol):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Right now a minimal config.xml look like that:
 {{{
 <tinyows online_resource="http://127.0.0.1/cgi-bin/tinyows"
         schema_dir="/usr/local/tinyows/schema/"
         >

         <pg
                  user="postgres"
                  password="postgres"
                  dbname="tinyows_demo"
                  />

   <metadata name="TinyOWS Server"
             title="TinyOWS Server - Demo Service" />

   <contact name="TinyOWS Server" />

 </tinyows>
 }}}

 And to have a working one (i.e with at least a single layer)


 {{{
 <tinyows online_resource="http://127.0.0.1/cgi-bin/tinyows"
         schema_dir="/usr/local/tinyows/schema/"
         >

          <pg user="postgres"
                  password="postgres"
                  dbname="tinyows_demo"
                  />

   <metadata name="TinyOWS Server"
             title="TinyOWS Server - Demo Service" />

   <contact name="TinyOWS Server" />

   <layer prefix="wld"
          server="http://www.tinyows.org/demo/world/"
          name="world"
          title="World Administrative Boundaries"
          />

 </tinyows>
 }}}


 See commit r58 and r84

 To improve: add a schema validation for config file

-- 
Ticket URL: <https://www.tinyows.org/trac/tinyows/ticket/21#comment:2>
tinyows <https://www.tinyows.org/trac/tinyows>
TinyOWS


More information about the TinyOWS-dev mailing list