Sha256: f84f70a247752b98621ec43c569d0b45a5df34fb7ad013cc8f74e0b03ec03ee5
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 Bytes
Contents
#!/usr/bin/env ruby require 'fileutils' Dir.glob('/var/geomdtk/current/stage/**/temp/*.shp.xml') do |shpxml_fn| puts "Processing #{shpxml_fn}..." k = File.basename(shpxml_fn, '.shp.xml') d = File.dirname(shpxml_fn) puts "Locating #{k} data..." Dir.glob('/var/geomdtk/current/upload/data/original/**/' + k + '.*') do |fn| if %w{shp shx dbf prj sbn sbx}.include? File.extname(fn).gsub(/^\./, '') # only copy core Shapefile files FileUtils.ln fn, d, :verbose => true unless File.exist?(File.join(d, File.basename(fn))) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
geohydra-0.3.3 | scripts/load_stage_data.rb |
geohydra-0.3.1 | scripts/load_stage_data.rb |
geohydra-0.3 | scripts/load_stage_data.rb |