[Mapserver-dev] Mapserver 4.0/Java-SWIG

Chris G. Nicholas cgn at globexplorer.com
Tue Jun 17 13:43:38 EDT 2003


Hmmm - Am getting SEGV's with the Java-SWIG interface using the most basic programs; this stuff works fine with 3.65. 

comments/suggestions/warnings/etc welcomed trying to track this down...

Chris Nicholas
GlobeXplorer

-------------------------------------------

import java.util.*;
import java.io.*;
import edu.umn.gis.mapscript.* ;
public class simpletest {
 
        public static void main(String args[]) {
                try {
                        System.load("/bigdisk/src/mapserver-4.0b/mapscript/java/libmapscript.so");
                        edu.umn.gis.mapscript.mapObj myMap = new edu.umn.gis.mapscript.mapObj("/usr/local/apache/htdocs/mms/itasca/simple.map");
 
                       // SEGVs here in Mapserver 4...
                        edu.umn.gis.mapscript.imageObj myImage = myMap.draw();

                        myMap.setImageType("jpeg");
                        myMap.setImagequality(75);
                        myMap.save("/tmp/foo.jpg");
 
                } catch (Exception e) {
                        e.printStackTrace();
                }
        }
}





More information about the mapserver-dev mailing list