[mapserver-users] shapeObj constructor

Tamas Szekeres szekerest at gmail.com
Sun Mar 7 15:24:53 EST 2010


Just try to cast the value to int type.

Best regards,

Tamas


2010/3/7 Prateek Khatri <khatriprateek at gmail.com>

> 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 <szekerest at gmail.com>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 <khatriprateek at gmail.com>
>>
>>>
>>> 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
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
>>
>
>
> --
> Regards
> Prateek Khatri
> Fourth Year Undergraduate
> Computer Science and Engineering
> Indian Institute of Technology Bombay
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100307/ec333b33/attachment.html


More information about the mapserver-users mailing list