MapWindow 4 - ActiveX Control Programming : MapWindow Discussion Forum
Hello, I want to know how i can set type to a point, I tried this code: int Ishape1; MapWinGis.Shapefile shapefile = new MapWinGis.Shapefile(); Shapefile.open(@"...",null); Ishape1=axmap1.AddLayer(shapefile,true); Mapa.set_
Type of point C#
Posted by: truxky ()
Date: April 07, 2011 07:15AM

Hello,

I want to know how i can set type to a point, I tried this code:

int Ishape1;
MapWinGis.Shapefile shapefile = new MapWinGis.Shapefile();
Shapefile.open(@"...",null);
Ishape1=axmap1.AddLayer(shapefile,true);

Mapa.set_ShapePointType(Ishape1,0,MapWinGis.tkPointType.ptTriangleUp);

This code, doesn´t work. Why??

Thanks



Edited 1 time(s). Last edit at 04/07/2011 07:16AM by truxky.

Options: ReplyQuote
Re: Type of point C#
Posted by: sindizzy ()
Date: April 07, 2011 08:24AM

You are changing one shape with that command. Use set_ShapeLayerPointType for the entire layer.

AGP

Options: ReplyQuote
Re: Type of point C#
Posted by: truxky ()
Date: April 07, 2011 08:38AM

Thank you very much.

Today I begin to develop a new gis application in C# and I don´t know very much.

Options: ReplyQuote


Sorry, only registered users may post in this forum.





Banner Exchange




GISCP.com




Send us your banner logo (160x120) for the space above, and add this MapWindow banner ad to your site:

Just paste this text in your page: