[mapserver-users] problem with zoomRectangle
orkun
temiz at deprem.gov.tr
Mon May 4 02:32:03 PDT 2009
hello
I am working on java-mapscript
I have a problem with zoomRectangle:
here it is
rect_left: 377.000
rect_top: 120.000
rect_width: 52
rect_height: 36
rectObj rect_img=new rectObj(rect_left,500-(rect_top+rect_height),
rect_left+rect_width,500-rect_top,0) ; // 500 map dimensions
rect_img.toString() { 'minx': 377 , 'miny': 344 , 'maxx': 429 ,
'maxy':380 } // for checking it looks ok
map0.zoomRectangle(rect_img,500,500,map0.getExtent(),null);
it gives:
Caused by: java.lang.UnknownError: mapscript::mapObj::zoomRectangle():
General error message. image rectangle maxy >= miny
when I change the places of miny and maxy . it does not work again
what is the wrong I am doing ?
regards
--
Ahmet Temiz
Jeo. Müh.
Afet İşleri Gen. Md.lüğü
Deprem Ar. D.
Ahmet Temiz
Geo. Eng.
General Dir. of
Disaster Affairs
TURKEY
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MapServer-users
mailing list