Download Geo ShapeFile Shape - Geo ShapeFile Shape Description, Geo ShapeFile Shape Reviews
Contact
 


 

Download

 
Download Now
Perl Artistic License
Downloads till now: 8
 
 

Quick search

 



 

Rate this software

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

No. Votes

0

 

Linux

Assembler Tools , Bug Tracking , Code Generators , Compilers , Debuggers , Disassemblers , Internationalization , Interpreters , Libraries , Localization, Perl Modules , Preprocessors , Quality Assurance and Testing , UI (User Interfaces) , Version Control , Widgets ,

Windows

Mac

Mobile

Drivers

Scripts - DHTML

Scripts - DHTML (new)

Web Developer Blog

Web Developer Blog (new)

Scripts and Applications

Ajax
ASP
ASP.NET
C and C++
CFML
CGI and Perl
Flash
Java
JavaScript
PHP
Python
XML

Geo ShapeFile Shape

 

Details

Last Update: 2008-01-15 17:01:17
Version: Geo::ShapeFile::
License/Program Type: Perl Artistic License
Publisher: Jason Kohles
Price:$0.00
Description:

Geo::ShapeFile::Shape is a Geo::ShapeFile utility class.
SYNOPSIS
use Geo::ShapeFile::Shape;
my $shape = new Geo::ShapeFile::Shape;
$shape->parse_shp($shape_data);
ABSTRACT
This is a utility class for Geo::ShapeFile that represents shapes.
This is the Geo::ShapeFile utility class that actually contains shape data for an individual shape from the shp file.
METHODS
new()
Creates a new Geo::ShapeFile::Shape object, takes no arguments and returns the created object. Normally Geo::ShapeFile does this for you when you call it's get_shp_record() method, so you shouldn't need to create a new object. (Eventually this module will have support for _creating_ shapefiles rather than just reading them, then this method will become important.
num_parts()
Returns the number of parts that make up this shape.
num_points()
Returns the number of points that make up this shape.
points()
Returns an array of Geo::ShapeFile::Point objects that contains all the points in this shape. Note that because a shape can contain multiple segments, which may not be directly connected, you probably don't want to use this to retrieve points which you are going to plot. If you are going to draw the shape, you probably want to use get_part() to retrieve the individual parts instead.
get_part($part_index);
Returns the specified part of the shape. This is the information you want if you intend to draw the shape. You can iterate through all the parts that make up a shape like this:
for(1 .. $obj->num_parts) {
my $part = $obj->get_part($_);
... do something here, draw a map maybe
}
shape_type()
Returns the numeric type of this shape, use Geo::ShapeFile::type() to determine the human-readable name from this type.
shape_id()
Returns the id number for this shape, as contained in the shp file.
x_min() x_max() y_min() y_max()
z_min() z_max() m_min() m_max()
Returns the minimum/maximum ranges of the X, Y, Z, or M values for this shape, as contained in it's header information.
has_point($point)
Returns true if the point provided is one of the points in the shape. Note that this does a simple comparison with the points that make up the shape, it will not find a point that falls along a vertex between two points in the shape. See the Geo::ShapeFile::Point documentation for a note about how to exclude Z and/or M data from being considered when matching points.
contains_point($point);
Returns true if the specified point falls in the interior of this shape and false if the point is outside the shape. Return value is unspecified if the point is one of the vertices or lies on some segment of the bounding polygon.
Note that the return value is actually a winding-number computed ignoring Z and M fields and so will be negative if the point is contained within a shape winding the wrong way.
get_segments($part)
Returns an array consisting of array hashes, which contain the points for each segment of a multi-segment part.
vertex_centroid( $part );
Returns a Geo::ShapeFile::Point that represents the calculated centroid of the shapes vertices. If given a part index, calculates just for that part, otherwise calculates it for the entire shape. See "centroid" for more on vertex_centroid vs area_centroid.
area_centroid( $part );
Returns a Geo::ShapeFile::Point that represents the calculated area centroid of the shape. If given a part index, calculates just for that part, otherwise calculates it for the entire shape. See "centroid" for more on vertex_centroid vs area_centroid.
centroid($part)
For backwards-compatibility reasons, centroid() is currently an alias to vertex_centroid(), although it would probably make more sense for it to point to area_centroid(). To avoid confusion (and possible future deprecation), you should avoid this and use either vertex_centroid or area_centroid.
dump()
Returns a text dump of the object, showing the shape type, id number, number of parts, number of total points, the bounds for the X, Y, Z, and M ranges, and the coordinates of the points in each part of the shape.
Requirements:
· Perl



Leave a comment




(optional)

What is 7-3?




0 comments


Add to

 Del.icio.us   Digg It   Furl   YahooMyWeb   Blinklist
 

Geo ShapeFile Shape Version History

Product Date Added
Geo ShapeFile Shape Geo::ShapeFile:: 2008-01-15 17:01:17


Related Software

AI::NeuralNet::BackProp 0.77
From category: Libraries
AI::NeuralNet::BackProp 0.77 is libraries software developed by Josiah Bryan. AI::NeuralNet::BackProp is a simple back-prop neural net that uses Delta\'s and Hebbs\' rule. SYNOPSIS us...
Config Crontab
From category: Perl-Modules
Config::Crontab is a Perl module used to read/write Vixie compatible crontab files....
VBTK Http
From category: Perl-Modules
VBTK::Http is a web server monitoring tool....
Untaint
From category: Perl-Modules
Untaint is a Perl module for laundering tainted data....
Convert::EBCDIC
From category: Libraries
Convert::EBCDIC 0.06 is libraries software developed by Chris Leach. Convert::EBCDIC, ascii2ebcdic, ebcdic2ascii is a Perl module for string conversion between EBCDIC and ASCII. SYNOPSIS...
CVS Manager
From category: Version-Control
CVS Manager 1.0.0 is version control software developed by AdventNet, Inc.. CodeMiner CVS Manager is a web-based CVS (Concurrent Versioning System) repository monitoring/management and reporting so...
PerlSpeak
From category: Perl-Modules
PerlSpeak is a Perl module for text to speech with festival, espeak, cepstral and others....
Cal3D
From category: Libraries
Cal3D 0.11.0 is libraries software developed by Cal3D Team. Cal3d project is a skeletal based 3d character animation library written in C++ in a platform-/graphic API-independent way. Origin...
Tinymail
From category: Libraries
Tinymail is a library for developing mobile applications with E-mail functionality....
CLIP
From category: Preprocessors
CLIP 1.2.0 is preprocessors software developed by ITK. CLIP is a Clipper/XBase compatible compiler with initial support other xBase dialects. CLIP project features support for international languag...
File::RdistByRsync
From category: Libraries
File::RdistByRsync 0.3 is libraries software developed by David Muir Sharnoff. File::RdistByRsync is a Perl module that can read rdist distfiles, emulate using rsync. SYNOPSIS...
Java 2 Standard Edition Runtime Environment 6
From category: Libraries
Java 2 SE Runtime Environment 6 offers a \'feature complete\' version of Sun\'s next major release of the Java SE platform....
DBIx::HTMLinterface
From category: Libraries
DBIx::HTMLinterface 0.11 is libraries software developed by Ron Crisco. DBIx::HTMLinterface is a class for creating a CGI interface to a database. SYNOPSIS use CGI; use DBI;...
Cairo
From category: Libraries
Cairo is a vector graphics library with cross-device output support....
elemenope
From category: Libraries
elemenope 5.1 is libraries software developed by createTank, LLC.. elemenope is an Enterprise Application Integration, Service Oriented Architecture, and general messaging framework. elemenope prov...
 

Top Downloads

 
1. Audio Catalog
2. Realtek Sound Card AC97 A
3. Microsoft ActiveSync
4. Mercury VD56UC2
5. WinXMedia DVD Ripper
6. Choose a Girl
7. Lebanon Estite Records
8. Secure Notes v
9. Fuzzy System Component
10. ActiveBall
11. Shop-Script FREE
12. BlockIt
13. Sprintbit Playlist Manager
14. Soltek SL-N400 Bios
15. Animated Screen
16. Ingo's Chess Office for You
17. Cross Fire
18. SHUTTLE AN50R Bios
19. Bough for Pocket PC (ARM)
20. Asee DVD Video to XviD Converter

DownloadTube Editor Reviews

 
1. NetShareWatcher
NetShareWatcher is a smart network security improvement soft...
2. Recovery for Oracle
Recovery for Oracle is a comprehensive tool designed to help...
3. Fix My Registry
The Windows Registry is a crucial part of your PC\'s operati...
4. VeryDOC DWG to Image Converter
VeryDOC DWG to Image Converter is a powerful utility that al...
5. Free AVI to M4A Converter
Doremisoft Free AVI to M4A Converter is an easy-to-use media...
6. Replay Media Splitter
Replay Media Splitter is a really simple and easy to use aud...
7. Instant Invoice n Cashbook 2007
Instant Invoice n Cashbook 2007 is a smart and powerful invo...
8. Data Doctor Recovery Digital Camera
Data Doctor Recovery Digital Camera is a Point and Shoot cam...
9. Free AVI to MPG Converter
Doremisoft Free AVI to MPG Converter is an easiy-to-use medi...
10. 1st Disk Drive Protector
Protect your PC from the abusive use of removable media with...

Software Reviews Full List



Recent Blog Posts

 
1. Easy Publishing of WordPress Blogs RSS Feeds With FeedBurner
RSS (Really Simple Syndication) Feeds are a modern form of c...
2. Automatic Installation of Joomla! on Windows With JoomlaPC
A convenient alternative for the development or testing of J...
3. An Introduction To Joomla! Templates Creation With Adobe Dreamweaver CS3
Joomla! is a content management system and framework with a ...
4. Two New Firefox Stable Releases Are Available For Free Download: Firefox 3.0.2 and Firefox 2.0.0.17
Recently, two Firefox stable releases for Windows, Mac OS, a...
5. How To Deploy A Linux LiveCD on Windows Using MobaLiveCD
There are many ways to test a certain Linux distribution on ...
6. Ever Needed A Free Video Converter And You Just Couldn’t Find It? Here’s Our Suggestion.
With so many different video (or even audio) converters arou...
7. Top 101 Most Downloaded Windows Software: Free Demo Movies and Download Links
We often have to decide if we should download the latest v...
8. A New Powerful Virus Could Affect Millions of WordPress Blogs
The WordPress blogging platform powers millions of web...
9. Google Chrome – It’s Finally Here. Will A Revolution Begin?
First, it was the rumors. Then, Google announced it official...
10. An Amazing Free Document Processing Software: LyX
The documents management task could be difficult in absence ...

Last 20 Scripts

 
1. Cookie Crumbs
Cookie Crumbs JavaScript creates a breadcrumb type trail of
2. Loupe.js
Loupe.js script allows you to add a loupe (magnifier) to ima
3. Reflex.js
Reflex.js script allows you to add a Cover Flow™ like effect
4. Edge.js
Edge.js Javascript adds individual masks to images on web pa
5. Curl.js
Curl.js is a simple to install and use JavaScript that adds
6. Busy.js
Busy.js script permits you to add/remove loading indicators
7. Mapper.js
Mapper.js automatically ads an area highlighting to image ma
8. Filmed.js
Filmed.js script allows you to add film strip and shadows to
9. Slided.js
Slided.js script adds slide frames and shadows to images on
10. Shiftzoom.js
Shiftzoom.js script permits you to add pan and zoom function
11. Instant.js
Instant.js script allows you to add an instant picture effec
12. Glossy.js
Glossy.js script allows you to add corners, shading and shad
13. Corner.js
Corner.js script helps you to create custom corners to image
14. Sphere.js
Sphere.js script allows you to add a spherical picture effec
15. Bevel.js
Bevel.js script allows you to add bevels (and also shading,
16. jQuery Lightbox Plugin
jQuery Lightbox Plugin provides a way to display an image on
17. jQuery Tag Suggestion Plugin
jQuery Tag Suggestion plugin helps you create a subset of ta
18. jClock
jClock is a jQuery clock plugin that allows you to display c
19. jqac
jqac is a jQuery plugin that extends jQuery namespace with a
20. YUI Based Lightbox
YUI Based Lightbox is a lightweight implementation of a ligh