Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View gpinkham's full-sized avatar

Gary Pinkham gpinkham

View GitHub Profile
@gpinkham
gpinkham / gist:498ca12621ca7c56bfe84b1b907def9b
Created March 23, 2023 19:24
Retrieve Test Cases from RTM (Jira Plugin) and generate CSV for Importing into Qality Plus (Jira Plugin)
def description(desc:)
text = ''
begin
desc["content"]&.each do |c|
if c["content"].nil?
text << "#{c["text"]}\n"
else
text << description(desc: c)
end
end
@gpinkham
gpinkham / gist:6dc1a029b9cc25c23fb9fe2b79d2ffd8
Created November 7, 2016 16:53
Sample of some GIS analysis with PostGIS
This is using Land Use Data from MA Essex County and National PowerPlant data. Transform the Point Geometry of the
powerplant to Polygon Geometry so it matches the Land Use Geometry..
select e.gid, e.lu05_desc, area, len from landuse2005_poly_esse e left join powerplants_us_201603 p on ST_DWithin(e.geom, ST_TRANSFORM(p.geom,26986), 50) where p.statename = 'Massachusetts'and p.tech_desc like '%Solar Photovoltaic%' and e.lucode = 6;
gid | lu05_desc | area | len
-------+-----------+---------------+---------------
17425 | Open Land | 14549.1102768 | 490.826119918
46015 | Open Land | 11932.5353651 | 702.019288855
(2 rows)