geo_combine 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.github/workflows/ruby.yml +53 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +20 -0
- data/.rubocop_todo.yml +165 -0
- data/Gemfile +3 -1
- data/README.md +80 -1
- data/Rakefile +4 -2
- data/bin/geocombine +1 -0
- data/geo_combine.gemspec +5 -0
- data/lib/geo_combine/bounding_box.rb +7 -1
- data/lib/geo_combine/ckan_metadata.rb +10 -8
- data/lib/geo_combine/cli.rb +3 -1
- data/lib/geo_combine/esri_open_data.rb +2 -0
- data/lib/geo_combine/exceptions.rb +3 -0
- data/lib/geo_combine/fgdc.rb +2 -2
- data/lib/geo_combine/formats.rb +2 -0
- data/lib/geo_combine/formatting.rb +3 -1
- data/lib/geo_combine/geo_blacklight_harvester.rb +211 -0
- data/lib/geo_combine/geoblacklight.rb +20 -6
- data/lib/geo_combine/geometry_types.rb +2 -0
- data/lib/geo_combine/iso19139.rb +2 -1
- data/lib/geo_combine/ogp.rb +13 -11
- data/lib/geo_combine/railtie.rb +2 -0
- data/lib/geo_combine/subjects.rb +2 -0
- data/lib/geo_combine/version.rb +3 -1
- data/lib/geo_combine.rb +7 -3
- data/lib/tasks/geo_combine.rake +57 -26
- data/lib/xslt/fgdc2html.xsl +38 -9
- data/lib/xslt/iso2html.xsl +1107 -1070
- data/spec/features/fgdc2html_spec.rb +53 -1
- data/spec/features/iso2html_spec.rb +17 -2
- data/spec/fixtures/docs/princeton_fgdc.xml +374 -0
- data/spec/fixtures/docs/repos.json +3224 -0
- data/spec/fixtures/docs/simple_xml.xml +10 -0
- data/spec/fixtures/docs/simple_xslt.xsl +11 -0
- data/spec/fixtures/docs/stanford_iso.xml +652 -0
- data/spec/fixtures/docs/tufts_fgdc.xml +977 -0
- data/spec/fixtures/indexing/basic_geoblacklight.json +27 -0
- data/spec/fixtures/indexing/geoblacklight.json +33 -0
- data/spec/fixtures/indexing/layers.json +16119 -0
- data/spec/fixtures/indexing/test.txt +1 -0
- data/spec/fixtures/json_docs.rb +2 -0
- data/spec/fixtures/xml_docs.rb +9 -1659
- data/spec/helpers.rb +7 -7
- data/spec/lib/geo_combine/bounding_box_spec.rb +18 -0
- data/spec/lib/geo_combine/ckan_metadata_spec.rb +34 -11
- data/spec/lib/geo_combine/esri_open_data_spec.rb +23 -2
- data/spec/lib/geo_combine/fgdc_spec.rb +41 -10
- data/spec/lib/geo_combine/formatting_spec.rb +13 -5
- data/spec/lib/geo_combine/geo_blacklight_harvester_spec.rb +194 -0
- data/spec/lib/geo_combine/geoblacklight_spec.rb +41 -11
- data/spec/lib/geo_combine/iso19139_spec.rb +26 -14
- data/spec/lib/geo_combine/ogp_spec.rb +28 -8
- data/spec/lib/geo_combine_spec.rb +7 -4
- data/spec/lib/tasks/geo_combine_spec.rb +45 -0
- data/spec/spec_helper.rb +19 -84
- data/spec/support/fixtures.rb +9 -0
- metadata +103 -6
- data/.coveralls.yml +0 -1
- data/.travis.yml +0 -7
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"geoblacklight_version":"1.0",
|
3
|
+
"dc_identifier_s":"http://purl.stanford.edu/bb338jh0716",
|
4
|
+
"dc_title_s":"Hydrologic Sub-Area Boundaries: Russian River Watershed, California, 1999",
|
5
|
+
"dc_description_s":"This polygon dataset represents the Hydrologic Sub-Area boundaries for the Russian River basin, as defined by the Calwater 2.2a watershed boundaries. The original CALWATER22 layer (Calwater 2.2a watershed boundaries) was developed as a coverage named calw22a and is administered by the Interagency California Watershed Mapping Committee (ICWMC). ",
|
6
|
+
"dc_rights_s":"Public",
|
7
|
+
"dct_provenance_s":"Stanford",
|
8
|
+
"layer_id_s":"druid:bb338jh0716",
|
9
|
+
"layer_slug_s":"Stanford-bb338jh0716",
|
10
|
+
"layer_geom_type_s":"",
|
11
|
+
"layer_modified_dt":"2014-10-08",
|
12
|
+
"dc_format_s":"application/x-esri-shapefile",
|
13
|
+
"dc_type_s":"Dataset",
|
14
|
+
"dc_subject_sm":[
|
15
|
+
"boundaries",
|
16
|
+
"inlandWaters"
|
17
|
+
],
|
18
|
+
"dc_spatial_sm":[
|
19
|
+
"Sonoma County (Calif.)",
|
20
|
+
"Mendocino County (Calif.)",
|
21
|
+
"Russian River Watershed (Calif.)"
|
22
|
+
],
|
23
|
+
"dct_issued_s":"2002-09-01",
|
24
|
+
"dct_temporal_sm":"1999",
|
25
|
+
"solr_geom":"ENVELOPE(-123.387866 38.298024, -122.522658 38.298024, -122.522658 39.399217, -123.387866 39.399217, -123.387866 38.298024)",
|
26
|
+
"solr_year_i":1999
|
27
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"geoblacklight_version":"1.0",
|
3
|
+
"dc_identifier_s":"http://purl.stanford.edu/cz128vq0535",
|
4
|
+
"dc_title_s":"2005 Rural Poverty GIS Database: Uganda",
|
5
|
+
"dc_description_s":"This polygon shapefile contains 2005 poverty data for 855 rural subcounties in Uganda. These data are intended for researchers, students, policy makers and the general public for reference and mapping purposes, and may be used for basic applications such as viewing, querying, and map output production.",
|
6
|
+
"dc_rights_s":"Public",
|
7
|
+
"dct_provenance_s":"Stanford",
|
8
|
+
"dct_references_s":"{\"http://schema.org/url\":\"http://purl.stanford.edu/cz128vq0535\",\"http://schema.org/downloadUrl\":\"http://stacks.stanford.edu/file/druid:cz128vq0535/data.zip\",\"http://www.loc.gov/mods/v3\":\"http://purl.stanford.edu/cz128vq0535.mods\",\"http://www.isotc211.org/schemas/2005/gmd/\":\"http://opengeometadata.stanford.edu/metadata/edu.stanford.purl/druid:cz128vq0535/iso19139.xml\",\"http://www.w3.org/1999/xhtml\":\"http://opengeometadata.stanford.edu/metadata/edu.stanford.purl/druid:cz128vq0535/default.html\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://geowebservices.stanford.edu/geoserver/wfs\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"https://geowebservices.stanford.edu/geoserver/wms\"}",
|
9
|
+
"layer_id_s":"druid:cz128vq0535",
|
10
|
+
"layer_slug_s":"stanford-cz128vq0535",
|
11
|
+
"layer_geom_type_s":"Polygon",
|
12
|
+
"layer_modified_dt":"2015-01-13T18:46:38Z",
|
13
|
+
"dc_format_s":"Shapefile",
|
14
|
+
"dc_language_s":"English",
|
15
|
+
"dc_type_s":"Dataset",
|
16
|
+
"dc_publisher_s":"Uganda Bureau of Statistics",
|
17
|
+
"dc_creator_sm":[
|
18
|
+
"Uganda Bureau of Statistics"
|
19
|
+
],
|
20
|
+
"dc_subject_sm":[
|
21
|
+
"Poverty",
|
22
|
+
"Statistics"
|
23
|
+
],
|
24
|
+
"dct_issued_s":"2005",
|
25
|
+
"dct_temporal_sm":[
|
26
|
+
"2005"
|
27
|
+
],
|
28
|
+
"dct_spatial_sm":[
|
29
|
+
"Uganda"
|
30
|
+
],
|
31
|
+
"solr_geom":"ENVELOPE(29.572742, 35.000308, 4.234077, -1.478794)",
|
32
|
+
"solr_year_i":2005
|
33
|
+
}
|