Just try to cast the value to int type. Best regards,
Tamas 2010/3/7 Prateek Khatri <[email protected]> > 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 <[email protected]>wrote: > >> 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 <[email protected]> >> >>> >>> 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 shapeObj for line type geometry feature? >>> Actually >>> using MS_SHP_POLYGONZ gives error for the layer of type line. >>> Thanks >>> -- >>> View this message in context: >>> http://n2.nabble.com/shapeObj-constructor-tp4690347p4690347.html >>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>> _______________________________________________ >>> mapserver-users mailing list >>> [email protected] >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> > > > -- > Regards > Prateek Khatri > Fourth Year Undergraduate > Computer Science and Engineering > Indian Institute of Technology Bombay >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
