geoblacklight_sidecar_images 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +4 -4
- data/.travis.yml +4 -4
- data/Gemfile +2 -2
- data/README.md +8 -7
- data/Rakefile +0 -3
- data/app/assets/stylesheets/geoblacklight_sidecar_images/_gblsci.scss +13 -0
- data/app/assets/stylesheets/geoblacklight_sidecar_images/application.scss +10 -0
- data/app/assets/stylesheets/geoblacklight_sidecar_images/modules/_results.scss +10 -0
- data/app/jobs/geoblacklight_sidecar_images/store_image_job.rb +18 -0
- data/app/models/{geoblacklight_sidecar_images/application_record.rb → application_record.rb} +0 -0
- data/{lib/generators/geoblacklight_sidecar_images/templates → app}/models/concerns/wms_rewrite_concern.rb +0 -0
- data/{lib/generators/geoblacklight_sidecar_images/templates → app}/models/sidecar_image_state_machine.rb +1 -1
- data/{lib/generators/geoblacklight_sidecar_images/templates → app}/models/sidecar_image_transition.rb +0 -0
- data/{lib/generators/geoblacklight_sidecar_images/templates → app}/models/solr_document_sidecar.rb +3 -3
- data/app/services/geoblacklight_sidecar_images/image_service.rb +226 -0
- data/app/services/geoblacklight_sidecar_images/image_service/dynamic_map_layer.rb +15 -0
- data/app/services/geoblacklight_sidecar_images/image_service/iiif.rb +17 -0
- data/app/services/geoblacklight_sidecar_images/image_service/image_map_layer.rb +17 -0
- data/app/services/geoblacklight_sidecar_images/image_service/tiled_map_layer.rb +15 -0
- data/app/services/geoblacklight_sidecar_images/image_service/wms.rb +28 -0
- data/geoblacklight_sidecar_images.gemspec +5 -5
- data/lib/generators/geoblacklight_sidecar_images/install_generator.rb +9 -9
- data/lib/generators/geoblacklight_sidecar_images/jobs_generator.rb +1 -6
- data/lib/generators/geoblacklight_sidecar_images/models_generator.rb +0 -28
- data/lib/generators/geoblacklight_sidecar_images/templates/gblsci.scss +3 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/views/catalog/_index_split_default.html.erb +28 -28
- data/lib/geoblacklight_sidecar_images/version.rb +1 -1
- data/lib/tasks/geoblacklight_sidecar_images_tasks.rake +10 -13
- data/solr/conf/schema.xml +11 -3
- data/solr/conf/solrconfig.xml +4 -4
- data/spec/fixtures/files/README.md +40 -0
- data/spec/fixtures/files/actual-papermap1.json +1 -1
- data/spec/fixtures/files/actual-point1.json +26 -13
- data/spec/fixtures/files/actual-polygon1.json +1 -1
- data/spec/fixtures/files/actual-raster1.json +6 -5
- data/spec/fixtures/files/bbox-spans-180.json +20 -0
- data/spec/fixtures/files/cornell_html_metadata.json +42 -0
- data/spec/fixtures/files/esri-dynamic-layer-all-layers.json +36 -34
- data/spec/fixtures/files/esri-dynamic-layer-single-layer.json +30 -27
- data/spec/fixtures/files/esri-feature-layer.json +37 -24
- data/spec/fixtures/files/esri-image-map-layer.json +39 -18
- data/spec/fixtures/files/iiif-eastern-hemisphere.json +30 -0
- data/spec/fixtures/files/index-map-polygon-no-downloadurl.json +37 -0
- data/spec/fixtures/files/index-map-polygon.json +37 -0
- data/spec/fixtures/files/index-map-stanford.json +37 -0
- data/spec/fixtures/files/index_map_point.json +27 -0
- data/spec/fixtures/files/princeton-child1.json +30 -0
- data/spec/fixtures/files/princeton-child2.json +30 -0
- data/spec/fixtures/files/princeton-child3.json +30 -0
- data/spec/fixtures/files/princeton-child4.json +30 -0
- data/spec/fixtures/files/princeton-parent.json +25 -0
- data/spec/fixtures/files/public_direct_download.json +13 -7
- data/spec/fixtures/files/public_polygon_mit.json +15 -27
- data/spec/fixtures/files/restricted-line.json +7 -6
- data/spec/fixtures/files/umn_iiif_jpg.json +1 -2
- data/spec/fixtures/files/umn_metro_result1.json +30 -26
- data/spec/fixtures/files/umn_state_result1.json +25 -18
- data/spec/fixtures/files/umn_state_result2.json +27 -25
- data/spec/fixtures/files/uva_slug_colon.json +25 -0
- data/spec/jobs/store_image_job_spec.rb +2 -2
- data/spec/models/solr_document_sidecar_spec.rb +1 -1
- data/spec/services/image_service_spec.rb +1 -1
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +2 -2
- data/template.rb +3 -3
- metadata +55 -30
- data/app/assets/config/geoblacklight_sidecar_images_manifest.js +0 -2
- data/app/assets/images/geoblacklight_sidecar_images/.keep +0 -0
- data/app/assets/javascripts/geoblacklight_sidecar_images/application.js +0 -13
- data/app/assets/stylesheets/geoblacklight_sidecar_images/application.css +0 -15
- data/lib/generators/geoblacklight_sidecar_images/services_generator.rb +0 -19
- data/lib/generators/geoblacklight_sidecar_images/templates/assets/javascripts/geoblacklight.js +0 -9
- data/lib/generators/geoblacklight_sidecar_images/templates/assets/stylesheets/geoblacklight.scss +0 -3
- data/lib/generators/geoblacklight_sidecar_images/templates/jobs/store_image_job.rb +0 -17
- data/lib/generators/geoblacklight_sidecar_images/templates/services/image_service.rb +0 -224
- data/lib/generators/geoblacklight_sidecar_images/templates/services/image_service/dynamic_map_layer.rb +0 -13
- data/lib/generators/geoblacklight_sidecar_images/templates/services/image_service/iiif.rb +0 -15
- data/lib/generators/geoblacklight_sidecar_images/templates/services/image_service/image_map_layer.rb +0 -15
- data/lib/generators/geoblacklight_sidecar_images/templates/services/image_service/tiled_map_layer.rb +0 -13
- data/lib/generators/geoblacklight_sidecar_images/templates/services/image_service/wms.rb +0 -26
@@ -2,7 +2,7 @@
|
|
2
2
|
"dc_description_s":"Cartographic Details: Scale approximately 1:1,341,000. 90 British Miles 69 1/2 to a Degree = 10.8 cm. Third edition. 56 x 83 cm",
|
3
3
|
"layer_modified_dt":"2017-12-11T12:01:50Z",
|
4
4
|
"solr_geom":"ENVELOPE(-93.2601, -93.2301, 44.98, 44.96)",
|
5
|
-
"dct_references_s":"{\"http://schema.org/url\":\"http://purl.umn.edu/204328\",\"http://schema.org/downloadUrl\":\"https://umedia.lib.umn.edu/sites/default/files/archive/84/image/tiff/1062058.tif\",\"http://iiif.io/api/image\":\"https://
|
5
|
+
"dct_references_s":"{\"http://schema.org/url\":\"http://purl.umn.edu/204328\",\"http://schema.org/downloadUrl\":\"https://umedia.lib.umn.edu/sites/default/files/archive/84/image/tiff/1062058.tif\",\"http://iiif.io/api/image\":\"https://cdm16022.contentdm.oclc.org/digital/iiif/p16022coll245/889/info.json\"}",
|
6
6
|
"dc_rights_s":"Public",
|
7
7
|
"uuid":"83f4648a-125c-4000-a12f-aba2b432e7cd",
|
8
8
|
"dct_provenance_s":"Minnesota",
|
@@ -12,7 +12,6 @@
|
|
12
12
|
"dct_issued_s":"1891",
|
13
13
|
"dc_format_s":"TIFF",
|
14
14
|
"dc_creator_sm":["Pezolt, F."],
|
15
|
-
"thumbnail_path_ss":"https://umedia.lib.umn.edu/sites/default/files/imagecache/square300/reference/84/image/jpeg/1062058.jpg",
|
16
15
|
"dc_type_s":"Image",
|
17
16
|
"dc_identifier_s":"minnesota-iiif-jpg-83f4648a-125c-4000-a12f-aba2b432e7cd",
|
18
17
|
"dc_relation_sm":["http://sws.geonames.org/5037649",
|
@@ -1,37 +1,41 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"solr_geom": "ENVELOPE(-94.012, -92.732, 45.415, 44.471)",
|
6
|
-
"dct_references_s": "{\"http://schema.org/downloadUrl\":\"ftp://ftp.gisdata.mn.gov/pub/gdrs/data/pub/us_mn_state_metc/plan_frmwrk2030dev_plan_ar2011/shp_plan_frmwrk2030dev_plan_ar2011.zip\",\"http://schema.org/url\":\"https://gisdata.mn.gov/dataset/us-mn-state-metc-plan-frmwrk2030dev-plan-ar2011\",\"http://www.isotc211.org/schemas/2005/gmd/\":\"https://opengeometadata.github.io/edu.umn/4a/d4/13/49035c4bd391a777b99afbf550/iso19139.xml\"}",
|
2
|
+
"dc_identifier_s": "02236876-9c21-42f6-9870-d2562da8e44f",
|
3
|
+
"dc_title_s": "2030 Regional Development Framework Planning Areas: Metro Twin Cities, Minnesota, 2011",
|
4
|
+
"dc_description_s": "The 2030 Regional Development Framework Planning Areas - 2011 updates the 2030 Regional Development Framework Planning Areas initially adopted on January 14, 2004 and ammended in 2006. This dataset reflect the agreed upon planning areas between a community and the Metropolitan Council and defined in the communities' 2030 Comprehensive Plan Update and is intended to supplement the 2030 Regional Development Framework - the planning guide for the 7-county Twin Cities metropolitan area of Minneapolis and Saint Paul, Minnesota. Planning area definitions and strategies for the planning areas are available in the 2030 Regional Development Framework document at http://www.metrocouncil.org/Planning/Planning/2030-Regional-Development-Framework.aspx (See Chapter 3). For questions about how decisions were made regarding individual communities' geographic planning areas, please contact the Metropolitan Council Regional Framework Development staff, Dan Marckel, 651-602-1548. See Currentness Reference and Lineage in Data Quality Section of this metadata for more information.",
|
7
5
|
"dc_rights_s": "Public",
|
8
|
-
"dct_provenance_s": "Minnesota",
|
9
|
-
"dc_subject_sm": [
|
10
|
-
"Planning and Cadastral",
|
11
|
-
"Urban planning and development"
|
12
|
-
],
|
13
6
|
"dc_format_s": "Shapefile",
|
14
|
-
"
|
15
|
-
|
16
|
-
"dct_temporal_sm": [
|
17
|
-
"2011"
|
7
|
+
"dc_language_sm": [
|
8
|
+
"English"
|
18
9
|
],
|
19
|
-
"
|
20
|
-
"
|
21
|
-
|
22
|
-
"dc_identifier_s": "4ad41349-035c-4bd3-91a7-77b99afbf550",
|
23
|
-
"solr_year_i": 2011,
|
24
|
-
"dct_spatial_sm": [
|
25
|
-
"Minnesota, United States",
|
26
|
-
"Minneapolis-St. Paul-Bloomington, United States"
|
10
|
+
"dc_type_sm": [
|
11
|
+
"Dataset",
|
12
|
+
"Service"
|
27
13
|
],
|
28
14
|
"dc_publisher_sm": [
|
29
15
|
"Metropolitan Council"
|
30
16
|
],
|
31
|
-
"
|
32
|
-
|
33
|
-
|
17
|
+
"dc_creator_sm": [
|
18
|
+
"Metropolitan Council"
|
19
|
+
],
|
20
|
+
"dc_subject_sm": [
|
21
|
+
"Planning and Cadastral"
|
22
|
+
],
|
23
|
+
"dct_provenance_s": "Minnesota",
|
24
|
+
"dct_references_s": "{\"http://schema.org/url\":\"https://gisdata.mn.gov/dataset/02236876-9c21-42f6-9870-d2562da8e44f\",\"http://schema.org/downloadUrl\":\"ftp://ftp.gisdata.mn.gov/pub/gdrs/data/pub/us_mn_state_metc/plan_frmwrk2030dev_plan_ar2011/shp_plan_frmwrk2030dev_plan_ar2011.zip\",\"urn:x-esri:serviceType:ArcGIS#DynamicMapLayer\":\"https://gis2.metc.state.mn.us/arcgis/rest/services/MetroGIS/Planning/MapServer/3\",\"http://www.opengis.net/cat/csw/csdgm\":\"https://btaagdp.org/metadata/05a-01/pub/gdrs/data/pub/us_mn_state_metc/plan_frmwrk2030dev_plan_ar2011/metadata/metadata.xml\"}",
|
34
25
|
"dct_isPartOf_sm": [
|
35
26
|
"Minnesota Geospatial Commons"
|
36
|
-
]
|
27
|
+
],
|
28
|
+
"dct_issued_s": "2015-10-01T10:01:54.499443",
|
29
|
+
"dct_temporal_sm": [
|
30
|
+
"2014"
|
31
|
+
],
|
32
|
+
"dct_spatial_sm": [
|
33
|
+
"Minnesota, United States"
|
34
|
+
],
|
35
|
+
"layer_slug_s": "02236876-9c21-42f6-9870-d2562da8e44f",
|
36
|
+
"layer_geom_type_s": "Polygon",
|
37
|
+
"layer_modified_dt": "2018-08-02T17:42:57Z",
|
38
|
+
"solr_geom": "ENVELOPE(-94.012, -92.732, 45.415, 44.471)",
|
39
|
+
"solr_year_i": 2014,
|
40
|
+
"geoblacklight_version": "1.0"
|
37
41
|
}
|
@@ -1,31 +1,38 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"dct_references_s": "{\"http://schema.org/downloadUrl\":\"ftp://gdrs.dnr.state.mn.us/gdrs/data/pub/us_mn_state_dnr/tif_base_usgs_scanned_topo_100k_drg.zip\",\"http://schema.org/url\":\"https://gisdata.mn.gov/dataset/base-usgs-scanned-topo-100k-drg\",\"http://www.isotc211.org/schemas/2005/gmd/\":\"https://opengeometadata.github.io/edu.umn/08/32/9e/9637794cea9fa85d9939b6276f/iso19139.xml\"}",
|
2
|
+
"dc_identifier_s": "2eddde2f-c222-41ca-bd07-2fd74a21f4de",
|
3
|
+
"dc_title_s": "1:100k Digital Raster Graphic - Collars Removed: Minnesota",
|
4
|
+
"dc_description_s": "A digital raster graphic (DRG) is a scanned image of an U.S. Geological Survey (USGS) standard series topographic map, including all map collar information. The image inside the map neatline is georeferenced to the surface of the earth and fit to the Universal Transverse Mercator projection. The horizontal positional accuracy and datum of the DRG matches the accuracy and datum of the source map. The map is scanned at a minimum resolution of 250 dots per inch. DRG's are created by scanning published paper maps on high-resolution scanners. The raster image is georeferenced and fit to the UTM projection. Colors are standardized to remove scanner limitations and artifacts. The average data set size is about 6 megabytes in Tagged Image File Format (TIFF) with PackBits compression. DRG's can be easily combined with other digital cartographic products such as digital elevation models (DEM) and digital orthophoto quadrangles (DOQ). DRG's are stored as rectified TIFF files in geoTIFF format. GeoTIFF is a relatively new TIFF image storage format that incorporates georeferencing information in the header. This allows software, such as ArcView, ARC/INFO, or EPPL7 to reference the image without an additional header or world file. Within the Minnesota Department of Natural Resources Core GIS data set the DRG's have been processed to be in compliance with departmental data standards (UTM Extended Zone 15, NAD83 datum) and the map collar information has been removed to facilitate the display of the DRG's in a seamless fashion. These DRG's were clipped and transformed to UTM Zone 15 using EPPL7 Raster GIS.",
|
6
5
|
"dc_rights_s": "Public",
|
7
|
-
"
|
8
|
-
"
|
9
|
-
|
6
|
+
"dc_format_s": "ArcGRID",
|
7
|
+
"dc_language_sm": "English",
|
8
|
+
"dc_type_sm": [
|
9
|
+
"Dataset"
|
10
|
+
],
|
11
|
+
"dc_publisher_sm": [
|
12
|
+
"Minnesota Department of Natural Resources (DNR)"
|
10
13
|
],
|
11
|
-
"dc_format_s": "GeoTIFF",
|
12
|
-
"dc_description_s": "A digital raster graphic (DRG) is a scanned image of an U.S. Geological Survey (USGS) standard series topographic map, including all map collar information. The image inside the map neatline is georeferenced to the surface of the earth and fit to the Universal Transverse Mercator projection. The horizontal positional accuracy and datum of the DRG matches the accuracy and datum of the source map. The map is scanned at a minimum resolution of 250 dots per inch. DRG's are created by scanning published paper maps on high-resolution scanners. The raster image is georeferenced and fit to the UTM projection. Colors are standardized to remove scanner limitations and artifacts. The average data set size is about 6 megabytes in Tagged Image File Format (TIFF) with PackBits compression. DRG's can be easily combined with other digital cartographic products such as digital elevation models (DEM) and digital orthophoto quadrangles (DOQ). DRG's are stored as rectified TIFF files in geoTIFF format. GeoTIFF is a relatively new TIFF image storage format that incorporates georeferencing information in the header. This allows software, such as ArcView, ARC/INFO, or EPPL7 to reference the image without an additional header or world file. Within the Minnesota Department of Natural Resources Core GIS data set the DRG's have been processed to be in compliance with departmental data standards (UTM Extended Zone 15, NAD83 datum) and the map collar information has been removed to facilitate the display of the DRG's in a seamless fashion. These DRG's were clipped and transformed to UTM Zone 15 using EPPL7 Raster GIS.",
|
13
|
-
"dct_issued_s": "2010-04-22T06:00:00.000ZZ",
|
14
14
|
"dc_creator_sm": [
|
15
15
|
"U.S. Geological Survey (USGS) and Minnesota Department of Natural Resources (DNR)"
|
16
16
|
],
|
17
|
-
"
|
17
|
+
"dc_subject_sm": [
|
18
|
+
"Imagery and Base Maps"
|
19
|
+
],
|
20
|
+
"dct_provenance_s": "Minnesota",
|
21
|
+
"dct_references_s": "{\"http://schema.org/url\":\"https://gisdata.mn.gov/dataset/2eddde2f-c222-41ca-bd07-2fd74a21f4de\",\"http://schema.org/downloadUrl\":\"ftp://gdrs.dnr.state.mn.us/gdrs/data/pub/us_mn_state_dnr/fgdb_base_usgs_scanned_topo_100k_drg.zip\",\"http://schema.org/image\":\"https://btaagdp.org/thumbnails/05a-01/pub/gdrs/data/pub/us_mn_state_dnr/base_usgs_scanned_topo_100k_drg/metadata/preview.jpg\",\"http://www.opengis.net/cat/csw/csdgm\":\"https://btaagdp.org/metadata/05a-01/pub/gdrs/data/pub/us_mn_state_dnr/base_usgs_scanned_topo_100k_drg/metadata/metadata.xml\"}",
|
18
22
|
"dct_isPartOf_sm": [
|
19
23
|
"Minnesota Geospatial Commons"
|
20
24
|
],
|
21
|
-
"
|
25
|
+
"dct_issued_s": "2015-11-18T11:02:15.705119",
|
26
|
+
"dct_temporal_sm": [
|
27
|
+
"2015"
|
28
|
+
],
|
22
29
|
"dct_spatial_sm": [
|
23
30
|
"Minnesota, United States"
|
24
31
|
],
|
25
|
-
"
|
26
|
-
|
27
|
-
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"
|
32
|
+
"layer_slug_s": "2eddde2f-c222-41ca-bd07-2fd74a21f4de",
|
33
|
+
"layer_geom_type_s": "Raster",
|
34
|
+
"layer_modified_dt": "2018-08-02T17:47:58Z",
|
35
|
+
"solr_geom": "ENVELOPE(-97.612501, -88.842351, 49.464145, 42.906949)",
|
36
|
+
"solr_year_i": 2015,
|
37
|
+
"geoblacklight_version": "1.0"
|
31
38
|
}
|
@@ -1,36 +1,38 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"dct_references_s": "{\"http://schema.org/downloadUrl\":\"ftp://ftp.gisdata.mn.gov/pub/gdrs/data/pub/us_mn_state_dnr/base_usgs_scanned_topo_250k_drg/fgdb_base_usgs_scanned_topo_250k_drg.zip\",\"http://schema.org/url\":\"https://gisdata.mn.gov/dataset/base-usgs-scanned-topo-250k-drg\",\"http://www.isotc211.org/schemas/2005/gmd/\":\"https://opengeometadata.github.io/edu.umn/18/63/6f/2f3d0a470e82bf26f9ceb4ea43/iso19139.xml\"}",
|
2
|
+
"dc_identifier_s": "e9c71086-6b25-4950-8e1c-84c2794e3382",
|
3
|
+
"dc_title_s": "1:250k Digital Raster Graphic - Collars Removed: Minnesota",
|
4
|
+
"dc_description_s": "A digital raster graphic (DRG) is a scanned image of an U.S. Geological Survey (USGS) standard series topographic map, including all map collar information. The image inside the map neatline is georeferenced to the surface of the earth and fit to the Universal Transverse Mercator projection. The horizontal positional accuracy and datum of the DRG matches the accuracy and datum of the source map. The map is scanned at a minimum resolution of 250 dots per inch. DRG's are created by scanning published paper maps on high-resolution scanners. The raster image is georeferenced and fit to the UTM projection. Colors are standardized to remove scanner limitations and artifacts. The average data set size is about 6 megabytes in Tagged Image File Format (TIFF) with PackBits compression. DRG's can be easily combined with other digital cartographic products such as digital elevation models (DEM) and digital orthophoto quadrangles (DOQ). DRG's are stored as rectified TIFF files in geoTIFF format. GeoTIFF is a relatively new TIFF image storage format that incorporates georeferencing information in the header. This allows software, such as ArcView, ARC/INFO, or EPPL7 to reference the image without an additional header or world file. Within the Minnesota Department of Natural Resources Core GIS data set the DRG's have been processed to be in compliance with departmental data standards (UTM Extended Zone 15, NAD83 datum) and the map collar information has been removed to facilitate the display of the DRG's in a seamless fashion. These DRG's were clipped and transformed to UTM Zone 15 using EPPL7 Raster GIS.",
|
6
5
|
"dc_rights_s": "Public",
|
7
|
-
"dct_provenance_s": "Minnesota",
|
8
|
-
"dc_subject_sm": [
|
9
|
-
"Imagery and Base Maps",
|
10
|
-
"Imagerybasemapsearthcover",
|
11
|
-
"Drg"
|
12
|
-
],
|
13
6
|
"dc_format_s": "GeoTIFF",
|
14
|
-
"
|
15
|
-
"
|
16
|
-
|
17
|
-
|
7
|
+
"dc_language_sm": "English",
|
8
|
+
"dc_type_sm": [
|
9
|
+
"Dataset"
|
10
|
+
],
|
11
|
+
"dc_publisher_sm": [
|
12
|
+
"Minnesota Department of Natural Resources (DNR)"
|
18
13
|
],
|
19
14
|
"dc_creator_sm": [
|
20
15
|
"U.S. Geological Survey and Minnesota DNR"
|
21
16
|
],
|
22
|
-
"
|
23
|
-
|
24
|
-
"dct_spatial_sm": [
|
25
|
-
"Minnesota, United States"
|
26
|
-
],
|
27
|
-
"dc_publisher_sm": [
|
28
|
-
"Minnesota Department of Natural Resources"
|
17
|
+
"dc_subject_sm": [
|
18
|
+
"Imagery and Base Maps"
|
29
19
|
],
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"layer_slug_s": "18636f2f-3d0a-470e-82bf-26f9ceb4ea43",
|
20
|
+
"dct_provenance_s": "Minnesota",
|
21
|
+
"dct_references_s": "{\"http://schema.org/url\":\"https://gisdata.mn.gov/dataset/e9c71086-6b25-4950-8e1c-84c2794e3382\",\"http://schema.org/downloadUrl\":\"ftp://ftp.gisdata.mn.gov/pub/gdrs/data/pub/us_mn_state_dnr/base_usgs_scanned_topo_250k_drg/fgdb_base_usgs_scanned_topo_250k_drg.zip\",\"http://schema.org/image\":\"https://btaagdp.org/thumbnails/05a-01/pub/gdrs/data/pub/us_mn_state_dnr/base_usgs_scanned_topo_250k_drg/metadata/preview.jpg\",\"http://www.opengis.net/cat/csw/csdgm\":\"https://btaagdp.org/metadata/05a-01/pub/gdrs/data/pub/us_mn_state_dnr/base_usgs_scanned_topo_250k_drg/metadata/metadata.xml\"}",
|
33
22
|
"dct_isPartOf_sm": [
|
34
23
|
"Minnesota Geospatial Commons"
|
35
|
-
]
|
24
|
+
],
|
25
|
+
"dct_issued_s": "2015-11-18T11:02:15.187331",
|
26
|
+
"dct_temporal_sm": [
|
27
|
+
"1998"
|
28
|
+
],
|
29
|
+
"dct_spatial_sm": [
|
30
|
+
"Minnesota, United States"
|
31
|
+
],
|
32
|
+
"layer_slug_s": "e9c71086-6b25-4950-8e1c-84c2794e3382",
|
33
|
+
"layer_geom_type_s": "Raster",
|
34
|
+
"layer_modified_dt": "2018-08-02T17:49:48Z",
|
35
|
+
"solr_geom": "ENVELOPE(-97.991522, -87.177541, 49.892443, 42.891013)",
|
36
|
+
"solr_year_i": 1998,
|
37
|
+
"geoblacklight_version": "1.0"
|
36
38
|
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"dc_description_s": "Police stations for Norfolk, Virginia.",
|
3
|
+
"dc_format_s": "Shapefile",
|
4
|
+
"dc_identifier_s": "315fc8ee-3b57-4ebb-aa24-4300f1c42dc9-13",
|
5
|
+
"dc_language_s": "eng",
|
6
|
+
"dc_rights_s": "Public",
|
7
|
+
"dc_subject_sm": [
|
8
|
+
"Location"
|
9
|
+
],
|
10
|
+
"dc_title_s": "Norfolk 2005 Police Stations",
|
11
|
+
"dct_issued_s": "2008-10-17",
|
12
|
+
"dct_provenance_s": "UVa",
|
13
|
+
"dct_references_s": "{\"http://www.opengis.net/def/serviceType/ogc/wms\":\"http://gis.lib.virginia.edu/geoserver/wms\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"http://gis.lib.virginia.edu/geoserver/wfs\",\"http://www.opengis.net/def/serviceType/ogc/wcs\":\"http://gis.lib.virginia.edu/geoserver/wcs\",\"http://schema.org/downloadUrl\":\"http://gis.lib.virginia.edu/geoserver/ows?service=WFS\\u0026typeName=Norfolk:police_point\\u0026request=GetFeature\\u0026outputFormat=shape-zip\",\"http://www.isotc211.org/schemas/2005/gmd/\":\"https://opengeometadata.github.io/edu.virginia/382/13/iso19139.xml\"}",
|
14
|
+
"dct_temporal_sm": [
|
15
|
+
"2005-2005"
|
16
|
+
],
|
17
|
+
"georss_polygon_s": "36.82 -76.346 36.971 -76.346 36.971 -76.176 36.82 -76.176 36.82 -76.346",
|
18
|
+
"layer_geom_type_s": "MultiPoint",
|
19
|
+
"layer_id_s": "Norfolk:police_point",
|
20
|
+
"layer_modified_dt": "2008-11-12T15:29:47Z",
|
21
|
+
"layer_slug_s": "uva-Norfolk:police_point",
|
22
|
+
"solr_geom": "ENVELOPE(-76.346, -76.176, 36.971, 36.82)",
|
23
|
+
"solr_year_i": 2005,
|
24
|
+
"geoblacklight_version": "1.0"
|
25
|
+
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'rails_helper'
|
4
4
|
|
5
|
-
describe StoreImageJob, type: :job do
|
5
|
+
describe GeoblacklightSidecarImages::StoreImageJob, type: :job do
|
6
6
|
let(:document) { SolrDocument.new(document_attributes) }
|
7
7
|
|
8
8
|
describe '#perform_later' do
|
@@ -10,7 +10,7 @@ describe StoreImageJob, type: :job do
|
|
10
10
|
|
11
11
|
it 'stores an image' do
|
12
12
|
ActiveJob::Base.queue_adapter = :test
|
13
|
-
expect { StoreImageJob.perform_later(document.id) }.to have_enqueued_job(StoreImageJob)
|
13
|
+
expect { GeoblacklightSidecarImages::StoreImageJob.perform_later(document.id) }.to have_enqueued_job(GeoblacklightSidecarImages::StoreImageJob)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'rails_helper'
|
4
4
|
|
5
|
-
describe ImageService do
|
5
|
+
describe GeoblacklightSidecarImages::ImageService do
|
6
6
|
let(:iiif_document) { SolrDocument.new(json_data('umich_iiif_jpg')) }
|
7
7
|
let(:iiif_imgsvc) { described_class.new(iiif_document) }
|
8
8
|
let(:wms_document) { SolrDocument.new(json_data('public_polygon_mit')) }
|
@@ -10,8 +10,8 @@ class TestAppGenerator < Rails::Generators::Base
|
|
10
10
|
# after setting up the application
|
11
11
|
|
12
12
|
def add_gems
|
13
|
-
gem 'blacklight', '~>
|
14
|
-
gem 'geoblacklight', '~>
|
13
|
+
gem 'blacklight', '~> 7.0'
|
14
|
+
gem 'geoblacklight', '~> 2.0'
|
15
15
|
|
16
16
|
Bundler.with_clean_env do
|
17
17
|
run 'bundle install'
|
data/template.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
# $ rails _5.2.
|
1
|
+
# $ rails _5.2.2_ new app-name -m https://raw.githubusercontent.com/geoblacklight/geoblacklight_sidecar_images/master/template.rb
|
2
2
|
|
3
|
-
gem 'blacklight', '>=
|
4
|
-
gem 'geoblacklight', '>=
|
3
|
+
gem 'blacklight', '>= 7.0'
|
4
|
+
gem 'geoblacklight', '>= 2.0'
|
5
5
|
gem 'statesman', '>= 3.4'
|
6
6
|
gem 'geoblacklight_sidecar_images', :git => "git://github.com/ewlarson/geoblacklight_sidecar_images.git", :branch => "master"
|
7
7
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geoblacklight_sidecar_images
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Larson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-08-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: geoblacklight
|
@@ -17,28 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '2.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '2.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: mini_magick
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 4.9.4
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 4.9.4
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: image_processing
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,7 +130,7 @@ dependencies:
|
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
- !ruby/object:Gem::Dependency
|
133
|
-
name:
|
133
|
+
name: webdrivers
|
134
134
|
requirement: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
@@ -163,14 +163,14 @@ dependencies:
|
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
166
|
+
version: '2.2'
|
167
167
|
type: :development
|
168
168
|
prerelease: false
|
169
169
|
version_requirements: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
173
|
+
version: '2.2'
|
174
174
|
- !ruby/object:Gem::Dependency
|
175
175
|
name: rspec-rails
|
176
176
|
requirement: !ruby/object:Gem::Requirement
|
@@ -257,15 +257,25 @@ files:
|
|
257
257
|
- LICENSE
|
258
258
|
- README.md
|
259
259
|
- Rakefile
|
260
|
-
- app/assets/
|
261
|
-
- app/assets/
|
262
|
-
- app/assets/
|
263
|
-
- app/assets/stylesheets/geoblacklight_sidecar_images/application.css
|
260
|
+
- app/assets/stylesheets/geoblacklight_sidecar_images/_gblsci.scss
|
261
|
+
- app/assets/stylesheets/geoblacklight_sidecar_images/application.scss
|
262
|
+
- app/assets/stylesheets/geoblacklight_sidecar_images/modules/_results.scss
|
264
263
|
- app/controllers/geoblacklight_sidecar_images/application_controller.rb
|
265
264
|
- app/helpers/geoblacklight_sidecar_images/application_helper.rb
|
266
265
|
- app/jobs/geoblacklight_sidecar_images/application_job.rb
|
266
|
+
- app/jobs/geoblacklight_sidecar_images/store_image_job.rb
|
267
267
|
- app/mailers/geoblacklight_sidecar_images/application_mailer.rb
|
268
|
-
- app/models/
|
268
|
+
- app/models/application_record.rb
|
269
|
+
- app/models/concerns/wms_rewrite_concern.rb
|
270
|
+
- app/models/sidecar_image_state_machine.rb
|
271
|
+
- app/models/sidecar_image_transition.rb
|
272
|
+
- app/models/solr_document_sidecar.rb
|
273
|
+
- app/services/geoblacklight_sidecar_images/image_service.rb
|
274
|
+
- app/services/geoblacklight_sidecar_images/image_service/dynamic_map_layer.rb
|
275
|
+
- app/services/geoblacklight_sidecar_images/image_service/iiif.rb
|
276
|
+
- app/services/geoblacklight_sidecar_images/image_service/image_map_layer.rb
|
277
|
+
- app/services/geoblacklight_sidecar_images/image_service/tiled_map_layer.rb
|
278
|
+
- app/services/geoblacklight_sidecar_images/image_service/wms.rb
|
269
279
|
- app/views/layouts/geoblacklight_sidecar_images/application.html.erb
|
270
280
|
- config/routes.rb
|
271
281
|
- db/migrate/20180118203155_create_solr_document_sidecars.rb
|
@@ -276,21 +286,8 @@ files:
|
|
276
286
|
- lib/generators/geoblacklight_sidecar_images/install_generator.rb
|
277
287
|
- lib/generators/geoblacklight_sidecar_images/jobs_generator.rb
|
278
288
|
- lib/generators/geoblacklight_sidecar_images/models_generator.rb
|
279
|
-
- lib/generators/geoblacklight_sidecar_images/services_generator.rb
|
280
|
-
- lib/generators/geoblacklight_sidecar_images/templates/assets/javascripts/geoblacklight.js
|
281
|
-
- lib/generators/geoblacklight_sidecar_images/templates/assets/stylesheets/geoblacklight.scss
|
282
289
|
- lib/generators/geoblacklight_sidecar_images/templates/config/initializers/statesman.rb
|
283
|
-
- lib/generators/geoblacklight_sidecar_images/templates/
|
284
|
-
- lib/generators/geoblacklight_sidecar_images/templates/models/concerns/wms_rewrite_concern.rb
|
285
|
-
- lib/generators/geoblacklight_sidecar_images/templates/models/sidecar_image_state_machine.rb
|
286
|
-
- lib/generators/geoblacklight_sidecar_images/templates/models/sidecar_image_transition.rb
|
287
|
-
- lib/generators/geoblacklight_sidecar_images/templates/models/solr_document_sidecar.rb
|
288
|
-
- lib/generators/geoblacklight_sidecar_images/templates/services/image_service.rb
|
289
|
-
- lib/generators/geoblacklight_sidecar_images/templates/services/image_service/dynamic_map_layer.rb
|
290
|
-
- lib/generators/geoblacklight_sidecar_images/templates/services/image_service/iiif.rb
|
291
|
-
- lib/generators/geoblacklight_sidecar_images/templates/services/image_service/image_map_layer.rb
|
292
|
-
- lib/generators/geoblacklight_sidecar_images/templates/services/image_service/tiled_map_layer.rb
|
293
|
-
- lib/generators/geoblacklight_sidecar_images/templates/services/image_service/wms.rb
|
290
|
+
- lib/generators/geoblacklight_sidecar_images/templates/gblsci.scss
|
294
291
|
- lib/generators/geoblacklight_sidecar_images/templates/views/catalog/_index_split_default.html.erb
|
295
292
|
- lib/generators/geoblacklight_sidecar_images/views_generator.rb
|
296
293
|
- lib/geoblacklight_sidecar_images.rb
|
@@ -314,6 +311,7 @@ files:
|
|
314
311
|
- solr/conf/xslt/example_atom.xsl
|
315
312
|
- solr/conf/xslt/example_rss.xsl
|
316
313
|
- solr/conf/xslt/luke.xsl
|
314
|
+
- spec/fixtures/files/README.md
|
317
315
|
- spec/fixtures/files/actual-papermap1.json
|
318
316
|
- spec/fixtures/files/actual-point1.json
|
319
317
|
- spec/fixtures/files/actual-polygon1.json
|
@@ -321,6 +319,8 @@ files:
|
|
321
319
|
- spec/fixtures/files/baruch_ancestor1.json
|
322
320
|
- spec/fixtures/files/baruch_ancestor2.json
|
323
321
|
- spec/fixtures/files/baruch_documentation_download.json
|
322
|
+
- spec/fixtures/files/bbox-spans-180.json
|
323
|
+
- spec/fixtures/files/cornell_html_metadata.json
|
324
324
|
- spec/fixtures/files/esri-dynamic-layer-all-layers.json
|
325
325
|
- spec/fixtures/files/esri-dynamic-layer-single-layer.json
|
326
326
|
- spec/fixtures/files/esri-feature-layer.json
|
@@ -328,7 +328,17 @@ files:
|
|
328
328
|
- spec/fixtures/files/esri-tiled_map_layer.json
|
329
329
|
- spec/fixtures/files/esri-wms-layer.json
|
330
330
|
- spec/fixtures/files/harvard_raster.json
|
331
|
+
- spec/fixtures/files/iiif-eastern-hemisphere.json
|
332
|
+
- spec/fixtures/files/index-map-polygon-no-downloadurl.json
|
333
|
+
- spec/fixtures/files/index-map-polygon.json
|
334
|
+
- spec/fixtures/files/index-map-stanford.json
|
335
|
+
- spec/fixtures/files/index_map_point.json
|
331
336
|
- spec/fixtures/files/no_spatial.json
|
337
|
+
- spec/fixtures/files/princeton-child1.json
|
338
|
+
- spec/fixtures/files/princeton-child2.json
|
339
|
+
- spec/fixtures/files/princeton-child3.json
|
340
|
+
- spec/fixtures/files/princeton-child4.json
|
341
|
+
- spec/fixtures/files/princeton-parent.json
|
332
342
|
- spec/fixtures/files/public_direct_download.json
|
333
343
|
- spec/fixtures/files/public_iiif_princeton.json
|
334
344
|
- spec/fixtures/files/public_polygon_mit.json
|
@@ -340,6 +350,7 @@ files:
|
|
340
350
|
- spec/fixtures/files/umn_solr_thumb.json
|
341
351
|
- spec/fixtures/files/umn_state_result1.json
|
342
352
|
- spec/fixtures/files/umn_state_result2.json
|
353
|
+
- spec/fixtures/files/uva_slug_colon.json
|
343
354
|
- spec/jobs/store_image_job_spec.rb
|
344
355
|
- spec/models/solr_document_sidecar_spec.rb
|
345
356
|
- spec/models/solr_document_spec.rb
|
@@ -348,7 +359,7 @@ files:
|
|
348
359
|
- spec/spec_helper.rb
|
349
360
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
350
361
|
- template.rb
|
351
|
-
homepage: https://github.com/
|
362
|
+
homepage: https://github.com/geoblacklight/geoblacklight_sidecar_images
|
352
363
|
licenses:
|
353
364
|
- Apache 2.0
|
354
365
|
metadata: {}
|
@@ -368,11 +379,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
368
379
|
version: '0'
|
369
380
|
requirements: []
|
370
381
|
rubyforge_project:
|
371
|
-
rubygems_version: 2.6
|
382
|
+
rubygems_version: 2.7.6
|
372
383
|
signing_key:
|
373
384
|
specification_version: 4
|
374
385
|
summary: Store local copies of remote imagery in GeoBlacklight
|
375
386
|
test_files:
|
387
|
+
- spec/fixtures/files/README.md
|
376
388
|
- spec/fixtures/files/actual-papermap1.json
|
377
389
|
- spec/fixtures/files/actual-point1.json
|
378
390
|
- spec/fixtures/files/actual-polygon1.json
|
@@ -380,6 +392,8 @@ test_files:
|
|
380
392
|
- spec/fixtures/files/baruch_ancestor1.json
|
381
393
|
- spec/fixtures/files/baruch_ancestor2.json
|
382
394
|
- spec/fixtures/files/baruch_documentation_download.json
|
395
|
+
- spec/fixtures/files/bbox-spans-180.json
|
396
|
+
- spec/fixtures/files/cornell_html_metadata.json
|
383
397
|
- spec/fixtures/files/esri-dynamic-layer-all-layers.json
|
384
398
|
- spec/fixtures/files/esri-dynamic-layer-single-layer.json
|
385
399
|
- spec/fixtures/files/esri-feature-layer.json
|
@@ -387,7 +401,17 @@ test_files:
|
|
387
401
|
- spec/fixtures/files/esri-tiled_map_layer.json
|
388
402
|
- spec/fixtures/files/esri-wms-layer.json
|
389
403
|
- spec/fixtures/files/harvard_raster.json
|
404
|
+
- spec/fixtures/files/iiif-eastern-hemisphere.json
|
405
|
+
- spec/fixtures/files/index-map-polygon-no-downloadurl.json
|
406
|
+
- spec/fixtures/files/index-map-polygon.json
|
407
|
+
- spec/fixtures/files/index-map-stanford.json
|
408
|
+
- spec/fixtures/files/index_map_point.json
|
390
409
|
- spec/fixtures/files/no_spatial.json
|
410
|
+
- spec/fixtures/files/princeton-child1.json
|
411
|
+
- spec/fixtures/files/princeton-child2.json
|
412
|
+
- spec/fixtures/files/princeton-child3.json
|
413
|
+
- spec/fixtures/files/princeton-child4.json
|
414
|
+
- spec/fixtures/files/princeton-parent.json
|
391
415
|
- spec/fixtures/files/public_direct_download.json
|
392
416
|
- spec/fixtures/files/public_iiif_princeton.json
|
393
417
|
- spec/fixtures/files/public_polygon_mit.json
|
@@ -399,6 +423,7 @@ test_files:
|
|
399
423
|
- spec/fixtures/files/umn_solr_thumb.json
|
400
424
|
- spec/fixtures/files/umn_state_result1.json
|
401
425
|
- spec/fixtures/files/umn_state_result2.json
|
426
|
+
- spec/fixtures/files/uva_slug_colon.json
|
402
427
|
- spec/jobs/store_image_job_spec.rb
|
403
428
|
- spec/models/solr_document_sidecar_spec.rb
|
404
429
|
- spec/models/solr_document_spec.rb
|