开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
开源项目 > 程序开发 > 常用工具包 &&
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
6 Star 11 Fork 4

GIScript/GIScript2016

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (1)
master
master
分支 (1)
master
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (1)
master
GIScript2016
/
Include
/
EngineMySQL
/
UGDatasetVectorMySQL.h
GIScript2016
/
Include
/
EngineMySQL
/
UGDatasetVectorMySQL.h
UGDatasetVectorMySQL.h 18.52 KB
一键复制 编辑 原始数据 按行查看 历史
liyq0307 提交于 2017年03月14日 17:06 +08:00 . GIScript更新,和主版本保持一致
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535
//////////////////////////////////////////////////////////////////////////
// _ _ ____ ____
// Project | | | | / ___) / ___)
// | | | || | __ | |
// | |_| || |_\ || \___
// \____/ \____| \ ___) 6.0
//
//! \file UGDatasetVectorMySQL.h
//! \brief Class 的接口定义。
//! \details 文件详细信息。
//! \author cuiwenzhu
//! \attention
//! Copyright (c) 1996-2008 SuperMap Software Limited Company. <br>
//! All Rights Reserved.
//! \version 6.0
//////////////////////////////////////////////////////////////////////////
#if !defined(UGDatasetVectorMySQL_H)
#define UGDatasetVectorMySQL_H
#include "Engine/UGDatasetVector.h"
#include "Stream/UGFileStream.h"
#include "Toolkit/UGThread.h"
#include "Toolkit/UGProgress.h"
#include "MySQLCI/UGMyConnection.h"
namespace UGC
{
class ENGINEMYSQL_API UGDatasetVectorMySQL : public UGDatasetVector
{
friend class UGEditRecordsetMySQL;
friend class UGRecordsetMySQL;
friend class UGSpatialIndexMySQL;
public:
enum ORCP_DT_OPTION
{
MYSQLP_DT_OPENED = 0x00000001,
MYSQLP_DT_TRANSMODIFIED = 0x00000002,
MYSQLP_DT_CHECKED_OUT = 0x00000004,
MYSQLP_DT_LONGTRANS_REGISTED = 0x00000008
};
public:
//! \brief 默认构造函数
UGDatasetVectorMySQL();
//! \brief 默认数据源的构造函数
UGDatasetVectorMySQL(UGDataSource *pDataSource);
//! \brief 默认析构函数
virtual ~UGDatasetVectorMySQL();
public:
//! \brief 基类中定义的纯虚函数
////! 追加记录,属性字段有对应关系,空间字段不处理
////##ModelId=48203053017F
//virtual UGbool Append(UGRecordset* pSrcRecordset,
// UGArray<UGString> &strSrcFieldNames,
// UGArray<UGString> &strDesFieldNames,
// UGbool bShowProgress = TRUE,
// UGString strTileName = "");
//! \brief 向数据集追加记录。
//! \param pSrcRecordset 源记录集指针[in]。
//! \return 追加成功返回TRUE,失败返回FALSE。
//##ModelId=48203053017A
virtual UGbool Append(UGRecordset* pSrcRecordset,
UGbool bShowProgress = TRUE,UGString strTileName = _U(""));
//! \brief 向数据集追加记录。
//! \param pSrcRecordset 源记录集指针[in]。
//! \return 追加成功返回TRUE,失败返回FALSE。
//##ModelId=48203053017A
virtual UGbool Append(UGRecordset* pSrcRecordset,
UGbool bShowProgress = TRUE,UGString strTileName = _U(""),
UGArray<UGString> arrSrcFieldNames = UGArray<UGString>(),
UGArray<UGString> arrDesFieldNames = UGArray<UGString>());
//! \brief 通过记录集序号释放记录集内存空间。
//! \param nIndex 记录集序号[in]。
//! \return 是否释放成功,成功返回TRUE,失败返回FALSE。
//##ModelId=4820305301A8
virtual UGbool ReleaseRecordset(UGint nIndex);
//! \brief 通过记录集指针释放记录集内存空间。
//! \param *pRecordset 记录集指针[in]。
//! \return 是否释放成功,成功返回TRUE,失败返回FALSE。
//##ModelId=4820305301AB
virtual UGbool ReleaseRecordset(UGRecordset *pRecordset);
//! \brief 通过ID数组删除数据集中的记录
virtual UGbool DeleteRecords(const UGint* pIDs,UGint nCount);
//! \brief 判断字段名是否有效。
//! \param strFieldName 字段名[in]。
//! \return 有效返回TRUE,无效返回FALSE。
//##ModelId=4820305301BA
virtual UGbool IsAvailableFieldName(const UGString& strFieldName);
//! \brief 设置字段的类别。
//! \param strFieldName 字段名[in]。
//! \param nSign 系统字段标识[in]。
//! \return 设置成功返回TRUE,失败返回FALSE。
//##ModelId=4820305301D4
virtual UGbool SetFieldSign(const UGString& strFieldName,UGFieldInfo::FieldSign nSign);
//! \brief 通过类别获取字段名
//! \param nSign 系统字段标识[in]。
//! \return 字段名。
//##ModelId=4820305301CB
virtual UGString GetFieldNameBySign(UGFieldInfo::FieldSign nSign);
//! \brief 取出数据集中某行特征要素。
//! \param nID 数据集记录ID号[in]。
//! \param pFeature 特征要素指针[in|out]在函数内分配内存,外面负责删除,否则会有内存泄漏。
//! \return 成功返回Ture,失败返回 False。
//##ModelId=48203053012A
virtual UGbool GetFeature(UGint nID, UGFeature*& pFeature);
//! \brief 将特征要素更新到数据集中。
//! \param pFeature 特征要素指针[in]。
//! \return 是否保存成功,成功返回TRUE,失败返回FALSE。
//##ModelId=48203053012D
virtual UGbool UpdateFeature(const UGFeature* pFeature);
//! \brief 将特征要素追加到数据集未尾。
//! \param pFeature 特征要素指针[in]。
//! \return 是否追加成功,成功返回TRUE,失败返回FALSE。
//! \remarks 追加时特征要素关联的数据集记录ID将不起作用。
//##ModelId=482030530139
virtual UGbool AddFeature(const UGFeature* pFeature);
//! \brief 将特征要素从数据集中删除。
//! \param nID 数据集记录ID号[in]。
//! \return 是否删除成功,成功返回TRUE,失败返回FALSE。
//##ModelId=48203053013C
virtual UGbool DeleteFeature(UGint nID);
//! \breif 获取一组的SMID资源
//! \breif nCount 需要开辟的ID的个数
//! \breif return 返回开辟成功的首位置ID
virtual UGint GetSomeIDs(UGint nCount);
public:
//////////////////////////// UGTable的方法 //////////////////////////////////////////////
//! \brief 通过值更新字段值。
//! \param strFieldName 更新的字段名[in]。
//! \param varValue 字段值[in]。
//! \param strFilter 更新字段时对数据行的过滤条件,
//! 默认过滤条件置空,更新所有记录[in]。
//! \return 是否更新字段值成功,成功返回TRUE,失败返回FALSE。
//##ModelId=4820305000EE
virtual UGbool UpdateField(const UGString& strFieldName,
const UGVariant& varValue,const UGString& strFilter = _U(""));
//! \brief 通过表达式更新字段值。
//! \param strFieldName 更新的字段名[in]。
//! \param strExpress 算术运算表达式字符串,
//! 字段值是某个算术运算表达式的值,如strFieldName = Col1 + col2 * 2[in]。
//! \param strFilter 更新字段时对数据行的过滤条件,
//! 默认过滤条件置空,更新所有记录[in]。
//! \return 是否更新字段值成功,成功返回TRUE,失败返回FALSE。
//##ModelId=4820305000F3
virtual UGbool UpdateFieldEx(const UGString& strFieldName,
const UGString& strExpress,const UGString& strFilter = _U(""));
//! \brief 复制字段值,strSrcField和。
//! \param strSrcFieldName 源字段名称[in]。
//! \param strDestFieldName 目的字段名称[in]。
//! \return 是否复制字段成功,成功返回TRUE,失败返回FALSE。
//! \attention 目的字段名必须都存在且目的字段要与源字段类型匹配。
//! strDestField必须都存在且字段类型匹配
//##ModelId=4820305000FB
virtual UGbool CopyField(const UGString& strSrcField,
const UGString& strDestField);
//! \brief 创建普通索引。
//! \param strFieldNameList 创建索引的字段列表,多个字段中间用","隔开[in]。
//! \param strIndexName 索引名[in]。
//! \return 创建普通索引是否成功,成功返回TRUE,失败返回FALSE。
//##ModelId=4820305000FF
virtual UGbool CreateIndex(const UGString& strFieldNameList,
const UGString& strIndexName);
//! \brief 删除索引。
//! \param strIndexName 索引名[in]。
//! \return 删除索引是否成功,成功返回TRUE,失败返回FALSE。
//##ModelId=482030500103
virtual UGbool DropIndex(const UGString& strIndexName);
//! \brief 获取索引
virtual std::map<UGString,UGString> GetIndexToMap();
//! \brief 创建多个字段。
//! \param fieldInfos 字段描述信息数组引用[in]。
//! \return 创建多个字段是否成功,成功返回TRUE,失败返回FALSE。
//##ModelId=482030500106
virtual UGbool CreateFields(const UGFieldInfos& fieldInfos);
//! \brief 通过FieldInfo创建一个字段。
//! \param fieldInfo 字段描述信息对象引用[in]。
//! \return 创建一个字段是否成功,成功返回TRUE,失败返回FALSE。
//##ModelId=48203050010A
virtual UGbool CreateField(const UGFieldInfo& fieldInfo);
//! \brief 通过设置字段的各项参数,创建一个字段。
//! \param strFieldName 字段名[in]。
//! \param nType 字段类型枚举值[in]。
//! \param nSize 字段长度,以字节为单位[in]。
//! \param nAttributes 字段属性默认为0[in]。
//! \return 创建一个字段是否成功,成功返回TRUE,失败返回FALSE。
//##ModelId=48203050010D
virtual UGbool CreateField(const UGString& strName,
UGFieldInfo::FieldType nType,UGint nSize,UGint nAttributes = 0);
//! \brief 通过字段名称删除字段。
//! \param strFieldName 字段名[in]。
//! \param bSystemFieldExcluded nIndex是否包含系统字段,默认不包含[in]。
//! \return 是否删除成功,成功返回TRUE,失败返回FALSE。
//##ModelId=482030500113
virtual UGbool DeleteField(const UGString& strName);
//! \brief 通过序号删除字段。
//! \param nIndex 字段序号,以0开始[in]。
//! \param bSystemFieldExcluded nIndex是否包含系统字段,默认不包含[in]。
//! \return 是否删除成功,成功返回TRUE,失败返回FALSE。
//##ModelId=482030500116
virtual UGbool DeleteField(UGint nIndex, UGbool bSystemFieldExcluded = FALSE);
//! \brief 获取数据表中所有字段的描述信息。
//! \param fieldInfos 数据表中所有字段的描述信息数组[out]。
//! \param bSystemFieldExcluded 是否获取系统字段,默认不取[in]。
//! \return 是否获取成功,成功返回TRUE,失败返回FALSE。
//##ModelId=48203050011B
virtual UGbool GetFieldInfos(UGFieldInfos& fieldInfos,UGbool bSystemFieldExcluded = FALSE);
//! \brief 通过字段名获取字段描述信息。
//! \param strFieldName 字段名[in]。
//! \param fieldInfo 字段描述信息[out]。
//! \return 是否获取成功,成功返回TRUE,失败返回FALSE。
//##ModelId=48203050011F
virtual UGbool GetFieldInfo(const UGString& strName,UGFieldInfo& fieldInfo);
//! \brief 通过字段序号获取字段信息。
//! \param nIndex 字段序号,以0开始[in]。
//! \param fieldInfo 字段描述信息[in]。
//! \param bSystemFieldExcluded nIndex是否包含系统字段,默认不包含[in]。
//! \return 是否获取成功,成功返回TRUE,失败返回FALSE。
//##ModelId=482030500123
virtual UGbool GetFieldInfo(UGint nIndex,UGFieldInfo& fieldInfo, UGbool bSystemFieldExcluded = FALSE);
//! \brief 通过字段名设置字段信息。
//! \param strFieldName 字段名[in]。
//! \param fieldInfo 字段描述信息对象引用[in]。
//! \return 是否设置成功,成功返回TRUE,失败返回FALSE。
//##ModelId=482030500127
virtual UGbool SetFieldInfo(const UGString& strName,const UGFieldInfo& fieldInfo);
//! \brief 通过序号设置字段信息。
//! \param nIndex 字段序号,以0开始[in]。
//! \param fieldInfo 字段描述信息对象引用[in]。
//! \param bSystemFieldExcluded nIndex是否包含系统字段,默认不包含[in]。
//! \return 是否设置成功,成功返回TRUE,失败返回FALSE。
//##ModelId=48203050012B
virtual UGbool SetFieldInfo(UGint nIndex,const UGFieldInfo& fieldInfo, UGbool bSystemFieldExcluded = FALSE);
//! \brief 获取数据表中字段个数。
//! \param bSystemFieldExcluded nIndex是否包含系统字段,默认不包含[in]。
//! \return 字段个数。
//##ModelId=48203050012F
virtual UGint GetFieldCount(UGbool bSystemFieldExcluded = FALSE);
//! \brief 删除表中所有数据。
//! \return 是否删除成功,成功返回TRUE,失败返回FALSE。
//! \remarks 清空表后表中的字段仍然保留。
//##ModelId=482030500131
virtual UGbool Truncate();
//! \brief 统计字段值。
//! \param strFieldName 字段名[in]。
//! \param nMode 统计模式[in]。
//! \return 统计值。
//##ModelId=482030500133
virtual UGVariant Statistic(const UGString& strField,UGStatisticMode nMode);
//! \brief 计算字段单值个数。
//! \param &strFieldName 字段名[in]。
//! \param varKeys 单值数组[in]。
//! \return 单值个数。
//##ModelId=482030500138
virtual UGint CalculateUniqueValues(const UGString &strFieldName,UGArray<UGVariant>& varKeys);
//! \brief 设置数据集字符编码方式
//##ModelId=4820305301DA
virtual UGbool SetCharset(UGString::Charset c);
public:
///////////////////////////// UGDataset的方法 /////////////////////////////////////////////
//! \brief 打开数据集
virtual UGbool Open();
//! \brief 关闭数据集
virtual void Close();
//! \brief 返回最后更新时间
//##ModelId=482030550267
virtual UGTime GetDateLastUpdated();
//! \brief 返回创建时间
//##ModelId=482030550269
virtual UGTime GetDateCreated();
//! \brief 数据集重命名,只改变数据集名,表名不变
//##ModelId=482030550274
virtual UGbool Rename(const UGString& strNewName);
//! \brief 保存数据集信息
virtual UGbool SaveInfo();
//! \brief 刷新数据集信息
virtual UGbool RefreshInfo();
//! \brief 计算数据集范围,一般在数据集中元素被删除或修改后使用,
//! 可能耗费较多时间
virtual UGbool ComputeBounds();
//! \brief 返回数据集中对象个数,速度慢,但值比较正确,
//! 通过Register表获取
//##ModelId=48203053011A
virtual UGint GetObjectCount();
//! \brief 检查记录数与Register表中的是否一致,如果不一致会自动修复。
virtual UGbool CheckObjectCount();
//! \brief 注册选项信息
//##ModelId=4820305502C7
virtual UGbool RegisterOption(UGint /*nOption*/);
//! \brief 反注册选项信息
//##ModelId=4820305502CA
virtual UGbool UnRegisterOption(UGint /*nOption*/);
//! \brief 如果参与了topo 可以获得topo数据集指针
virtual UGDataset * GetTopoAdscriptionDT();
//! \brief For Tin 数据集
virtual UGbool CreateSubDataset(UGDatasetVectorInfo & vInfo);
//! \brief deletesubdataset
virtual UGbool DeleteSubDataset(UGString &strName);
public:
//! \brief 查询通用入口
virtual UGRecordset* Query(const UGQueryDef& querydef);
//! \brief 获取最大空间对象的字节大小
virtual UGint GetMaxGeoSize();
//! \brief 设置最大空间对象的字节大小
virtual UGbool SetMaxGeoSize(UGint nMaxGeoSize);
//! \brief 得到图库索引图的名字
virtual UGString GetMiniatureDtName();
//! \brief 数据集是否有某种模式的操作的能力
virtual UGbool HasAbility(UGEngAbility dwEngAbility);
//! \brief 判断数据集是否支持某种操作
virtual UGbool IsSupport(UGEngAction nAction);
protected:
//! \brief 查询大表图库中一个图幅的数据
virtual UGRecordset* QueryWithLibTileID(UGint nLibTileID,
UGArray<UGString> & arFields,UGdouble dGranule);
//! \brief 通过矩形范围查询图幅序号
virtual UGbool GetLibTileIDs(const UGRect2D& rc2Bounds,
UGArray<UGint>& arLibTileIDs);
//! \brief 得到一个图幅的信息
virtual UGbool GetLibTileInfo(UGint nTileID,UGRect2D& rc2TileBounds,
UGint& nRecCount,UGint& nVersion);
//! \brief 通过Bounds查询
virtual UGRecordset* QueryWithBounds(const UGRect2D &rc2Bounds,
UGQueryDef::QueryOption nOptions = UGQueryDef::Geometry,
UGQueryDef::QueryMode nMode = UGQueryDef::FuzzyQuery);
//! \brief 通过IDs查询
virtual UGRecordset* QueryWithIDs(UGint *pIDs,UGint nCount,
UGQueryDef::QueryOption nOptions = UGQueryDef::Both ,
UGQueryDef::QueryMode nMode = UGQueryDef::GeneralQuery);
//! \brief 是否每个对象有自己的风格
virtual UGbool HasStyle();
//! \brief 真正的SQL查询记录个数,更新Register表
virtual UGbool ComputeRecCount();
//! \brief 设置数据集的范围
virtual void SetBounds(const UGRect2D& r);
//! \brief 获取最大的smid
virtual UGint GetMaxID();
//////////////////// SpatialIndex需要用到的方法,与存储相关,各引擎必须单独实现 //////////////////////////////////////////////
public:
//! \brief 从数据库中读取当前数据集的Bounds信息
//! \remarks 此函数与CDatasetVector::GetBounds有所区别,此函数是从数据库中读取,得到的是最新的Bounds,而后者是直接从内存中读取m_DatasetInfo中存储的Bounds信息,速度要快得多
//! \sa CDatasetVector::GetBounds
virtual UGRect2D GetBoundsDirectly();
protected:
//! \brief 初始化空间索引
virtual UGbool InitSpatialIndex();
//! \brief
UGbool GetLibTileSQL(const UGRect2D& rc2SearchBounds,
UGString& strLibTile);
public:
//! \brief 创建空间索引
UGbool Create(const UGString & strName, UGDataset *pDatasetParent,
const UGDatasetVectorInfo & vInfo);
//! \brief 获取一次最大的获取个数
//! \remarks mySQL内部没有批量获取获取到指定数组.
UGuint GetOnceFetchCount();
//! \brief 获取连接信息
UGMyConnection * GetConnection() const;
//! \brief 能否提交
UGbool CanTransact();
//! \brief 获取缓存文件
UGbool GetCacheFile(UGString &strFileName,UGint nLibTileID);
//! \brief 查询字段信息
UGbool QueryFieldInfos();
//! \brief
UGbool IsSupportMyOption(UGint nMyOption){ return (m_nMyOption & nMyOption) == nMyOption;}
//! \brief
void SetMyOption(UGint nMyOption){m_nMyOption |= nMyOption;}
//! \brief
void UnsetMyOption(UGint nMyOption){m_nMyOption &= (~nMyOption);}
//! \brief
UGString CheckFieldName(UGString strFieldName);
//! \brief mySQL的数据类型转化到本地数据类型。
//! \param oraType 原始的mysql类型[in]。
//! \param nLength 长度[in]。
//! \param nScale 范围[in]。
//! \param &nFieldType 本地数据类型[in]。
//! \return 。
//! \remarks 。
//! \attention 。
static UGbool GetMySQLType2FieldType(const UGString& oraType, UGint nLength,UGint nScale,UGFieldInfo::FieldType &nFieldType);
//! \brief 通过mySQL类型的字符串获取mySQL的数据类型
static enum_field_types GetMySQLType2FieldString(const UGString& strMysqlType);
//! \brief mySQL的类型转化到field的类型
static UGbool GetMySQLType2FieldType(const enum_field_types oraType,UGFieldInfo::FieldType &nFieldType);
//! \brief 设置field信息
UGbool SetFieldInfo(const UGString& strName,const UGString& strForeignName,
UGFieldInfo::FieldType nType,const UGString & strFormat,
const UGString & strDomain,UGbool bUpdatable);
//! \brief 创建表
UGbool U_CreateTable(UGString strName,UGFieldInfos &fieldInfos);
UGbool IsSpatialIndexDirty();
//! \brief 设置二进制字段的长度
UGbool SetMaxBinaryFieldSize(UGint nNewSize, UGString strFieldName);
protected:
void U_CreateLinkDatasource(UGDsConnection &conn);
private:
//! \brief 刷新当前数据集的选项信息
//! \sa RegisterOption, UnRegisterOption, CSmDataset::GetOptions
UGbool RefreshOption();
//! \brief 数据源信息到指针
UGbool Var2Ptr(UGbyte * pDestData,const UGFieldInfo & fieldInfo,UGVariant var);
//! \brief 获取自增序列的名字
UGString GetSequenceName();
//! \brief 获取string 通过filed的类型
UGString GetStringbyFieldtype(const UGFieldInfo &fieldInfo);
//在Append中调用
UGbool AppendBinaryFields(UGRecordset* pSrcRecordset,UGint nSmIDBegin, UGbool bShowProgress = TRUE);
UGbool SetFieldType(const UGString& strName, const UGFieldInfo& fieldInfo);
UGbool SetFieldRequired(const UGString& strName, const UGFieldInfo& fieldInfo);
UGbool SetFieldDefaultValue(const UGString& strName, const UGFieldInfo& fieldInfo);
UGbool SetFieldName(const UGString& oldName, const UGFieldInfo& fieldInfo);
private:
//CHENZhao 得到可以直接放到SQL语句中的defaultvalue。
UGString GetFieldDefaultValue(UGFieldInfo fieldInfo);
UGbool GetStringCreate(UGDataset::DatasetType nType,UGString& strSQL);
//! \brief 计算给定范围经过的所有网格中最左下及右上网格的坐标
//! \param rcBounds 矩形范围[in]
//! \param aryGrids 左下及右上网格的坐标[out]
UGbool FindQueryGrids(UGRect2D &rcBounds,UGArray<UGPoint> &aryGrids);
private:
//! \brief 本地选项。
UGint m_nMyOption;
//! \brief 当前矢量数据集的状态
UGint m_nState;
//! \brief 当前数据集的最大索引锁
UGint m_nMaxIndexSize;
};
}
#endif // !defined(UGDatasetVectorMySQL_H)
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

GIScript,GIS的Python开放脚本工程
暂无标签
MIT
使用 MIT 开源许可协议
取消

发行版

暂无发行版

开源评估指数源自 OSS-Compass 评估体系,评估体系围绕以下三个维度对项目展开评估:

1. 开源生态

  • 生产力:来评估开源项目输出软件制品和开源价值的能力。
  • 创新力:用于评估开源软件及其生态系统的多样化程度。
  • 稳健性:用于评估开源项目面对多变的发展环境,抵御内外干扰并自我恢复的能力。

2. 协作、人、软件

  • 协作:代表了开源开发行为中协作的程度和深度。
  • 人:观察开源项目核心人员在开源项目中的影响力,并通过第三方视角考察用户和开发者对开源项目的评价。
  • 软件:从开源项目对外输出的制品评估其价值最终落脚点。也是开源评估最"古老"的主流方向之一"开源软件" 的具体表现。

3. 评估模型

    基于"开源生态"与"协作、人、软件"的维度,找到与该目标直接或间接相关的可量化指标,对开源项目健康与生态进行量化评估,最终形成开源评估指数。

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/GIScript/GIScript2016.git
git@gitee.com:GIScript/GIScript2016.git
GIScript
GIScript2016
GIScript2016
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /