摘要:
1、system(执行shell 命令)相关函数 fork,execve,waitpid,popen表头文件 #include定义函数 int system(const char * string);函数说明 system()会调用fork()产生子进程,由子进程来调用/bin/sh-cstring来执行参数string字符串所代表的命令,此命令执行完后随即返回原调用的进程。在调用system()期间SIGCHLD 信号会被暂时搁置,SIGINT和SIGQUIT 信号则会被忽略。返回值 如果system()在调用/bin/sh时失败则返回127,其他失败原因返回-1。若参数string为空指针 阅读全文
posted @ 2014-02-17 08:17
知识天地
阅读(3067)
评论(0)
推荐(0)
摘要:
linux下运行,因为大部分shapefile 文件,在使用时都没有指定字符集,所以qgis只能从环境变量中获取设置环境变量中获取SHAPE_ENCODING。目前唯一的解决办法就是设置环境变量$ SHAPE_ENCODING=UTF-8$ export SHAPE_ENCODING$ qgisI insist that this is a QGIS issue.GDAL 1.9.0 (and newer) is trying to interpret the encoding setting from the shape file itself. When creating a new sh 阅读全文
posted @ 2014-02-13 13:49
知识天地
阅读(2349)
评论(0)
推荐(0)
摘要:
OGR 官方文档http://www.gdal.org/ogr/index.htmlThe OGR Simple Features Library is a C++open sourcelibrary (and commandline tools) providing read (and sometimes write) access to a variety of vector file formats including ESRI Shapefiles, S-57, SDTS, PostGIS, Oracle Spatial, and Mapinfo mid/mif and TAB for 阅读全文
posted @ 2014-02-13 11:15
知识天地
阅读(962)
评论(0)
推荐(0)
摘要:
This document is intended to document using the OGR C++ classes to read and write data from a file. It is strongly advised that the read first review theOGR Architecturedocument describing the key classes and their roles in OGR.It also includes code snippets for the corresponding functions in C and 阅读全文
posted @ 2014-02-12 16:59
知识天地
阅读(2977)
评论(0)
推荐(0)
摘要:
ESRI Shapefiles (SHP)Also known as ESRI ArcView Shapefiles or ESRI Shapefiles. ESRI is the company that introduced this format. ArcView was the first product to use shapefiles.File listingShapefiles are made up of a minimum of three similarly named files, with different suffixes:Countries_area.dbfCo 阅读全文
posted @ 2014-02-12 16:58
知识天地
阅读(859)
评论(0)
推荐(0)
摘要:
摘要: 属性选择与空间选择都可以看作是OGR内置的选择功能,这两种功能可以解决大部分实际中的问题。但是也有这种时候,就是进行查询时的条件比较复杂。针对这种情况,OGR也提供了更加灵活的解决方案:支持使用SQL语句进行查询。 例如执行SQL查询语句ExecuteSQL(...属性选择与空间选择都可以看作是OGR内置的选择功能,这两种功能可以解决大部分实际中的问题。但是也有这种时候,就是进行查询时的条件比较复杂。针对这种情况,OGR也提供了更加灵活的解决方案:支持使用SQL语句进行查询。例如执行SQL查询语句ExecuteSQL(),凭借SQL的强大功能,可以执行更复杂的任务。例如下面这段代码,是 阅读全文
posted @ 2014-02-11 17:36
知识天地
阅读(1452)
评论(0)
推荐(0)
摘要:
其计算公式应是:任何一个十进制数表示的经、纬度数,其整数即是度数,其小数部分乘以60得到的数的整数部分即是分数,再用该数的小数部分乘以60 得到的数就是秒数。例:36.12432314转换成度分秒的数是:其度数是"36",其分是"0.12432314×60=7.4593884"的整 数"7",其秒是"0.4593884×60=27.5639304","27.6"----36°7′27.6〃。计算原理:保留取整部分,小数×60 经度: 14° 0. 阅读全文
posted @ 2014-02-10 12:53
知识天地
阅读(7031)
评论(0)
推荐(0)
浙公网安备 33010602011771号