Login   Register  
PHP Classes
elePHPant
Icontem

Polygon: Perform geometric operations on polygons

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Brenor Brophy
Name: Brenor Brophy <contact>
Classes: 2 packages by
Country: United States United States
Age: 47
All time rank: 41949 in United States United States
Week rank: 275 Up30 in United States United States Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This package can be used to perform different types of geometric operations with polygons.

It provides generic polygon and vertex classes that support mixing lines and arc segments between vertices. Polygons may be self-intersecting.

It provides means to perform boolean operations AND and OR (Intersect and Union) with the shapes and compute shape clipping (A-B and B-A).

  Classes of Brenor Brophy  >  Polygon  >  Download Download .zip .tar.gz  >  Support forum Support forum (12)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Polygon
Base name: polygon
Description: Perform geometric operations on polygons
Version: 1.6
PHP version: 3
License: GNU General Public License (GPL)
All time users: 3284 users
All time rank: 989
Week users: 3 users
Week rank: 595 Up
 
  Groups   Screenshots Screenshots   Rate classes User ratings  
  Trackback   Applications   Related pages   Files Files  

  Groups  
Group folder image Algorithms Numerical and statistical algorithms View top rated classes
Group folder image Geography Locations, mapping and demographics View top rated classes
Group folder image Math Math related classes. View top rated classes

  Files folder image Screenshots  
poly_ex1.gif
File Role Description
Accessible without login Image file poly_ex1.gif Screen Example 1 - Shows clipping/boolean operations
Accessible without login Image file poly_ex2.gif Screen Example 2 - Sucessive boolean operations
Accessible without login Image file poly_ex3.gif Screen Example 3 - Boolean operations on polygons with arc segments
Accessible without login Image file poly_ex4.gif Screen Example 4 - Shows results of Move, Rotate and bRect methods
Accessible without login Image file poly_ex5.gif Screen Example 5 - Shows operation of isPolyInside() method
Accessible without login Image file poly_ex6.gif Screen Example 6 - Shows how the isPolyOutside(), isPolyIntersect() & isPolyInside() methods work.
Accessible without login Image file poly_ex7.gif Screen Example 7 - Shows how the isPolySelfIntersect() method works.
Accessible without login Image file poly_ex8.gif Screen Example 8 - Shows how scale and translate methods work


  Innovation Award  
PHP Programming Innovation award nominee
August 2005
Number 5


Prize: One book of choice by SAMS
Certain types of image manipulation applications need to execute operations on images that involve shapes, for instance to define clipping areas. Such areas are defined by individual polygons or combinations of multiple polygons.

This class provides means to perform operations on shapes defined by polygons delimited by lines or arcs. It is useful for image manipulation applications like, for instance, those that involve maps.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (94%) Good (94%) Good (88%) Good (91%) - - Sufficient (74%) 74
Month: Not yet rated by the users

  Pages that reference this package  
PHP Edit What is best PHP library for working with geometry primitives?
If you mean polygon manipulation, here is a PHP class that can do that:...
Biblioteca de funciones para calculos sobre poligonos, en GPL
-
How do I programmatically combine multiple non-self-intersecting contiguous polygons defined in KML?
You may want to take a look at this PHP polygon operations class:...
PHP library for operations on polygons, in GPL
We’ve been looking for something like this for a week now, and someone just sent me a link (after I asked for something like this on the php-general mailing-list)...

Latest pages that reference packages Latest pages that reference packages


  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
polyExample
Run the demo script
Runway Finder
Polygon is used to calculate boundaries of Temporary Flight Restrictions

  Files folder image Files  
File Role Description
Accessible without login Plain text file polyExample.php Example Example - See screen shots for output
Accessible without login Plain text file polygon.php Class Polygon class
Accessible without login HTML file readme.htm Doc. Documentation
Accessible without login Plain text file vertex.php Class vertex and segment objects used by polygon

Install with Composer Install with Composer - Download Download all files: polygon.tar.gz polygon.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.