[mapserver-users] shapeObj constructor

2010-03-07 Thread mrityunjay
I'm using mapscript in java. The shapeObj constructor requires a variable of type int. The available options in the mapscript constants are: MS_SHP_POINTZ, MS_SHP_ARCZ, MS_SHP_POLYGONZ, MS_SHP_MULTIPOINTZ MS_SHP_POINTM, MS_SHP_ARCM, MS_SHP_POLYGONM, MS_SHP_MULTIPOINTM Which one should I use for s

Re: [mapserver-users] shapeObj constructor

2010-03-07 Thread Tamas Szekeres
You must specify the desired shape type as the argument which can be: MS_SHAPE_TYPE.MS_SHAPE_NULL MS_SHAPE_TYPE.MS_SHAPE_POINT MS_SHAPE_TYPE.MS_SHAPE_LINE MS_SHAPE_TYPE.MS_SHAPE_POLYGON Best regards, Tamas 2010/3/7 mrityunjay > > I'm using mapscript in java. The shapeObj constructor require

Re: [mapserver-users] shapeObj constructor

2010-03-07 Thread Prateek Khatri
Hi Tamas, Thanks for the reply. I tried that also but it gives error because MS_SHAPE_TYPE.MS_SHAPE_LINE is not of type int. On Sun, Mar 7, 2010 at 8:48 PM, Tamas Szekeres wrote: > You must specify the desired shape type as the argument which can be: > > MS_SHAPE_TYPE.MS_SHAPE_NULL > MS_SHAPE_

[mapserver-users] Raster Display Performance

2010-03-07 Thread Medve Zsolt
Hy all! I would like to ask for a help. I have a dataset. 30 pieces of Tif file, aproximately 240 MB each. I make a layer in the map file: LAYER NAME "something" STATUS ON TILEINDEX "sh.shp" TILEITEM "Location" TYPE RASTER

Re: [mapserver-users] Raster Display Performance

2010-03-07 Thread Robert Sanson
Hi Zsolt Before you use gdaladdo, I would make sure that the internal structure on your TIFF files is tile based. You can use gdalinfo to check. If not, use gdal_translate to turn into a tile structure: gdal_translate -of GTiff -co TILED=YES -co BLOCKXSIZE=64 -co BLOCKYSIZE=64 input.tif outp

Re: [mapserver-users] shapeObj constructor

2010-03-07 Thread Tamas Szekeres
Just try to cast the value to int type. Best regards, Tamas 2010/3/7 Prateek Khatri > Hi Tamas, > Thanks for the reply. I tried that also but it gives error because > MS_SHAPE_TYPE.MS_SHAPE_LINE is not of type int. > > > > > On Sun, Mar 7, 2010 at 8:48 PM, Tamas Szekeres wrote: > >> You must

Re: [mapserver-users] Raster Display Performance

2010-03-07 Thread Frank Warmerdam
Medve Zsolt wrote: I am looking the gdaladdo program, because mapserver documentation suggest it. But when i tried the given examples (http://www.gdal.org/gdaladdo.html) it wont work, or i dont know what to see, Its just do nothing i think.. Can anybody help me on this? Or any method to make

Re: [mapserver-users] Raster Display Performance

2010-03-07 Thread Siki Zoltan
Dear Zsolt, You sould make pyramid and tiles. Divide the original images into smaller pieces. You can use gdal_translate. (I usually use approx 10 MB or smaller image size) Use gdaladdo to create pyramid. Regards Zoltan On Sun, 7 Mar 2010, Medve Zsolt wrote: Hy all! I would like to ask for