Changeset 311 for trunk/src/wfs/wfs_describe.c
- Timestamp:
- 07/14/10 09:30:06 (19 months ago)
- Files:
-
- 1 modified
-
trunk/src/wfs/wfs_describe.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wfs/wfs_describe.c
r301 r311 58 58 table = ows_psql_describe_table(o, layer_name); 59 59 60 assert(id_name != NULL);61 60 assert(table != NULL); 62 61 63 62 /* Output the description of the layer_name */ 64 63 for (an = table->first; an != NULL; an = an->next) { 65 if (! buffer_cmp(an->key, id_name->buf)) {64 if (!id_name || (id_name && !buffer_cmp(an->key, id_name->buf))) { 66 65 fprintf(o->output, " <xs:element name ='"); 67 66 buffer_flush(an->key, o->output);