Skip to content

Commit

Permalink
Merge pull request #118 from NYULibraries/sunset-park-behavior
Browse files Browse the repository at this point in the history
makes some changes and adds prelim fixtures for Sunset Park collection
  • Loading branch information
mnyrop authored Feb 20, 2020
2 parents 46a8d1b + 717cfa3 commit 133429d
Show file tree
Hide file tree
Showing 10 changed files with 228 additions and 5 deletions.
Binary file added app/assets/images/thumb/nyu-2451-60458.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions app/views/catalog/_laefer_sunset.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<% document ||= @document %>
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span>
</button>
Thank you for your interest in data from the <%= link_to search_catalog_path({f: {"#{Settings.FIELDS.PART_OF}" => ['2019 Sunset Park LiDAR']}}) do %><b>2019 Sunset Park LiDAR</b><% end %> project.<br><br>
We would appreciate your feedback on this unique dataset. Please take a moment to fill out <a href="https://nyu.qualtrics.com/jfe/form/SV_8nWc9X5iV2i9xLn" target="_blank">this brief survey</a> telling us a little bit about yourself, how you found the data, and how you are using it.
Having an accurate idea of how users are accessing and using the data is essential to being able to produce datasets of this magnitude.<br><br>
For a better sense of what this data looks like in 3D, please refer to <a href="https://skfb.ly/6MLCw">this video flythrough</a> of a portion of the covered area.<br><br>Please cite this study using the DOI: <code><a href="https://doi.org/10.17609/4cpx-2h33">doi:10.17609/4cpx-2h33</a></code>
</div>
5 changes: 4 additions & 1 deletion app/views/catalog/_upper_metadata.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
<div class="alert alert-warning alert-dismissible" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<%= @document.rights_text.html_safe %></div>
<% end %>
<% if (document["dc_creator_sm"]) && (document["dc_creator_sm"].include? ("Debra F. Laefer")) %>
<% if (document["dct_isPartOf_sm"]) && (document["dct_isPartOf_sm"].include? ("2015 Dublin LiDAR")) %>
<%= render 'laefer_notice' %>
<% end %>
<% if (document["dct_isPartOf_sm"]) && (document["dct_isPartOf_sm"].include? ("2019 Sunset Park LiDAR")) %>
<%= render 'laefer_sunset' %>
<% end %>
<%# From https://github.com/projectblacklight/blacklight/blob/master/app/views/catalog/_show_default.html.erb %>
<%# default partial to display solr document fields in catalog show view -%>
Expand Down
5 changes: 3 additions & 2 deletions lib/nyugeoblacklight/curated_collections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ def CuratedCollections.collections

def CuratedCollections.recent
[
{title: "2015 Dublin LiDAR", description: "High-density LiDAR datasets of Dublin, from Debra Laefer (NYU) and collaborators", f: {"dct_isPartOf_sm" => ["2015 Dublin LiDAR"]}},
{title: "2019 Sunset Park LiDAR", description: "High-density LiDAR datasets of Sunset Park, Brooklyn, from Debra Laefer (NYU) and collaborators", f: {"dct_isPartOf_sm" => ["2019 Sunset Park LiDAR"]}},
{title: "2004 New York State Tax Parcels", description: "Point data on property ownership and land value", f: {"dct_isPartOf_sm" => ["NYS GIS Clearinghouse"]}},
{title: "Soviet Topographic Maps of the Arabian Peninsula", description: "Raster scans of Soviet military topographic maps produced in the late 1970s", f: { "dc_publisher_s" => ["Omni Resources (Firm)"]}}
{title: "2011 India Census Data", description: "Vector village-level demographic data from the 2011 India Census", f: { "dc_publisher_s" => ["ML InfoMap (Firm)"]}}
]
end

def CuratedCollections.maps
[
{title: "2015 Aerial Laser and Photogrammetry Survey of Dublin", slug: "nyu-2451-38684"},
{title: "2019 Aerial Lasar and Photogrammetry Survey of Sunset Park, Brooklyn", slug: "nyu-2451-60458"},
{title: "China: Ch'ang-sha Region", slug: "harvard-ams7810-s250-u54-nh49-16"},
{title: "1967 Communist China Agriculture", slug: "nyu-2451-36739"},
{title: "2015 New York City Real Estate Sales", slug: "nyu-2451-34678"},
Expand Down
2 changes: 1 addition & 1 deletion lib/nyugeoblacklight/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module NyuGeoblacklight
VERSION = '1.9.3'.freeze
VERSION = '1.9.4'.freeze
end
51 changes: 51 additions & 0 deletions spec/fixtures/solr_documents/diag-fixture.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"dc_creator_sm": [
"Debra F. Laefer",
"Anh-Vu Vo"
],
"dc_description_s": "This collection record provides a way to consume parts of the 2019 LiDAR Dataset for Sunset Park, Brooklyn NY. It is an index of the Diagonal flight paths",
"dc_format_s": "GeoJSON",
"dc_identifier_s": "http://hdl.handle.net/2451/60459",
"dc_language_s": "English",
"dc_publisher_s": "New York University. Center for Urban Science and Progress",
"dc_rights_s": "Public",
"dc_subject_sm": [
"Cities and towns",
"Urban density",
"Urban development",
"Cities and towns--United States",
"Remote Sensing",
"Community development, Urban",
"Land use, Urban"
],
"dc_title_s": "Index of Diagonal Flight Paths for LiDAR Data Collection in Sunset Park, Brooklyn, NY, 2019",
"dc_type_s": "Dataset",
"dct_isPartOf_sm": [
"NYU Research Data",
"2019 Sunset Park LiDAR"
],
"dct_issued_s": "2019",
"dct_provenance_s": "NYU",
"dct_references_s": "{\"http://schema.org/url\":\"http://hdl.handle.net/2451/60459\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://openindexmaps.org\",\"https://raw.githubusercontent.com/OpenIndexMaps/edu.nyu/master/nyu-2451-60459.geojson\":\"https://maps-public.geo.nyu.edu/geoserver/sdr/wms\",\"http://lccn.loc.gov/sh85035852\":\"https://archive.nyu.edu/retrieve/122246/nyu_2451_60458_doc.zip\"}",
"dct_source_sm": [

],
"dct_spatial_sm": [
"Sunset Park, Kings County, New York, United States",
"Brooklyn, Kings County, New York, United States",
"New York City, New York, United States"
],
"dct_temporal_sm": [
"2019"
],
"geoblacklight_version": "1.0",
"layer_geom_type_s": "Mixed",
"layer_modified_dt": "2019-12-19T14:28:18Z",
"layer_slug_s": "nyu-2451-60459",
"nyu_addl_dspace_s": "61433",
"nyu_addl_format_sm": [
"GeoJSON"
],
"solr_geom": "ENVELOPE(-74.0395867889, -74.0102522224, 40.6508411236, 40.6284819074)",
"solr_year_i": 2019
}
51 changes: 51 additions & 0 deletions spec/fixtures/solr_documents/orthog-fixture.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"dc_creator_sm": [
"Debra F. Laefer",
"Anh-Vu Vo"
],
"dc_description_s": "This collection record provides a way to consume parts of the 2019 LiDAR Dataset for Sunset Park, Brooklyn NY. It is an index to the Orthogonal flight paths",
"dc_format_s": "GeoJSON",
"dc_identifier_s": "http://hdl.handle.net/2451/60460",
"dc_language_s": "English",
"dc_publisher_s": "New York University. Center for Urban Science and Progress",
"dc_rights_s": "Public",
"dc_subject_sm": [
"Cities and towns",
"Urban density",
"Urban development",
"Cities and towns--United States",
"Remote Sensing",
"Community development, Urban",
"Land use, Urban"
],
"dc_title_s": "Index of Orthogonal Flight Paths for LiDAR Data Collection in Sunset Park, Brooklyn, NY, 2019",
"dc_type_s": "Dataset",
"dct_isPartOf_sm": [
"NYU Research Data",
"2019 Sunset Park LiDAR"
],
"dct_issued_s": "2019",
"dct_provenance_s": "NYU",
"dct_references_s": "{\"http://schema.org/url\":\"http://hdl.handle.net/2451/60460\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\",\"http://openindexmaps.org\":\"https://raw.githubusercontent.com/OpenIndexMaps/edu.nyu/master/nyu-2451-60459.geojson\",\"http://lccn.loc.gov/sh85035852\":\"https://archive.nyu.edu/retrieve/122246/nyu_2451_60458_doc.zip\"}",
"dct_source_sm": [

],
"dct_spatial_sm": [
"Sunset Park, Kings County, New York, United States",
"Brooklyn, Kings County, New York, United States",
"New York City, New York, United States"
],
"dct_temporal_sm": [
"2019"
],
"geoblacklight_version": "1.0",
"layer_geom_type_s": "Mixed",
"layer_modified_dt": "2019-12-19T14:28:18Z",
"layer_slug_s": "nyu-2451-60460",
"nyu_addl_dspace_s": "61434",
"nyu_addl_format_sm": [
"GeoJSON"
],
"solr_geom": "ENVELOPE(-74.0395867889, -74.0102522224, 40.6508411236, 40.6284819074)",
"solr_year_i": 2019
}
57 changes: 57 additions & 0 deletions spec/fixtures/solr_documents/sunset-park-flight.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"dc_identifier_s": "http://hdl.handle.net/2451/60462",
"dc_title_s": "LiDAR Flight F_190511_161348 for Sunset Park, Brooklyn, NY, 2019",
"dc_description_s": "This record contains aerial laser scanning (ALS) and photogrammetry data that corresponds to flight 190511_161348is one part of data that was collected over an area of about 0.5 km² in Sunset Park, Brooklyn, NY in April, 2019. Each flight line package includes one LiDAR Point Cloud file in LAZ format, two LiDAR Full waveform files in PulseWaves format, two LiDAR Full waveform files in LAS format, and a series of RGBI Nadir Imagery files in TIFF format. Future data releases will include 16 hyperspectral data files. In this 2019 Sunset Park collection, billions of laser points were acquired (inclusive of partially covered areas). ALS was carried out by contractors using a RIEGL LMS-Q680i LiDAR Scanner and an ITRES MicroCASI 1920 Hyperspectral Camera. The average flying altitude was approximately 1000 feet above groud level with a total of 85 flight paths. This data was harvested to obtain high accuracy models of the urban environment that can be used as a basis for urban informatics research and various practical applications, including digital mapping for auto navigation, pedestrian wind modeling, disability access optimization, and disaster mitigation. For full information on this data, consult the documentation and metadata. See the source dataset for a guide to the entire collection. A collection-level manifest of SHA-256 checksums is available in the nyu-2451-60458-manifest.json' file, within the preservation record. Users may also find a stable link to this collection at https://doi.org/xxxxxxxx/ and may find bulk download instructions via wget in the metadata tab. This data is released with an Attribution 4.0 International (CC BY 4.0) license.",
"dc_rights_s": "Public",
"dct_provenance_s": "NYU",
"dct_references_s": "{\"http://schema.org/url\":\"http://hdl.handle.net/2451/60462\",\"http://schema.org/downloadUrl\":\"https://archivefda-dev.dlib.nyu.edu/bitstream/2451/60462/1/nyu_2451_60462_cir_F_190511_161348.zip\",\"http://lccn.loc.gov/sh85035852\":\"https://archive.nyu.edu/retrieve/81335/nyu_2451_60462_doc.zip\"}",
"layer_id_s": "sdr:nyu_2451_60462",
"layer_slug_s": "nyu-2451-60462",
"layer_geom_type_s": "Mixed",
"layer_modified_dt": "2017-06-06T15:21:27Z",
"dc_format_s": "LAZ",
"dc_language_s": "English",
"dc_type_s": "Dataset",
"dc_publisher_s": "New York University. Center for Urban Science and Progress",
"dc_creator_sm": [
"Debra F. Laefer",
"Saleh Abuwarda",
"Anh-Vu Vo",
"Linh Truong-Hong",
"Hamid Gharibi"
],
"dc_subject_sm": [
"Cities and towns",
"Urban density",
"Urban development"
],
"dct_issued_s": "2020",
"dct_temporal_sm": [
"2019"
],
"dct_spatial_sm": [
"Sunset Park, Brooklyn, NY",
"Brooklyn, NY"
],
"solr_geom": "ENVELOPE(-74.0395867889, -74.0102522224, 40.6508411236, 40.6284819074)",
"solr_year_i": 2019,
"geoblacklight_version": "1.0",
"nyu_addl_format_sm": [
"LAZ (Point-cloud)",
"LAS (Full-waveform)",
"Pulsewaves (Full-waveform)",
"JPG (Oblique photos)",
"GeoTIFF (Geo-referenced RGB)",
"GeoTIFF (Geo-referenced CIR)"
],
"dct_source_sm": [
"nyu-2451-60459"
],
"nyu_addl_dspace_s": "39643",
"nyu_addl_license_s": "Attribution 4.0 International (CC BY 4.0)",
"nyu_addl_downloads_s": "{\"LAZ (Point-cloud)\":\"https://archive.nyu.edu/retrieve/80003/nyu_2451_38645_pc_F_150326_120403.zip\",\"LAS (Full-waveform)\":\"https://archivefda-dev.dlib.nyu.edu/bitstream/2451/60462/2/nyu_2451_60462_fwf_las_F_190511_161348.zip\",\"Pulsewaves (Full-waveform)\":\"https://archive.nyu.edu/retrieve/80005/nyu_2451_38645_fwf_plswvs_F_150326_120403.zip\",\"GeoTIFF (Geo-referenced RGB)\":\"https://archive.nyu.edu/retrieve/80240/nyu_2451_38645_rgb_F_150326_120403.zip\",\"GeoTIFF (Geo-referenced CIR)\":\"https://archive.nyu.edu/retrieve/80001/nyu_2451_38645_cir_F_150326_120403.zip\",\"JPG (Oblique photos)\":\"https://archive.nyu.edu/retrieve/80004/nyu_2451_38645_oblique_F_150326_120403.zip\"}",
"dct_isPartOf_sm": [
"2015 Dublin LiDAR",
"NYU Research Data"
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dc_creator_sm": [
"Debra Laefer",
"Debra F. Laefer",
"Anh-Vu Vo"
],
"dc_description_s": "This collection record provides a way to consume parts of the 2019 LiDAR Dataset for Sunset Park, Brooklyn NY. It is an index of the Diagonal flight paths",
Expand Down
51 changes: 51 additions & 0 deletions spec/fixtures/solr_documents/tile-fixture.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"dc_creator_sm": [
"Debra F. Laefer",
"Anh-Vu Vo"
],
"dc_description_s": "This collection record provides a way to consume parts of the 2019 LiDAR Dataset for Sunset Park, Brooklyn NY.",
"dc_format_s": "GeoJSON",
"dc_identifier_s": "http://hdl.handle.net/2451/60461",
"dc_language_s": "English",
"dc_publisher_s": "New York University. Center for Urban Science and Progress",
"dc_rights_s": "Public",
"dc_subject_sm": [
"Cities and towns",
"Urban density",
"Urban development",
"Cities and towns--United States",
"Remote Sensing",
"Community development, Urban",
"Land use, Urban"
],
"dc_title_s": "Index of Tiles for LiDAR Data Collection in Sunset Park, Brooklyn, NY, 2019",
"dc_type_s": "Dataset",
"dct_isPartOf_sm": [
"NYU Research Data",
"2019 Sunset Park LiDAR"
],
"dct_issued_s": "2019",
"dct_provenance_s": "NYU",
"dct_references_s": "{\"http://schema.org/url\":\"http://hdl.handle.net/2451/60461\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"https://maps-public.geo.nyu.edu/geoserver/sdr/wms\",\"http://lccn.loc.gov/sh85035852\":\"https://archive.nyu.edu/retrieve/122246/nyu_2451_60458_doc.zip\"}",
"dct_source_sm": [

],
"dct_spatial_sm": [
"Sunset Park, Kings County, New York, United States",
"Brooklyn, Kings County, New York, United States",
"New York City, New York, United States"
],
"dct_temporal_sm": [
"2019"
],
"geoblacklight_version": "1.0",
"layer_geom_type_s": "Mixed",
"layer_modified_dt": "2019-12-19T14:28:18Z",
"layer_slug_s": "nyu-2451-60461",
"nyu_addl_dspace_s": "61435",
"nyu_addl_format_sm": [
"GeoJSON"
],
"solr_geom": "ENVELOPE(-74.0395867889, -74.0102522224, 40.6508411236, 40.6284819074)",
"solr_year_i": 2019
}

0 comments on commit 133429d

Please sign in to comment.