![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Gis
文章平均质量分 56
waterywine
关注软件开发,喜欢讨论问题。
展开
-
mapx 创建使用truetype字体的符号样式。
//创建点样式 try {... pointStyle.CreateDispatch(pointStyle.GetClsid()); pointStyle.SetSymbolType(miSymbolTypeTrueTypeFont);//Mapx Symbols COleFont ft=pointStyle.转载 2007-10-27 14:19:00 · 2076 阅读 · 1 评论 -
mapx 显示新建图元的属性
/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 3.x/4.xPlatform: All Win32 PlatformsCategory: C++Summary:Returning properties of a feature after it is attached to a Map.Question:MapX vers转载 2007-10-27 16:39:00 · 3694 阅读 · 0 评论 -
mapx 使用layerinfo 添加shape 文件层.(VB)
/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 4.5.1Platform: Windows NT/2000Category: Code SamplesSummary:Opening Shape files through MapX?Question:Below is a code sample showing how to转载 2007-10-27 16:45:00 · 1215 阅读 · 0 评论 -
mapx 复制图层并粘贴到新建图层中.
/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 5.xPlatform: Win9xNT0Category: VC++ Code SamplesSummary:Copying features and data to a new layer in VC++.Question:The following code co转载 2007-10-29 21:05:00 · 2684 阅读 · 0 评论 -
MapX 创建位图样式符号。
/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 5.xPlatform: 98/NT 4.0 SP6/2000/XPCategory: VC++ Code SamplesSummary:Using Custom Bitmap Symbols in C++.Question:What are the methods perta转载 2007-10-29 22:17:00 · 1736 阅读 · 0 评论 -
MapX MapInfo truetype 字体编号对照。
1 Map Symbols每隔5个一个。 2 MapInfo Arrows3 MapInfo Cartographic4 MapInfo Miscellaneous5 MapInfo Oil&Gas6MapInfo Real Estate7 MapInfo Shields8 MapInfo Symbols9 MapInfo Transportation10 MapInfo Weather转载 2007-10-30 21:21:00 · 2543 阅读 · 0 评论 -
mapx 删除所有图元
void CAMHiliteLayer::RemoveAll(){ BeginAccess(miAccessReadWrite); CMapXFeatures fs = AllFeatures(); for (long nItem=1; nItem DeleteFeature(fs.Item(nItem).GetFeatureKey()); EndAccess转载 2007-12-22 15:38:00 · 1616 阅读 · 0 评论 -
Mapx 属性数据文件用oledb方式访问的问题
mapx(mapinfo )的属性数据文件 .dat 文件,其结构是dbase 格式。希望在程序中使用oledb方式进行直接访问,想不到不行。提示ole/db provider returned message: microsoft jet 数据库引擎找不到对象但是如果把其扩展名改为.dbf ,就可以了。 这是怎么回事?下面这两个帖子给出答案:http://www.rent原创 2007-12-22 09:39:00 · 1078 阅读 · 2 评论 -
Mapx 创建新符号图元另外一种方法
//创建新的图元另外一种方法,当采用mapx 的tab 表作为数据源时。 CMapXFeature newFtr; newFtr.CreateDispatch(newFtr.GetClsid()); newFtr.Attach(m_pCtrlMapx->GetDispatch());原创 2008-01-09 10:12:00 · 1149 阅读 · 0 评论 -
MapX的绘图刷新导致客户区cdc绘图丢失的问题。
最近程序中遇到在使用mapx绘图的同时,还必须在客户区窗口中使用cdc 直接绘图。 但是这出现了问题,就是当mapx 刷新时(比如窗口移动,最大化,遮盖),同时会将cdc 设备的绘图刷掉。 原来一直以为可以在cview::ondraw 中重绘,但是怎么也不行。后来想到可能mapx的绘制是否在ondraw之后发生的。那么也就是说必须等到mapx的绘图之后才可以使用cd原创 2008-05-22 16:10:00 · 2196 阅读 · 2 评论 -
mapx toolused 事件代码例子
/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 2.0Platform: Window 95/Windows NTCategory: C++Summary:A ToolUsed handler for C++ that changes the style of a feature.Question:A ToolUsed ha转载 2007-10-27 16:24:00 · 1263 阅读 · 0 评论 -
mapx 添加新的永久图层
MapXLayerInfo LayerInfo ;CMapXFields MapFields ; try...{ LayerInfo.CreateDispatch( LayerInfo.GetClsid() ) ; MapFields.CreateDispatch( MapFields.GetClsid() ); MapFields转载 2007-10-27 14:38:00 · 1672 阅读 · 0 评论 -
mapx 创建使用位图样式的符号例程。
/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 3.xPlatform: All Win32 PlatformsCategory: C++Summary:C++ sample code showing how to create a point and use the BitmapSymbols collection.Que转载 2007-10-27 16:31:00 · 1417 阅读 · 0 评论 -
mapx 拦截键盘输入
/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 4.xPlatform: Windows 9598 & Windows NTCategory: VC++ Code SamplesSummary:Catching key strokes before they are sent to MapX in C++?Question:转载 2007-10-29 21:45:00 · 1476 阅读 · 2 评论 -
MapX 创建新的永久图层。
/*MapInfo Products Knowledge BaseProduct: MapXVersion: 4.5Platform: Win9xNT0Category: VC++ Code SamplesSummary:Creating a new table in Visual C++.Question:Is there a C++ code example for how to cre转载 2007-10-29 21:53:00 · 2411 阅读 · 1 评论 -
MapX 设置投影。
/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 4.xPlatform: Windows 9598 & Windows NTCategory: VC++ Code SamplesSummary:Setting a projection through code in VC++ with MapX.Question:Is转载 2007-10-29 22:02:00 · 1092 阅读 · 0 评论 -
mapx 画点
float screenX,screenY;double mapX,mapY;CMapXPoints pts;CMapXPoint pt;CMapXLayer layer ;pts.CreateDispatch(pts.GetClsid() );pt.CreateDispatch(pt.GetClsid() ); screenX = X;screenY = Y; m_pMap-转载 2007-10-27 13:46:00 · 1315 阅读 · 0 评论 -
mapx 画圆
double mapx,mapy;m_mapx.ConvertCoord(&x,&y,&mapx,&mapy,miScreenToMap);CMapXPoint point;point.CreateDispatch(point.GetClsid());point.Set(mapx,mapy);CMapXFeature ft; ft=m_mapx.GetFeatureFactory().Crea转载 2007-10-27 14:11:00 · 2288 阅读 · 1 评论 -
MapX SetKeyField及GetKeyValue使用举例。
/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 5.xPlatform: Not Platform RelatedCategory: VC++ Code SamplesSummary:Extract data from a layer using the keyvalue/keyfield properties.Que转载 2007-10-29 22:34:00 · 7650 阅读 · 0 评论 -
mapx 画线
CMapXPoints Pnts; CMapXFeatureFactory FeaFac; CMapXLayer Layer;CMapXFeature Feature;CMapXStyle Style;double centerX,centerY;centerX=m_ctrlMapX.GetCenterX();centerY=m_ctrlMapX.GetCenterY();Pnt转载 2007-10-27 14:08:00 · 2160 阅读 · 0 评论 -
mapx 画矩形
//绘制一个空心矩形区域。 CMapXRectangle rec; rec = m_ctrlMapx->GetBounds(); double x1 = rec.GetXMin(); double y1 = rec.GetYMax(); double x2 = rec.GetXMax(); double y2 = rec.GetYMin();转载 2007-10-27 14:14:00 · 1878 阅读 · 0 评论 -
CMApx 5 内置的紧缩表函数
<br />前一段时间,由于需要对mapx 表 进行紧缩,所以查找办法,大都是通过临时图层过渡。但是网上的vc 代码似乎有一个bug ,会造成相关的图层文件无法重新创建。<br /> <br />于是通过网络搜索发现了另外一个方法:经过测试,代码无误。(非常感谢提供代码的朋友,不知是如何获得的代码?)<br /> <br /> <br />mapx5.0已经实现了紧缩表的功能,但用vc开发的时候,却找不到那个pack函数。因此,按照下面的方法做,就可实现该功能。<br /> <br />1、找到mapx.h原创 2010-06-18 07:10:00 · 1145 阅读 · 0 评论