X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=bin%2Fwkt2pop;h=24e4a1f1a79ca1ab6bc532c2be9fcc9172065a65;hb=5bb33fa7a3c9af7acee24d7e51cccbb668c93ab6;hp=af3559577faa9919aed275beaa9fbb305f3e14fe;hpb=8f026c4ceb6aed31c1b1ac0f306c1569eba000bd;p=dead%2Fcensus-tools.git diff --git a/bin/wkt2pop b/bin/wkt2pop index af35595..24e4a1f 100755 --- a/bin/wkt2pop +++ b/bin/wkt2pop @@ -51,6 +51,7 @@ parser.add_option('-U', parser.add_option('-s', '--srid', + type="int", help="SRID of the input geometry. Defaults to %s." % Configuration.Defaults.SRID, default=Configuration.Defaults.SRID) @@ -73,7 +74,7 @@ cursor = conn.cursor() # We're ready to build our query, one step at a time. Firsy, we store # the Text->Geom conversion in a variable; this just makes the query a # little easier to read. -geometric_object = "ST_GeomFromText('%s', %s)" % (args[0], options.srid) +geometric_object = "ST_GeomFromText('%s', %d)" % (args[0], options.srid) # We want to compute the population "under" the geometric object. We # can compute the percentage of a block that is covered by taking the