Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.335.264 Times

geo-utils 0.1

Company: Ilya Sterin
Date Added: November 08, 2013  |  Visits: 337

geo-utils

Report Broken Link
Printer Friendly Version


Product Homepage
Download (39 downloads)



geo-utils contains two helpful utility functions:<br /><br /> 1. Point-in-polygon test<br /> 2. Random point generator. Right now it performs better if the polygon covers a large portion of its bounding box. The test is performed using this algorithm.<br /><br /> 1. Generate a bounding box<br /> 2. Generate a random point within this bounding box<br /> 3. Perform a point-in-polygon test on this point. If the test succeeds, return the point, if not loop to step a and perform again.<br /><br /> ** If anyone know of a better way to do above, let me know. I'd love to hear some better ideas especially when dealing with complex concave polygons.<br /><br />USAGE:<br /><br />Point-in-polygon test:<br /><br />polygon = Polygon((0,0), (0,4), (4,4), (4,0), (0,0))<br />point = geo.Point(2,2)<br />assert polygon.contains(geo.Point(2,2))<br /><br />Random point within a polygon<br /><br />polygon = Polygon( geo.LatLon(42.39321,-82.92114),<br /> geo.LatLon(42.39194,-82.91669),<br /> geo.LatLon(42.39147,-82.91796),<br /> geo.LatLon(42.39090,-82.91974),<br /> geo.LatLon(42.39321,-82.92114))<br /><br />point = polygon.random_point()<br />assert polygon.contains(point)<br /><br />INSTALLATION:<br /><br />You can install the package either by cloning this repository and running the standard<br /><br />python setup.py install<br /><br />or install from pypi<br /><br />pip install geo-utils<br /><br /><br />#md5=3d1bad2d5e115a0fe4d207e7e9b68fcb

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Bounding Complex Concave Generate Geo Geo Utils Geolatlon Geopoint Assert Geoutils Install Point Polygon Polygoncontainsgeopoint Random Polygonpolygon Polygonsusagepointinpolygon Testpolygon Utils
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


GEO-UTILS RELATED
Modules  -  Juick 6.x-1.0
This module provides links to post pages to IM-blogging Juick (http://juick.com). Clicking the links will open a new window or tab with Juick in it. The juick it will be in focus and will contain a customizable string which can programmatically...
10 KB  
Networking Tools  -  TCP Knocking 0.1
TCP Knocking provides a port knocking implementation. Often a secure system needs a port open so that only authorized persons can access a particular service and also the service should not exposed to attackers and worms that may use...
5.12 KB  
Database Tools  -  DB Populator 1.0
This class can be used to populate a MySQL database with random data. It can scan the list of tables and fields of a MySQL database and generate SQL INSERT statements that will fill the tables with records with random data.The class tries to...
10 KB  
Programming  -  myppy 0.1.0
Myppy is a set of tools for building and managing a portable python environment. The end result is something similar in spirit to portable python but can be built for a variety of different platforms. Currently targeted build...
30.72 KB  
Libraries  -  Geo::KML::PolyMap 1.32
Geo::KML::PolyMap is a Perl module to generate KML/KMZ-format choropleth (shaded polygonal) maps viewable in Google Earth. SYNOPSIS use Geo::KML::PolyMap qw(generate_kml_file generate_kmz_file); # Clusters "Total Population" data for "Foobar...
11.26 KB  
Libraries  -  GEO 0.1.7
GEO project is a C++ geometric template class library. Use this library for your graphical, image processing, or scientific applications. GEO has rich set of operations with vectors and matrices, 2D and 3D objects (such as finding convex hull,...
29.7 KB  
Libraries  -  Geo::ShapeFile 2.51
Geo::ShapeFile is a Perl extension for handling ESRI GIS Shapefiles. SYNOPSIS use Geo::ShapeFile; my $shapefile = new Geo::ShapeFile("roads"); for(1 .. $shapefile->shapes()) { my $shape = $shapefile->get_shp_record($_); # see...
276.48 KB  
Libraries  -  Geo::Gpx 0.15
Geo::Gpx is a Perl module to create and parse GPX files. SYNOPSIS # Version 0.10 compatibility use Geo::Gpx; my $gpx = Geo::Gpx->new( @waypoints ); my $xml = $gpx->xml; # New API, generate GPX my $gpx = Geo::Gpx->new();...
12.29 KB  
Libraries  -  Geo::Lookup::ByTime 0.0.2
Geo::Lookup::ByTime is a Perl module to lookup location by time. SYNOPSIS use Geo::Lookup::ByTime; $lookup = Geo::Lookup::ByTime->new( @points ); my $pt = $lookup->nearest( $tm ); Given a set of timestamped locations guess the location at...
15.36 KB  
Libraries  -  Geo::Raster 0.42
Geo::Raster is a Perl extension for raster algebra. SYNOPSIS use Geo::Raster; or use Geo::Raster qw(:types); or use Geo::Raster qw(:types :logics :db); Geo::Raster is an object-oriented interface to libral, a C library for rasters and...
89.09 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, UTILITIES
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Utilities  -  Nessconnect 1.0.2
Nessconnect is a GUI, CLI and API client for Nessus and Nessus compatible servers. With an improved user interface, it provides local session management, scan templates, report generation through XSLT, charts and graphs, and vulnerability trending.
819.2 KB  
Utilities  -  Dynamic Power Management 2.6.16
The Dynamic Power Management (DPM) project explores technologies to improve power conservation capabilities of platforms based on open source software. Of particular interest are techniques applicable to running systems, adjusting power parameters...
30.72 KB  
Utilities  -  Ethernet bridge tables 2.4.37.9
Ethernet bridge tables - Linux Ethernet filter for the Linux bridge. The 2.4-ebtables-brnf package contains the ebtables+bridge-nf patch. Be sure to check out the ebtables hp. This site also contains the arptables userspace tool.
40.96 KB  
Utilities  -  SaraB 1.0.0
SaraB works with DAR (Disk ARchive) to schedule and rotate backups on random-access media (i.e. hard drives, CDs, DVDs, Zip, etc. Basically anything except magnetic tapes.) This reduces hassle for the administrator by providing an automatic backup...
20.48 KB  
Utilities  -  Command Not Found 0.2.41
Command Not Found is a program that uses a cache of existing programs and their associated packages to aid users in their day-to-day command-line work. Usage: command-not-found [options] Options: ...
30.72 KB