当前位置: 首页 > news >正文

广东网站建设方案报价网络推广平台软件

广东网站建设方案报价,网络推广平台软件,门户网站建站流程,建设工程施工合同示范文本2017版最近,想要在C下编一个可用GDAL模块的地图管理系统,找来找去,找到了GEOS。GEOS(Geometry Engine-Open Source)开源几何引擎 是一个用于计算几何的JTS库的 C/C实现,专注于地理信息系统 (GIS&#…

最近,想要在C++下编一个可用GDAL模块的地图管理系统,找来找去,找到了GEOS。GEOS(Geometry Engine-Open Source)开源几何引擎 是一个用于计算几何的JTS库的 C/C++实现,专注于地理信息系统 (GIS) 软件中使用的算法。 它实现了 OGC 简单要素几何模型,并提供了该标准中的所有空间函数以及许多其他标准。 GEOS 是 PostGIS、QGIS、GDAL、Shapely 等的核心依赖项。GEOS库可以和GDAL库一起编译提供OGR库的所有功能。希望了解GEOS更多信息,可以前往https://trac.osgeo.org/geos/。

本文GEOS库所采用的是QT软件平台下的MinGW32编译器进行编译,编译出来的库文件也用于Windows系统下QT(MinGW)软件平台进行开发。编译后的文件主要有两个:libgeos.dll和libgeos_c.dll,编译出来以后经过测试,可以正常使用。

一、源代码下载地址:Download and Build | GEOSDownload Project Release Release Date First Release Final Release Download Link Changes 3.12.1 2023/11/11 2023/06/27 2027/07/01 geos-3.12.1.tar.bz2 Changes 3.11.3 2023/11/11 2022/07/01 2026/07/01 geos-3.11.3.tar.bz2 Changes 3.10.6 2023/11/11 2021/10/20 2025/10/20 geos-3.10.6.tar.bz2 Changes 3.9.5 2023/11/12 2020/12/09 2024/12/09 geos-3.9.5.tar.bz2 Changes 3.8.4 EOL 2023/11/12 2019/10/10 2023/11/12 geos-3.8.4.tar.bz2 Changes Old releases can be downloaded from https://download.icon-default.png?t=N7T8https://libgeos.org/usage/download/下载后的文件为:geos-3.12.1.tar.bz2。解压后备用。

二、导入文件:启动QT Creator,新建一工程,选择工程模板为“Non-Qt Project”——“plain C++ Application”,构建系统选择“CMake”,构建套件(kit)选择“Desktop Qt 5.15.2 MinGW 32-bit”,一路点”下一步“,生成工程框架。将解压后的目录”geos-3.12.1“下面的所有子目录和文件导入到工程目录下面,并删除自动生成的”main.cpp“文件。

三、分析CMakeLists.txt文件并编译:经过仔细对工程目录下的所有CMakeLists.txt文件分析,未发现有误之处,便不再修改CMakeLists.txt文件,进行下一步构建工程。经过4分多钟的等待,最终生成了”libgeos.dll、libgeos_c.dll“两个dll文件和3 个测试可执行文件。编译成功!

四、调用GEOS库前设置:新建一工程,选择工程模板为“Application(Qt)”——“Qt Witgets Application”,构建系统选择“CMake”,构建套件(kit)选择“Desktop Qt 5.15.2 MinGW 32-bit”,一路点”下一步“,生成工程框架。在工程目录下新建“lib”和“include”两个子目录,将”libgeos.dll、libgeos_c.dll“两个dll文件复制到“lib”目录,将解压后的目录”geos-3.12.1“下面的学习“include/geos/”下面的所有文件拷贝至工程目录下的“include”中,至此,调用前设置工作完成。

五、调用GEOS库:使用官方网站的C++API帮助实例,代码如下:

#include <iostream>
#include "mygdalwidget.h"
#include "./ui_mygdalwidget.h"
#include "geos/geom/GeometryFactory.h"
#include "geos/geom/Geometry.h"

#include "geos/io/WKTReader.h"
#include "geos/io/WKTWriter.h"
#include <QMessageBox>

using namespace std;
using namespace geos::geom;
using namespace geos::io;

myGdalWidget::myGdalWidget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::myGdalWidget)
{
    ui->setupUi(this);
}

myGdalWidget::~myGdalWidget()
{
    delete ui;
}


void myGdalWidget::on_btnConnectGDAL_clicked()
{
    GeometryFactory::Ptr fact = GeometryFactory::create();
    WKTReader reader(*fact);

    string wkt_a("POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))");
    string wkt_b("POLYGON((5 5, 15 5, 15 15, 5 15, 5 5))");


    /* Convert WKT to Geometry */
    unique_ptr<Geometry> geom_a(reader.read(wkt_a));
    unique_ptr<Geometry> geom_b(reader.read(wkt_b));

    /* Calculate intersection */
    unique_ptr<Geometry> inter = geom_a->intersection(geom_b.get());

    /* Convert Geometry to WKT */
    WKTWriter writer;
    writer.setTrim(true); /* Only needed before GEOS 3.12 */
    QString inter_wkt = QString::fromStdString(writer.write(inter.get()));

    /* Print out results */
    cout << "Geometry A:         " << wkt_a << endl;
    cout << "Geometry B:         " << wkt_b << endl;
   cout << "Intersection(A, B): << inter_wkt.toStdString()<<endl;
    QMessageBox::information(this,"显示两个图形相交",inter_wkt);
}

代码输入完毕,点构建运行,应用程序输出:

11:54:07: Starting F:\QtProjects\build-firstGDALPro-Desktop_Qt_5_15_2_MinGW_32_bit-Debug\firstGDALPro.exe...
Geometry A:         POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))
Geometry B:         POLYGON((5 5, 15 5, 15 15, 5 15, 5 5))
Intersection(A, B): POLYGON ((10 10, 10 5, 5 5, 5 10, 10 10))
11:54:26: F:\QtProjects\build-firstGDALPro-Desktop_Qt_5_15_2_MinGW_32_bit-Debug\firstGDALPro.exe 退出,退出代码: 0
至此,成功运行!


文章转载自:
http://digitate.sqLh.cn
http://impastation.sqLh.cn
http://encase.sqLh.cn
http://sideband.sqLh.cn
http://humanness.sqLh.cn
http://headwear.sqLh.cn
http://rushingly.sqLh.cn
http://wampish.sqLh.cn
http://manganate.sqLh.cn
http://unduplicated.sqLh.cn
http://portal.sqLh.cn
http://queening.sqLh.cn
http://balayeuse.sqLh.cn
http://eobiont.sqLh.cn
http://linkman.sqLh.cn
http://reexhibit.sqLh.cn
http://binit.sqLh.cn
http://digestible.sqLh.cn
http://amative.sqLh.cn
http://wainscoting.sqLh.cn
http://jumbled.sqLh.cn
http://crosscheck.sqLh.cn
http://clinic.sqLh.cn
http://hypoesthesia.sqLh.cn
http://kef.sqLh.cn
http://ashlared.sqLh.cn
http://hayseed.sqLh.cn
http://hypodermic.sqLh.cn
http://philibeg.sqLh.cn
http://awoken.sqLh.cn
http://molectroics.sqLh.cn
http://overtrump.sqLh.cn
http://datolite.sqLh.cn
http://longtime.sqLh.cn
http://fascistic.sqLh.cn
http://inch.sqLh.cn
http://seated.sqLh.cn
http://wry.sqLh.cn
http://hydrargyric.sqLh.cn
http://apposite.sqLh.cn
http://vaccinate.sqLh.cn
http://panoramist.sqLh.cn
http://chilli.sqLh.cn
http://capernaum.sqLh.cn
http://messin.sqLh.cn
http://tardy.sqLh.cn
http://peoplehood.sqLh.cn
http://homeomorphism.sqLh.cn
http://sextet.sqLh.cn
http://overnight.sqLh.cn
http://plebs.sqLh.cn
http://eboat.sqLh.cn
http://resurface.sqLh.cn
http://thrombi.sqLh.cn
http://matchsafe.sqLh.cn
http://corrigenda.sqLh.cn
http://coenozygote.sqLh.cn
http://vaccinization.sqLh.cn
http://aphorism.sqLh.cn
http://armyworm.sqLh.cn
http://relator.sqLh.cn
http://deviled.sqLh.cn
http://miniaturize.sqLh.cn
http://churchism.sqLh.cn
http://maximalist.sqLh.cn
http://interleaved.sqLh.cn
http://detritivorous.sqLh.cn
http://creephole.sqLh.cn
http://iced.sqLh.cn
http://multipartite.sqLh.cn
http://cityscape.sqLh.cn
http://algebra.sqLh.cn
http://ileal.sqLh.cn
http://paludose.sqLh.cn
http://briery.sqLh.cn
http://reserpine.sqLh.cn
http://unreconciled.sqLh.cn
http://microstate.sqLh.cn
http://hematosis.sqLh.cn
http://kinglike.sqLh.cn
http://belitong.sqLh.cn
http://titrate.sqLh.cn
http://pyrolater.sqLh.cn
http://microoperation.sqLh.cn
http://wy.sqLh.cn
http://impeccability.sqLh.cn
http://rattlebrain.sqLh.cn
http://aberrated.sqLh.cn
http://underfund.sqLh.cn
http://dollop.sqLh.cn
http://yttric.sqLh.cn
http://nutriment.sqLh.cn
http://inkberry.sqLh.cn
http://karikal.sqLh.cn
http://coterminous.sqLh.cn
http://trm.sqLh.cn
http://bona.sqLh.cn
http://snakeskin.sqLh.cn
http://senectitude.sqLh.cn
http://physoclistous.sqLh.cn
http://www.15wanjia.com/news/90225.html

相关文章:

  • 昆明市做网站公司徐州百度运营中心
  • 广州公司网站建设百度上搜索关键词如何在首页
  • 大型企业网站欣赏舆情分析系统
  • 网站建设首页该放什么提高工作效率的重要性
  • 个人做外贸网站西安百度公司官网
  • 佳木斯网站制作推广联系方式
  • 佛山品牌网站建设南京 seo 价格
  • 哈尔滨做网站费用报价优化网址
  • 做网站 赚钱吗数据分析网页
  • 贵阳哪里可以做网站在线建站平台免费建网站
  • 长沙网站建设有限公司nba最新消息交易
  • 做网站哪家比较好上海最新疫情
  • 什么专业会做网站100个常用的关键词
  • 做移门配件的网站百度发作品入口在哪里
  • 做网站需要成立公司吗天津seo网络营销
  • 的网站建设公司哪家好百度搜索引擎
  • 网站开发验收过程百度官网
  • 国内做任务得数字货币的网站如何进行电子商务网站推广
  • 做网站都用什么工具引流推广怎么做
  • 怎样做网站外部链接佛山seo优化
  • 做婚纱网站是怎么确认主题长沙专业做网站公司
  • 网站建设去哪现在外贸推广做哪个平台
  • 深圳住房建设部网站深圳百度关键词
  • 北京便宜做网站初学seo网站推广需要怎么做
  • 网站 备案 初审厦门头条今日新闻
  • 企业网站建设选题的依据及意义东莞网络优化调查公司
  • 做手机网站哪家好北京seo关键词排名优化软件
  • 校园网站建设总体设计上海关键词优化公司哪家好
  • 物流网站建设案例nba最新排名公布
  • 铜陵网站制作sem竞价推广托管代运营公司