Help using Java and Mapscript

Carlos Ruiz boolean10001 at YAHOO.COM
Thu Mar 8 16:35:31 EST 2007


Hi to everyone,
   
  I started to develop some sample application using Java with Mapscript, i finally display 
  some layer, but if i try to scale map or make a zoom, i get an empty map, don't know what
  went wrong.
   
  This is the code:
   
  package edu.umn.gis.mapserver;
   
  public final class Generate {
   
  private mapObj map = null;
  private imageObj image = null;
   
  Generate() {
     map = new mapObj("test.map");
     image = map.draw("test1.png", map); // we're ok at this point
     map.scale(2);
     image = map.draw("test2.png", map); // empty map returned !
  }
   
  public static void main(String[] args) {
      new Generate();
  }
   
  }
   
  Does someone knows what is wrong with this ?
  Thanks in advance !
   
   

 
---------------------------------
8:00? 8:25? 8:40?  Find a flick in no time
 with theYahoo! Search movie showtime shortcut.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070308/c3c29047/attachment.html


More information about the mapserver-users mailing list