SharpMap.Geometries.Geometry

SharpMap.Geometries.Geometry 
Tags: General Topics

Jan 30 2007 at 12:46 AM
Error 1 The best overloaded method match for 'SharpMap.Data.Providers.GeometryProvider.GeometryProvider(System.Collections.ObjectModel.Collection<SharpMap.Geometries.Geometry>)' has some invalid arguments D:/Documents and Settings/Ibra/Meus documentos/Visual Studio 2005/Projects/Mapa/Mapa/Form1.cs 151 44 Mapa




Help Me



Ibraim Mansur
BR

Coordinator
Jan 30 2007 at 1:21 AM
Hi,

Do you have some more code and description for me.

regards
Christian

Jan 30 2007 at 2:26 AM

System.Collections.Generic.List<SharpMap.Geometries.Geometry> Pontos = new System.Collections.Generic.List<SharpMap.Geometries.Geometry>();
.
.
.
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
{
if (map != null)
{
SharpMap.Geometries.Point ClickPnt = new SharpMap.Geometries.Point();
ClickPnt = map.ImageToWorld(new System.Drawing.Point(e.X, e.Y));
Pontos.Add(ClickPnt);

VectorLayer m_VectorLayer = new VectorLayer("Ponto");
m_VectorLayer.DataSource = new SharpMap.Data.Providers.GeometryProvider(Pontos); -> "Error"
m_VectorLayer.Style.Symbol = new Bitmap("D://BOLA1.BMP");
map.Layers.Add(m_VectorLayer);
pictureBox1.Image = map.GetMap();
}

}
Error 2 The best overloaded method match for 'SharpMap.Data.Providers.GeometryProvider.GeometryProvider(System.Collections.ObjectModel.Collection<SharpMap.Geometries.Geometry>)' has some invalid arguments D:/Documents and Settings/Ibra/Meus documentos/Visual Studio 2005/Projects/Mapa/Mapa/Form1.cs 175 32 Mapa

Error 3 Argument '1': cannot convert from 'System.Collections.Generic.List<SharpMap.Geometries.Geometry>' to 'System.Collections.ObjectModel.Collection<SharpMap.Geometries.Geometry>' D:/Documents and Settings/Ibra/Meus documentos/Visual Studio
2005/Projects/Mapa/Mapa/Form1.cs 175 77 Mapa

This error happened after I changed DLL to open the data through MsSqlSpatial


Help Me


Ibraim Mansur
Br

Jan 30 2007 at 8:12 AM
Ibraim,
I was getting the same sort of error as your error 3. It went away when I used the correct versions of the SharpMap.dll and SharpMap.UI.dll. The version numbering it was looking for was 0.9.2423.31552.
HTH
Best regards

Jan 31 2007 at 1:15 AM
If I change DLL, it doesn't locate the referêcia for MsSqlSpatial.
Where finds Dll's that it corrects my mistake and have reference for MsSqlSpatial.


Thank you



Developer
Jan 31 2007 at 2:52 AM
Download MsSqlSpatial data provider from this changeset:
http://www.codeplex.com/SharpMap/SourceControl/DownloadSourceCode.aspx?changeSetId=6695

Best regards,
Ricardo Stuven.

Developer
Jan 31 2007 at 2:55 AM
...And it's not needed a reference to MsSqlSpatialLibrary.dll. It's uniquely to be used by msscmd.exe and to be deployed in the database, it should be not used in other contexts.

Best regards,
Ricardo Stuven.
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值