Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Geometry Engine, Open Source [MIRROR]

License

NotificationsYou must be signed in to change notification settings

QPanScience/GIS-geos

 
 

Repository files navigation

Project homepage:http://geos.osgeo.org/

Build status

branch / CIDebbieWinnieDronieTravis CIGitLab CIAppVeyor
masterdebbiewinniedronietravisgitlab-ciappveyor
svn-3.6debbiewinniedronietravisgitlab-ciappveyor

More on:https://trac.osgeo.org/geos#BuildandInstall

Building, testing, installing

Unix

Using Autotools:

./autogen.sh  # in ${srcdir}, if obtained from SVN or GIT${srcdir}/configure # in build dir

Using CMake:

cmake ${srcdir} # in build dir

Now, all versions:

makemake checkmake install # as rootldconfig # as root

Microsoft Windows

If you use Microsoft Visual C++ (7.1 or later) compiler, you can buildGEOS using NMAKE program and providedmakefile.vc files.

If you are building from SVN or GIT checkout, first run:autogen.batThen:

nmake /f makefile.vc MSVC_VER=1400

where 1400 is version number of Visual C++ compiler, here Visual C++ 8.0from Visual Studio 2005 (supported versions are 1300, 1310, 1400, 1500,1600, 1700, 1800 and 1900).The bootstrap.bat step is required to generate a couple of header files.

In order to build debug configuration of GEOS, additional flagDEBUG=1is required:

nmake /f makefile.vc MSVC_VER=1400 DEBUG=1

Client applications

Using the C interface (recommended)

To compile programs against the C lib (recommended):

CFLAGS += `geos-config --cflags`LDFLAGS += `geos-config --ldflags` -lgeos_c#include <geos_c.h>

Example usage:

capi/geostest.c contains basic usage examples.

Using the C++ interface (discouraged)

NB: The C++ interface should not be used directly; the GEOS projectviews it as a bug for another program to use the C++ interface or evento directly link against the C++ library. The C++ library name willchange on every minor release because it is too hard to know if therehave been ABI changes. (The C library uses the C++ interface, but theC library follows normal ABI-change-sensitive versioning, so programsthat link only against the C library should work without relinkingwhen GEOS is upgraded.)

To compile programs against the C++ lib:

CFLAGS += `geos-config --cflags`LDFLAGS += `geos-config --ldflags` -lgeos#include <geos.h>

Basic usage examples can be found indoc/example.cpp.

Scripting language bindings

Ruby bindings are fully supported. To build, use the--enable-ruby optionwhen configuring:

./configure ... --enable-ruby

Since version 3.6.0 PHP bindings are not included in the corelibrary anymore but available as a separate project:

https://git.osgeo.org/gogs/geos/php-geos

Since version 3.0, the Python bindings are unsupported. Recommended options:

  1. Become or recruit a new maintainer.
  2. UseShapely with Pythonversions 2.4 or greater.
  3. Simply call functions fromlibgeos_c via Python ctypes.

Documentation

To build Doxygen documentation:

cd docmake doxygen-html

About

Geometry Engine, Open Source [MIRROR]

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++92.5%
  • Ruby2.4%
  • M41.6%
  • Makefile1.1%
  • Python0.8%
  • CMake0.8%
  • Other0.8%

[8]ページ先頭

©2009-2025 Movatter.jp