JavaMapScript - PostGIS
Patricia Maria Pereira
patricia at CPQD.COM.BR
Thu Sep 2 16:49:57 PDT 2004
Hello...
I need to access PostGIS with JavaMapScript.
Do I need to do something especial? Do I need a JDBC driver?
I tried it:
.....
.....
public static void main(String[] args) throws IOException{
try{
System.loadLibrary("mapscript");
} catch(Exception e){
e.printStackTrace();
}
mapObj mapa;
mapa = new mapObj("wms.map");
imageObj imagem = mapa.draw();
imagem.save("/l/home0/pat/testePati.jpg");
}
.....
.....
But mapa.draw() returns null.
My mapfile (wms.map) seems to be Ok, because I get map via cgi-bin with no problems.
Can somebody help me?
Thanks in advance...
Pati
More information about the MapServer-users
mailing list