Login   Register  
PHP Classes
elePHPant
Icontem

Polygon

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

  Author  
Picture of Brenor Brophy
Name: Brenor Brophy <e-mail contact>
Packages: 2 Browse all classes by Brenor Brophy Browse all classes by
Country: United States United States - PHP jobs in United States
Age: 45
All time rank: 44751 in United States United States
Week rank: 205 Up19 in United States United States Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
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 .zip .tar.gz  >  Support forum Support forum (11)  >  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: 2982 users
All time rank: 1077
Week users: 8 users
Week rank: 288 Up
 
  Groups   Screenshots Screenshots   Freshmeat project   Rate classes User ratings  
  Trackback   Applications   Related links   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  
Example 1 - Shows clipping/boolean operations
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

  Freshmeat project  
Polygon
Project record: poly
Popularity score: 23.24
Vitality score: 3.2

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (94.4%)
Good (94.4%)
Good (88.9%)
Good (91.7%)
-
-
Sufficient (74.7%)
67
Month:
Not yet rated by the users

  Trackback links  
Link Description
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)...

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

  Related links  
Link Description
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

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.