Example #1
0
Handle<Value> MSMap::Save(const Arguments &args) {
  HandleScope scope;
  int result;
  MSMap *map = ObjectWrap::Unwrap<MSMap>(args.This());
  REQ_STR_ARG(0, outputfile);

  result = msSaveMap(map->this_, *outputfile);
  return scope.Close(Number::New(result));
}
Example #2
0
int mapObj_save(mapObj* self, char *filename) {
    return msSaveMap(self, filename);
  }