Changeset 272
- Timestamp:
- 06/01/10 13:23:43 (20 months ago)
- Files:
-
- 1 modified
-
trunk/src/wfs/wfs_get_capabilities.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wfs/wfs_get_capabilities.c
r211 r272 114 114 fprintf(o->output, " <XMLSCHEMA/>\n"); 115 115 fprintf(o->output, " </SchemaDescriptionLanguage>\n"); 116 wfs_get_capabilities_dcpt_100(o, " REQUEST=DescribeFeatureType");116 wfs_get_capabilities_dcpt_100(o, ""); 117 117 fprintf(o->output, " </DescribeFeatureType>\n"); 118 118 fprintf(o->output, " <GetFeature>\n"); 119 119 fprintf(o->output, "<ResultFormat>\n"); 120 120 fprintf(o->output, "<GML2/>\n"); 121 fprintf(o->output, "<GML3/>\n");122 fprintf(o->output, "<JSON/>\n");123 121 fprintf(o->output, "</ResultFormat>\n"); 124 wfs_get_capabilities_dcpt_100(o, " REQUEST=GetFeature");122 wfs_get_capabilities_dcpt_100(o, ""); 125 123 fprintf(o->output, " </GetFeature>\n"); 126 124 fprintf(o->output, " <Transaction>\n"); 127 wfs_get_capabilities_dcpt_100(o, " REQUEST=Transaction");125 wfs_get_capabilities_dcpt_100(o, ""); 128 126 fprintf(o->output, " </Transaction>\n"); 129 127 fprintf(o->output, " </Request>\n"); … … 160 158 fprintf(o->output, " </ows:Operation>\n"); 161 159 fprintf(o->output, " <ows:Operation name='DescribeFeatureType'>\n"); 162 ows_get_capabilities_dcpt(o, " REQUEST=DescribeFeatureType");160 ows_get_capabilities_dcpt(o, ""); 163 161 fprintf(o->output, " <ows:Parameter name='outputFormat'>\n"); 164 162 fprintf(o->output, " <ows:Value>text/xml; subtype=gml/3.1.1</ows:Value>\n"); … … 167 165 fprintf(o->output, " </ows:Operation>\n"); 168 166 fprintf(o->output, " <ows:Operation name='GetFeature'>\n"); 169 ows_get_capabilities_dcpt(o, " REQUEST=GetFeature");167 ows_get_capabilities_dcpt(o, ""); 170 168 fprintf(o->output, " <ows:Parameter name='resultType'>\n"); 171 169 fprintf(o->output, " <ows:Value>results</ows:Value>\n"); … … 179 177 fprintf(o->output, " </ows:Operation>\n"); 180 178 fprintf(o->output, " <ows:Operation name='Transaction'>\n"); 181 ows_get_capabilities_dcpt(o, " REQUEST=Transaction");179 ows_get_capabilities_dcpt(o, ""); 182 180 fprintf(o->output, " <ows:Parameter name='inputFormat'>\n"); 183 181 fprintf(o->output, " <ows:Value>text/xml; subtype=gml/3.1.1</ows:Value>\n"); … … 216 214 217 215 /* print global operations */ 218 fprintf(o->output, " <Operations>\n"); 216 217 if ( ows_layer_list_writable(o->layers) 218 || ows_layer_list_writable(o->layers)) 219 fprintf(o->output, " <Operations>\n"); 219 220 220 221 if (ows_layer_list_retrievable(o->layers)) { … … 241 242 } 242 243 243 fprintf(o->output, " </Operations>\n"); 244 if ( ows_layer_list_writable(o->layers) 245 || ows_layer_list_writable(o->layers)) 246 fprintf(o->output, " </Operations>\n"); 244 247 245 248 for (ln = o->layers->first; ln != NULL; ln = ln->next) {