Changeset 276

Show
Ignore:
Timestamp:
06/01/10 14:11:08 (20 months ago)
Author:
ol
Message:

Fix typos in Operation Get Capabilities?

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/ows/ows_error.c

    r269 r276  
    7575    assert(locator != NULL); 
    7676 
     77    if (o->log != NULL) 
     78        fprintf(o->log, "[ERROR] {%s:%s} %s\n", 
     79        ows_error_code_string(code), locator, message); 
     80 
    7781    fprintf(o->output, "Content-Type: application/xml\n\n"); 
    7882    fprintf(o->output, "<?xml version='1.0' encoding='UTF-8'?>\n"); 
     
    9094    fprintf(o->output, "</ows:ExceptionReport>\n"); 
    9195 
    92     if (o->log != NULL) 
    93         fprintf(o->log, "[ERROR] {%s:%s} %s\n", 
    94         ows_error_code_string(code), locator, message); 
    95  
     96#if 0 
    9697#if TINYOWS_FCGI 
    9798    OS_LibShutdown(); 
     99#endif 
    98100#endif 
    99101 
  • trunk/src/wfs/wfs_get_capabilities.c

    r272 r276  
    215215    /* print global operations */ 
    216216     
    217     if (   ows_layer_list_writable(o->layers) 
     217    if (   ows_layer_list_retrievable(o->layers) 
    218218        || ows_layer_list_writable(o->layers))  
    219219        fprintf(o->output, "  <Operations>\n"); 
     
    242242    } 
    243243 
    244     if (   ows_layer_list_writable(o->layers) 
     244    if (   ows_layer_list_retrievable(o->layers) 
    245245        || ows_layer_list_writable(o->layers))  
    246246        fprintf(o->output, "  </Operations>\n"); 
     
    358358                } 
    359359 
    360                 if (writable == true && ln->layer->writable == true) { 
     360                if (writable == false && ln->layer->writable == true) { 
    361361                    if (ows_version_get(o->request->version) == 100) { 
    362362                        fprintf(o->output, "   <Insert/>\n");