This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'postgres' | |
class String | |
def sql(&block) | |
result = PostGIS::sql(self).result[0] | |
return result unless block | |
result.each do |r| | |
yield r | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'postgres' | |
module PostGIS | |
class Connection | |
def initialize(pghost, pgport, pgoptions, pgtty, | |
dbname, login, passwd) | |
@conn = PGconn.connect(pghost, pgport, pgoptions, pgtty, | |
dbname, login, passwd) | |
end | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC0 1.0 Universal | |
Statement of Purpose | |
The laws of most jurisdictions throughout the world automatically confer | |
exclusive Copyright and Related Rights (defined below) upon the creator and | |
subsequent owner(s) (each and all, an "owner") of an original work of | |
authorship and/or a database (each, a "Work"). | |
Certain owners wish to permanently relinquish those rights to a Work for the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC0 1.0 Universal | |
Statement of Purpose | |
The laws of most jurisdictions throughout the world automatically confer | |
exclusive Copyright and Related Rights (defined below) upon the creator and | |
subsequent owner(s) (each and all, an "owner") of an original work of | |
authorship and/or a database (each, a "Work"). | |
Certain owners wish to permanently relinquish those rights to a Work for the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC0 1.0 Universal | |
Statement of Purpose | |
The laws of most jurisdictions throughout the world automatically confer | |
exclusive Copyright and Related Rights (defined below) upon the creator and | |
subsequent owner(s) (each and all, an "owner") of an original work of | |
authorship and/or a database (each, a "Work"). | |
Certain owners wish to permanently relinquish those rights to a Work for the |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC0 1.0 Universal | |
Statement of Purpose | |
The laws of most jurisdictions throughout the world automatically confer | |
exclusive Copyright and Related Rights (defined below) upon the creator and | |
subsequent owner(s) (each and all, an "owner") of an original work of | |
authorship and/or a database (each, a "Work"). | |
Certain owners wish to permanently relinquish those rights to a Work for the |
OlderNewer