Changeset 54 for trunk/zoo-services/ogr/base-vect-ops
- Timestamp:
- Dec 17, 2010, 11:39:39 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-services/ogr/base-vect-ops/service.c
r36 r54 164 164 165 165 166 int applyOne(maps*& conf,maps*& inputs,maps*& outputs,OGRGeometryH (*myFunc)(OGRGeometryH) ){166 int applyOne(maps*& conf,maps*& inputs,maps*& outputs,OGRGeometryH (*myFunc)(OGRGeometryH),char* schema){ 167 167 #ifdef DEBUG 168 168 fprintf(stderr,"\nService internal print\n"); … … 218 218 char *tmpS=OGR_G_ExportToGML(res); 219 219 setMapInMaps(outputs,"Result","value",tmpS); 220 setMapInMaps(outputs,"Result","mimeType","text/ plain");220 setMapInMaps(outputs,"Result","mimeType","text/xml"); 221 221 setMapInMaps(outputs,"Result","encoding","UTF-8"); 222 setMapInMaps(outputs,"Result","schema",schema); 222 223 free(tmpS); 223 224 224 } 225 225 }else{ … … 302 302 #endif 303 303 int Boundary(maps*& conf,maps*& inputs,maps*& outputs){ 304 return applyOne(conf,inputs,outputs,&OGR_G_GetBoundary );304 return applyOne(conf,inputs,outputs,&OGR_G_GetBoundary,"http://fooa/gml/3.1.0/polygon.xsd"); 305 305 } 306 306 … … 309 309 #endif 310 310 int ConvexHull(maps*& conf,maps*& inputs,maps*& outputs){ 311 return applyOne(conf,inputs,outputs,&OGR_G_ConvexHull );311 return applyOne(conf,inputs,outputs,&OGR_G_ConvexHull,"http://fooa/gml/3.1.0/polygon.xsd"); 312 312 } 313 313 … … 328 328 #endif 329 329 int Centroid(maps*& conf,maps*& inputs,maps*& outputs){ 330 return applyOne(conf,inputs,outputs,&MY_OGR_G_Centroid );330 return applyOne(conf,inputs,outputs,&MY_OGR_G_Centroid,"http://fooa/gml/3.1.0/point.xsd"); 331 331 } 332 332
Note: See TracChangeset
for help on using the changeset viewer.