Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use linux proj software

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

Most people do not understand the knowledge points of this article "how to use linux proj software", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to use linux proj software" article.

In linux, proj is a general coordinate conversion software, a longitude and latitude coordinates to plane projection coordinate conversion library, which can change geo-spatial coordinates from one coordinate reference system to another. PROJ supports more than a hundred different map projections and can use all but the most obscure geodetic techniques to convert coordinates between datums.

The operating environment of this tutorial: CentOS7.6 system, Proj 7.1.0, Dell G3 computer.

What kind of software is proj

PROJ is a general coordinate conversion software, a longitude and latitude coordinate conversion plane projection coordinate conversion library, which can transform geo-spatial coordinates from one coordinate reference system (CRS) to another coordinate reference system (CRS). This includes cartographic projection and geodetic transformation.

When developing GIS applications, it may be necessary to calculate the distance between two points in GPS coordinates and the azimuth of the two-point connection, which can be converted by using this open source GIS conversion library.

PROJ includes command-line applications for easily converting coordinates from text files or directly from user input. In addition to command-line utilities, PROJ exposes an application programming interface, called API for short. API allows developers to use PROJ functionality in their own software without having to implement similar functionality on their own.

PROJ started out as a mapping application that allows users to use many different cartographic projections to convert geodetic coordinates into projected coordinates. Over the years, support for benchmark transformations has slowly moved into PROJ as demand becomes apparent. Today, PROJ supports more than a hundred different map projections, and all but the most obscure geodetic techniques can be used to transform coordinates between datums.

Compilation and installation of Proj

Version information

ServerVersionCentOS7.6sqlite33.33libtiff-devel4.0.3libcurl-devel7.29.0Proj7.1.0

Front installation

Proj needs to install sqlite3, libtiff, libcurl-devel, etc.

Install sqlite3 > = 3.11 ➜yum install-y libtiff libtiff-devel.x86_64➜ yum install-y libcurl-devel.x86_64

Proj download & & install

Proj official website: https://proj.org/

# download source code ➜wget https://download.osgeo.org/proj/proj-7.1.0.tar.gz

Installation instructions check the INSTALL file in the source code home directory

# use the simplest installation method # extract the ➜tar zxf proj-7.1.0.tar.gz➜ cd proj-7.1.0# compilation & & install ➜. / configure & & make & & make install

Error summary

1. Sqlite3 is not installed

➜. / configurechecking for SQLITE3... Configure: error: Package requirements (sqlite3 > = 3.11) were not met:No package 'sqlite3' foundConsider adjusting the PKG_CONFIG_PATH environment variable if youinstalled software in a non-standard prefix.Alternatively, you may set the environment variables SQLITE3_CFLAGSand SQLITE3_LIBS to avoid the need to call pkg-config.See the pkg-config man page for more details.

Error resolution

➜wget https://www.sqlite.org/2020/sqlite-autoconf-3330000.tar.gz➜ tar-zxf sqlite-autoconf-3330000.tar.gz# sqlite3 is installed using the simplest compilation trilogy. ➜cd sqlite-autoconf-3330000➜. / configure & & make & & make install# environment variable ➜find /-name "pkgconfig"-print/usr/lib64/pkgconfig/usr/share/pkgconfig/usr/local/lib/pkgconfig/usr/local/lib64/pkgconfig# can set PKG_CONFIG_PATH# or set SQLITE3_CFLAGS SQLITE3_LIBS➜ export PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig:/usr/local/lib/pkgconfig : / usr/local/lib64/pkgconfig:$PKG_CONFIG_PATH

2. Libtiff-4 is not installed

➜. / configurechecking for TIFF... Configure: error: Package requirements (libtiff-4) were not met:No package 'libtiff-4' foundConsider adjusting the PKG_CONFIG_PATH environment variable if youinstalled software in a non-standard prefix.Alternatively, you may set the environment variables TIFF_CFLAGSand TIFF_LIBS to avoid the need to call pkg-config.See the pkg-config man page for more details.

Error resolution

➜yum install-y libtiff libtiff-devel.x86_64

3. Curl-config is not installed

Checking for curl-config... Not-foundconfigure: error: curl not found. If wanting to do a build without curl support (and thus without built-in networking capability), explictly disable it with-without-curl

Error resolution

➜yum install-y libcurl-devel.x86_64 above is about the content of this article on "how to use linux proj Software". I believe we all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report