]> gitweb.michael.orlitzky.com - dead/census-tools.git/log
dead/census-tools.git
15 years agoChanged the default SRID constant to an integer (as opposed to a string).
Michael Orlitzky [Mon, 28 Sep 2009 02:21:22 +0000 (22:21 -0400)]
Changed the default SRID constant to an integer (as opposed to a string).

15 years agoFactored out the contained population code in to the Census.Database class.
Michael Orlitzky [Sun, 27 Sep 2009 21:17:25 +0000 (17:17 -0400)]
Factored out the contained population code in to the Census.Database class.
Modified wkt2pop to use the new Census.Database method.

15 years agoAdded the Census module.
Michael Orlitzky [Sun, 27 Sep 2009 20:56:04 +0000 (16:56 -0400)]
Added the Census module.
Factored out the find_average_population_density database code into the Census.Database class.

15 years agoConverted the SRID argument to type="int".
Michael Orlitzky [Sun, 27 Sep 2009 20:26:43 +0000 (16:26 -0400)]
Converted the SRID argument to type="int".

15 years agoAdded the wkt2pop script.
Michael Orlitzky [Thu, 24 Sep 2009 04:56:46 +0000 (00:56 -0400)]
Added the wkt2pop script.

15 years agoUpdated the docstring for wkt2kml.
Michael Orlitzky [Thu, 24 Sep 2009 04:52:17 +0000 (00:52 -0400)]
Updated the docstring for wkt2kml.

15 years agoMerged the documentation additions and most recent makefile modification (branch...
Michael Orlitzky [Tue, 22 Sep 2009 07:10:34 +0000 (03:10 -0400)]
Merged the documentation additions and most recent makefile modification (branch master).

15 years agoAdded a script which converts an OGC Well-Known Text string to a KML document.
Michael Orlitzky [Tue, 22 Sep 2009 06:50:28 +0000 (02:50 -0400)]
Added a script which converts an OGC Well-Known Text string to a KML document.

15 years agostrip() whitespace from OptionParser descriptions.
Michael Orlitzky [Tue, 22 Sep 2009 06:49:48 +0000 (02:49 -0400)]
strip() whitespace from OptionParser descriptions.

15 years agoAdded a default SRID (4269).
Michael Orlitzky [Tue, 22 Sep 2009 06:45:36 +0000 (02:45 -0400)]
Added a default SRID (4269).

15 years agoUpdated the makefile for PostGIS 1.4.0.
Michael Orlitzky [Tue, 22 Sep 2009 06:44:01 +0000 (02:44 -0400)]
Updated the makefile for PostGIS 1.4.0.
One of the SQL scripts was renamed, and the locations of the PostGIS files are now calculated using pg_config.

15 years agoAdded the pg2kml script which exports PostGIS data to KML format.
Michael Orlitzky [Wed, 16 Sep 2009 03:42:31 +0000 (23:42 -0400)]
Added the pg2kml script which exports PostGIS data to KML format.

15 years agoModified find_avg_population_density to perform a GIS database query.
Michael Orlitzky [Wed, 16 Sep 2009 03:16:43 +0000 (23:16 -0400)]
Modified find_avg_population_density to perform a GIS database query.
Added optparse argument parsing so that database information does not need to be hard-coded in to the script.
Switched the order of (longitude, latitude) in the arguments.

15 years agoAdded the is_negative_float() method to the StringUtils module.
Michael Orlitzky [Wed, 16 Sep 2009 03:05:48 +0000 (23:05 -0400)]
Added the is_negative_float() method to the StringUtils module.

15 years agoAdded the Configuration package with the Defaults module containing some default...
Michael Orlitzky [Wed, 16 Sep 2009 03:04:25 +0000 (23:04 -0400)]
Added the Configuration package with the Defaults module containing some default configuration parameters.

15 years agoUppercased the exit codes per the Python style guidelines.
Michael Orlitzky [Wed, 16 Sep 2009 03:02:54 +0000 (23:02 -0400)]
Uppercased the exit codes per the Python style guidelines.
Added a new exit code, NO_RESULTS.

15 years agoAdded the KML module with enough classes to export our block data as KML.
Michael Orlitzky [Mon, 14 Sep 2009 01:03:20 +0000 (21:03 -0400)]
Added the KML module with enough classes to export our block data as KML.

15 years agoFixed the Block class initialization so that it converts intptlat/intptlon to real...
Michael Orlitzky [Sat, 12 Sep 2009 22:37:45 +0000 (18:37 -0400)]
Fixed the Block class initialization so that it converts intptlat/intptlon to real coordinates.

15 years agoUpdated the comment about the two PostGIS SQL scripts. I actually know what they...
Michael Orlitzky [Sat, 12 Sep 2009 22:33:09 +0000 (18:33 -0400)]
Updated the comment about the two PostGIS SQL scripts. I actually know what they do now.

15 years agoUse a default SRID of 4269 (North America, 1983) when importing the Tiger shapefiles.
Michael Orlitzky [Sat, 12 Sep 2009 22:31:56 +0000 (18:31 -0400)]
Use a default SRID of 4269 (North America, 1983) when importing the Tiger shapefiles.

15 years agoAdded the framework for the PostGIS database integration.
Michael Orlitzky [Sat, 12 Sep 2009 17:41:20 +0000 (13:41 -0400)]
Added the framework for the PostGIS database integration.
Created makefile targets for the Tiger data and census database.
Added comments to the makefile describing the targets.
Created a SQL script to create the sf1_blocks table, and to add indexes on both blkidfp00 columns.
Created a new script, sf1blocks2sql (used by the makefile), which exports the Summary File 1 blocks as SQL "INSERT" statements.

15 years agoAdded tests for the StringUtils module.
Michael Orlitzky [Sat, 12 Sep 2009 16:30:34 +0000 (12:30 -0400)]
Added tests for the StringUtils module.

15 years agoAdded the Tiger data directory to .gitignore.
Michael Orlitzky [Sat, 12 Sep 2009 16:00:28 +0000 (12:00 -0400)]
Added the Tiger data directory to .gitignore.

15 years agoAdded an additional Block class test which checks that all Maryland Geo Blocks have...
Michael Orlitzky [Sat, 12 Sep 2009 15:05:46 +0000 (11:05 -0400)]
Added an additional Block class test which checks that all Maryland Geo Blocks have a population_density() which can be converted to a float.

15 years agoAdded the is_float() method to the StringUtils module.
Michael Orlitzky [Sat, 12 Sep 2009 15:00:27 +0000 (11:00 -0400)]
Added the is_float() method to the StringUtils module.

15 years agoAdded state, county, and tract fields to the Block class.
Michael Orlitzky [Sat, 12 Sep 2009 14:55:14 +0000 (10:55 -0400)]
Added state, county, and tract fields to the Block class.
Renamed the other Block attributes to follow the GeoRecord/Tiger naming convention.
Updated any tests/methods that depended on the Block attribute names.
Throw an error from within the Block class if the "block" attribute is non-integral.

15 years agoAdded the StringUtils module with the is_integer() function.
Michael Orlitzky [Sat, 12 Sep 2009 14:48:25 +0000 (10:48 -0400)]
Added the StringUtils module with the is_integer() function.
Imported StringUtils into SummaryFile1.
Removed the InvalidAreaError, since we need to accept areas of zero.

15 years agoUppercased GeoRecord.MINIMUM_LINE_LENGTH in accordance with PEP 8: http://python...
Michael Orlitzky [Fri, 11 Sep 2009 05:20:47 +0000 (01:20 -0400)]
Uppercased GeoRecord.MINIMUM_LINE_LENGTH in accordance with PEP 8: http://python.org/dev/peps/pep-0008/.

15 years agoAdded the 2008 Tiger/Line shapefile technical documentation.
Michael Orlitzky [Thu, 10 Sep 2009 04:59:19 +0000 (00:59 -0400)]
Added the 2008 Tiger/Line shapefile technical documentation.

15 years agoAdded an InvalidAreaError class.
Michael Orlitzky [Thu, 10 Sep 2009 04:57:39 +0000 (00:57 -0400)]
Added an InvalidAreaError class.
Caused the Block class to raise an InvalidAreaError when its total area is zero.

15 years agoInitial commit.
Michael Orlitzky [Wed, 9 Sep 2009 03:25:03 +0000 (23:25 -0400)]
Initial commit.