package mapserver;

import mapscript.*;


public class version {
    static {
	try {
	    System.loadLibrary("mapscript");
	} catch (UnsatisfiedLinkError e) {
	    System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
	    System.exit(1);
	}
    }

    public static void main(String argv[]) {
	mapObj map = new mapObj("/var/www/html/nationalatlas/demo.map");
	long image = map.draw();
	//msSaveImage(img,filename,type,transparent,interlace,quality)
	mapscript.msSaveImage(image,"/tmp/example.png",map.getImagetype(),map.getTransparent(),map.getInterlace(),map.getImagequality());
    }
}

