Hello Hans ;-)

I have no experience using C# with Mapscript, but have you tried this?
http://efreedom.com/Question/1-826851/Dynamic-Map-Layer-Mapservers-CSharp-MapScript

Maybe it has something to do with that your colorvalues should be cast to int32


2011/4/27 Hans Wapenaar (GIS Innovations) <[email protected]>:
> Hi,
>
> I'm using mapserver/mapscript in a windows/visual studio environment and I'm
> getting some errors: when I want to add a style to a layer with polygons the
> setting of a width generates an error.
>
> Any idea what the reason is? Setting of colors etc is no problem.
>
>
>
>
>
> Dim classtest As classObj = New classObj(layer)
>
> Dim styletest2 As styleObj = New styleObj(classtest)
>
> styletest2.outlinecolor.setRGB(74, 74, 74)
>
> styletest2.width = 5
>
>
>
> Error Message:
>
> System.EntryPointNotFoundException: Unable to find an entry point named
> 'CSharp_styleObj_width_set' in DLL 'mapscript'.
>
>    at OSGeo.MapServer.mapscriptPINVOKE.styleObj_width_set(HandleRef jarg1,
> Int32 jarg2)
>
>    at OSGeo.MapServer.styleObj.set_width(Int32 value)
>
>
>
>
>
> Hans Wapenaar
>
>
>
> _______________________________________________
> mapserver-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to