Skip to content

Commit

Permalink
update esri fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan committed Jan 29, 2016
1 parent 3b153fb commit 408e203
Show file tree
Hide file tree
Showing 8 changed files with 153 additions and 68 deletions.
2 changes: 1 addition & 1 deletion spec/features/home_page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
end
scenario 'find by category' do
expect(page).to have_css '.category-block', count: 4
expect(page).to have_css '.home-facet-link', count: 30
expect(page).to have_css '.home-facet-link', count: 32
expect(page).to have_css 'a.more_facets_link', count: 4
click_link 'Elevation'
expect(page).to have_css '.filterName', text: 'Subject'
Expand Down
2 changes: 1 addition & 1 deletion spec/features/split_view.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
expect(page).to have_css('div.panel.facet_limit', text: 'Format')
end
click_link 'Institution'
expect(page).to have_css('a.facet_select', text: 'Tufts', visible: true)
expect(page).to have_css('a.facet_select', text: 'Columbia', visible: true)
expect(page).to have_css('a.facet_select', text: 'MIT', visible: true)
expect(page).to have_css('a.facet_select', text: 'Stanford', visible: true)
end
Expand Down
37 changes: 37 additions & 0 deletions spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"uuid": "urn-90f14ff4-1359-4beb-b931-5cb41d20ab90",
"layer_geom_type_s": "Polygon",
"dc_identifier_s": "urn-90f14ff4-1359-4beb-b931-5cb41d20ab90",
"dc_title_s": "Glacial Boundaries: Illinois, 1997",
"dc_description_s": "This is an SDE feature class containing glacial boundary polygons representing the extent of glaciation for major glacial episodes in Illinois. Data are originally from the Quaternary Deposits in Illinois (1:500,000) map by Lineback (1979). Data have been subsequently modified to conform with the reclassification by Hansel and Johnson, ISGS Bulletin 104 (1996). Glacial episode is identified for each polygon. The data include the Wisconsin, Illinois and the Pre-Illinois episodes. Areas not glaciated are also identified. The nominal scale is 1:500,000.",
"dc_rights_s": "Public",
"dct_provenance_s": "Illinois",
"layer_id_s": "urn:f14ff4-1359-4beb-b931-5cb41d20ab90",
"layer_slug_s": "illinois-f14ff4-1359-4beb-b931-5cb41d20ab90",
"layer_modified_dt": "2016-01-12T16:10:41Z",
"dc_creator_sm": [
"Illinois State Geological Survey"
],
"dc_publisher_sm": [
"Illinois State Geological Survey"
],
"dc_format_s": "Shapefile",
"dc_type_s": "Dataset",
"dc_subject_sm": [
"Geoscientific Information",
"Boundaries",
"Glacier",
"Glacial",
"Geology",
"Glaciation"
],
"dct_spatial_sm": [
"Illinois"
],
"dct_issued_s": "1997-12-13",
"dct_temporal_sm": "1996",
"solr_geom": "ENVELOPE(-91.513518, -87.495214, 42.508348, 36.969972)",
"georss_box_s": "36.969972 -91.513518 42.508348 -87.495214",
"solr_year_i": 1997,
"dct_references_s": "{\"http://www.arcgis.com/rdf#DynamicMapLayer\":\"http://data.isgs.illinois.edu/arcgis/rest/services/Geology/Glacial_Boundaries/MapServer\",\"http://schema.org/url\":\"https://clearinghouse.isgs.illinois.edu/data/geology/glacial-boundaries\",\"http://schema.org/downloadUrl\":\"https://clearinghouse.isgs.illinois.edu/sites/clearinghouse.isgs/files/Clearinghouse/data/ISGS/Geology/zips/IL_Glacial_Bndys_Py.zip\"}"
}
40 changes: 40 additions & 0 deletions spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"uuid": "urn-bdfc5cd2-732d-4559-a9c7-df38dd683aec",
"layer_geom_type_s": "Polygon",
"georss_box_s": "38.0044 -79.4871 39.7226 -75.2327",
"layer_modified_dt": "2016-01-11T12:28:18Z",
"dc_creator_sm": [
"Maryland Department of Planning"
],
"layer_id_s": "Permanently Preserved Agricultural Lands",
"dc_type_s": "Dataset",
"dc_identifier_s": "urn-bdfc5cd2-732d-4559-a9c7-df38dd683aec",
"dct_provenance_s": "Maryland",
"dc_title_s": "Permanently Preserved Agricultural Lands: Maryland, 2014",
"layer_slug_s": "maryland-fc5cd2-732d-4559-a9c7-df38dd683aec",
"dc_format_s": "Shapefile",
"dc_description_s": "This layer contains lands that have been forever restricted from development on prime farmland and woodland. Permanently preserved agricultural lands are parcels subject to some type of preservation easement as well as properties owned by federal, state and local governments. In addition, properties owned by local trusts and private conservation organizations such as The Nature Conservancy are included. Conservation easements include easements from the Maryland Agricultural Land Preservation Foundation (MALPF), Rural Legacy, Forest Legacy, Maryland Environmental Trust (MET), county and state purchases of development rights, transfers of development rights, open space from home owners associations, local open space requirements, and private conservation easements. This data is compiled from settlement data directly from conservation program administrators, county GIS updates on preservation activities, and publicly available data from the Maryland Department of Natural Resources. In addition, this data is in the process of being realigned to the 2012 MD iMap parcel polygons. The realignments are available on a county by county basis depending on the production schedule.",
"dct_references_s": "{\"http://schema.org/downloadUrl\":\"http://geodata.md.gov/imap/rest/directories/arcgisoutput/AGRL_PermPreservedAgLands_MDP.zip\",\"http://schema.org/url\":\"http://data.imap.maryland.gov/datasets/20f240af3be54be581f9ceef1b314b6a_0\",\"http://www.arcgis.com/rdf#DynamicMapLayer\":\"http://geodata.md.gov/imap/rest/services/Agriculture/MD_AgriculturalDesignations/MapServer/0\"}",
"dc_subject_sm": [
"Planning and Cadastral",
"Farming",
"Maryland",
"MDP",
"MALPF",
"Agriculture",
"Rural Legacy",
"Maryland Department of Planning",
"Easement",
"MET",
"Preservation",
"AGRL",
"Conservation",
"protected lands",
"MD iMAP",
"MD"
],
"solr_year_i": 2014,
"solr_geom": "ENVELOPE(-79.4871, -75.2327, 39.7226, 38.0044)",
"dc_rights_s": "Public",
"dct_issued_s": "2014-04-02"
}
22 changes: 0 additions & 22 deletions spec/fixtures/solr_documents/esri-dynamic-map-all.json

This file was deleted.

22 changes: 0 additions & 22 deletions spec/fixtures/solr_documents/esri-dynamic-map-single.json

This file was deleted.

55 changes: 33 additions & 22 deletions spec/fixtures/solr_documents/esri-feature-layer.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,39 @@
{
"uuid": "test-neighborhoods-pdx",
"dc_format_s": "Shapefile",
"dc_identifier_s": "test-neighborhoods-pdx",
"dc_language_s": "English",
"dc_publisher_s": "City of Portland, Bureau of Planning and Sustainability",
{
"layer_geom_type_s": "Polygon",
"layer_modified_dt": "2016-01-19T09:33:12.85Z",
"solr_geom": "ENVELOPE(-93.3291083642602, -93.1896159986687, 45.0512462600492, 44.8901520021226)",
"dct_references_s": "{\"http://schema.org/downloadUrl\":\"http://opendata.minneapolismn.gov/datasets/772ebcaf2ec0405ea1b156b5937593e7_0.zip\",\"http://www.arcgis.com/rdf#FeatureLayer\":\"https://services.arcgis.com/afSMGVsC7QlRK1kZ/arcgis/rest/services/Fire_Station_Areas/FeatureServer/0\",\"http://schema.org/url\":\"http://opendata.minneapolismn.gov/datasets/772ebcaf2ec0405ea1b156b5937593e7_0\"}",
"dc_rights_s": "Public",
"dc_title_s": "Neighborhood Association Areas",
"dc_type_s": "Dataset",
"dct_references_s": "{\"http://www.arcgis.com/rdf#FeatureLayer\":\"https://services.arcgis.com/rOo16HdIMeOBI4Mb/arcgis/rest/services/Neighborhoods_pdx/FeatureServer/0\"}",
"dct_spatial_sm": [
"Clackamas County",
"Multnomah County",
"Washington County",
"Oregon"
"uuid": "http://opendata.minneapolismn.gov/datasets/772ebcaf2ec0405ea1b156b5937593e7_0",
"dct_provenance_s": "Minnesota",
"dc_subject_sm": [
"Boundaries",
"Minneapolis",
"Fire Station Areas",
"Fire",
"Fire Department",
"Boundaries"
],
"dct_temporal_sm": [
"2015"
],
"dct_provenance_s": "Minnesota",
"georss_box_s": "45.4295 -122.8392 45.6582 -122.4680",
"layer_slug_s": "minnesota-test-neighborhoods-pdx",
"layer_id_s": "test-neighborhoods-pdx",
"layer_geom_type_s": "Polygon",
"layer_modified_dt": "2015-06-16T00:33:04Z",
"solr_geom": "ENVELOPE(-122.8392, -122.4680, 45.6582, 45.4295)",
"solr_year_i": 2015
"dc_description_s": "Map service showing the Fire Station service areas for the Minneapolis Fire Department.",
"dct_issued_s": "2012-04-25T19:32:02.000ZZ",
"dc_format_s": "Shapefile",
"dc_creator_sm": [
"MapIT Minneapolis"
],
"dc_type_s": "Dataset",
"dc_identifier_s": "http://opendata.minneapolismn.gov/datasets/772ebcaf2ec0405ea1b156b5937593e7_0",
"solr_year_i": 2015,
"dct_spatial_sm": [
"Minneapolis, City of"
],
"dc_publisher_sm": [
"MapIT Minneapolis"
],
"layer_id_s": "urn:772ebcaf2ec0405ea1b156b5937593e7_0",
"georss_box_s": "44.8901520021226 -93.3291083642602 45.0512462600492 -93.1896159986687",
"dc_title_s": "Fire Station Areas",
"layer_slug_s": "minnesota-772ebcaf2ec0405ea1b156b5937593e7_0"
}
41 changes: 41 additions & 0 deletions spec/fixtures/solr_documents/esri-wms-layer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"uuid": "urn-0a32ef9f-0762-445c-8250-f4a5e220a46d",
"layer_geom_type_s": "Point",
"dc_identifier_s": "urn-0a32ef9f-0762-445c-8250-f4a5e220a46d",
"dc_title_s": "Coal Pillar Location-Mining: Pennsylvania, 2015",
"dc_description_s": "Coal Pillar Locations are pillars of coal that must remain in place to provide support for a coal mine.",
"dc_rights_s": "Public",
"dct_provenance_s": "Penn State University",
"layer_id_s": "30",
"layer_slug_s": "psu-32ef9f-0762-445c-8250-f4a5e220a46d",
"layer_modified_dt": "2016-01-21T09:47:40Z",
"dc_creator_sm": [
"Pennsylvania Department of Environmental Protection"
],
"dc_publisher_sm": [
"Pennsylvania Department of Environmental Protection"
],
"dc_format_s": "Shapefile",
"dc_type_s": "Dataset",
"dc_subject_sm": [
"Geoscientific Information",
"Environment",
"EFacts",
"Mine",
"Mining",
"Mines",
"Coal",
"Coal Pillar",
"Coal Pillar Location-Mining",
"CPILL"
],
"dct_spatial_sm": [
"Pennsylvania"
],
"dct_issued_s": "2015-09-04",
"dct_temporal_sm": "2015",
"solr_geom": "ENVELOPE(-80.586626, -78.554382, 41.664169, 39.69975)",
"georss_box_s": "39.69975 -80.586626 41.664169 -78.554382",
"solr_year_i": 2015,
"dct_references_s": "{\"http://schema.org/url\":\"http://www.pasda.psu.edu/uci/MetadataDisplay.aspx?entry=PASDA&file=CoalPillarLocationMining2015_10.xml&dataset=273\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"http://data1.commons.psu.edu/arcgis/services/pasda/DEP/MapServer/WMSServer\",\"http://schema.org/downloadUrl\":\"http://www.pasda.psu.edu/data/dep/CoalPillarLocationMining2016_01.zip\"}"
}

0 comments on commit 408e203

Please sign in to comment.