parser.add_option('-s',
'--srid',
+ type="int",
help="SRID of the input geometry. Defaults to %s." % Configuration.Defaults.SRID,
default=Configuration.Defaults.SRID)
# 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