geo_combine 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -3
- data/Gemfile +2 -1
- data/README.md +43 -27
- data/geo_combine.gemspec +4 -2
- data/lib/geo_combine.rb +3 -1
- data/lib/geo_combine/formatting.rb +6 -1
- data/lib/geo_combine/geoblacklight.rb +55 -12
- data/lib/geo_combine/ogp.rb +229 -0
- data/lib/geo_combine/railtie.rb +7 -0
- data/lib/geo_combine/version.rb +1 -1
- data/lib/tasks/geo_combine.rake +44 -20
- data/lib/xslt/fgdc2html.xsl +105 -157
- data/spec/fixtures/docs/geoblacklight_pre_v1.json +37 -0
- data/spec/fixtures/docs/ogp_harvard_line.json +28 -0
- data/spec/fixtures/docs/ogp_harvard_raster.json +28 -0
- data/spec/fixtures/docs/ogp_tufts_vector.json +31 -0
- data/spec/fixtures/json_docs.rb +16 -0
- data/spec/lib/geo_combine/formatting_spec.rb +6 -0
- data/spec/lib/geo_combine/geoblacklight_spec.rb +25 -4
- data/spec/lib/geo_combine/ogp_spec.rb +163 -0
- data/spec/spec_helper.rb +1 -0
- metadata +51 -11
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"LayerId": "HARVARD.SDE.KNG_SNCARC",
|
3
|
+
"Name": "KNG_SNCARC",
|
4
|
+
"ExternalLayerId": "188",
|
5
|
+
"Institution": "Harvard",
|
6
|
+
"Access": "Restricted",
|
7
|
+
"DataType": "Line",
|
8
|
+
"Availability": "online",
|
9
|
+
"LayerDisplayName": "King County, Washington : streets",
|
10
|
+
"Publisher": "King County GIS Center",
|
11
|
+
"ThemeKeywords": "Roads Transportation Municipal transportation",
|
12
|
+
"PlaceKeywords": "Snohomish Pierce King County Washington",
|
13
|
+
"GeoReferenced": true,
|
14
|
+
"Abstract": "King County, Washington arc features from the King County street network coverage. Covers also portions of Snohomish and Pierce Counties. \n\nThe source coverage was derived from the King County Street Network coverage (kcsn). All feature classes other than arcs have been dropped and items have been removed from the AAT. Scale: 1:24,000.",
|
15
|
+
"Location": "{\"wms\": [\"http://hgl.harvard.edu:8080/geoserver/wms\"],\"wfs\": \"http://hgl.harvard.edu:8080/geoserver/wfs\"}",
|
16
|
+
"MaxY": 47.986427,
|
17
|
+
"MinY": 47.150354,
|
18
|
+
"MaxX": -121.6959,
|
19
|
+
"MinX": -122.525897,
|
20
|
+
"CenterX": -122.11089849999999,
|
21
|
+
"CenterY": 47.5683905,
|
22
|
+
"HalfWidth": 0.41499850000000293,
|
23
|
+
"HalfHeight": 0.4180364999999995,
|
24
|
+
"Area": 0.693938081781004,
|
25
|
+
"WorkspaceName": "hglshapefiles",
|
26
|
+
"ContentDate": "2003-01-01T01:01:01Z",
|
27
|
+
"FgdcText": "<?xml version = '1.0' encoding = 'UTF-8'?><metadata> <idinfo> <citation> <citeinfo> <origin>King County (Wash.)</origin> <pubdate>20030630</pubdate> <title>King County, Washington : streets</title> <geoform>vector digital data</geoform> <pubinfo> <pubplace>[Seattle, Washington].</pubplace> <publish>King County GIS Center</publish> </pubinfo> <onlink>http://hgl.harvard.edu:8080/HGL/jsp/HGL.jsp?action=VColl&VCollName=KNG_SNCARC</onlink> </citeinfo> </citation> <descript> <abstract>King County, Washington arc features from the King County street network coverage. Covers also portions of Snohomish and Pierce Counties. The source coverage was derived from the King County Street Network coverage (kcsn). All feature classes other than arcs have been dropped and items have been removed from the AAT. Scale: 1:24,000.</abstract> <purpose>Based on TIGER data, KCSN is suitable for general reference, small-scale map displays, and network analysis. Future enhancements include deriving this data set directly from RECDNET.</purpose> </descript> <timeperd> <timeinfo> <sngdate> <caldate>20030624</caldate> </sngdate> </timeinfo> <current>source coverage publication date</current> </timeperd> <status> <progress>Complete</progress> <update>Irregular</update> </status> <spdom> <bounding> <westbc>-122.525897</westbc> <eastbc>-121.695900</eastbc> <northbc>47.986427</northbc> <southbc>47.150354</southbc> </bounding> </spdom> <keywords> <theme> <themekt>HGL Category Keyword Thesaurus</themekt> <themekey>Municipal</themekey> </theme> <theme> <themekt>LCSH</themekt> <themekey>Roads</themekey> <themekey>Transportation</themekey> </theme> <theme> <themekt>ISO 19115 Topic Category</themekt> <themekey>transportation</themekey> </theme> <place> <placekt>GNIS</placekt> <placekey>Washington</placekey> <placekey>King County</placekey> <placekey>Snohomish County</placekey> <placekey>Pierce County</placekey> </place> </keywords> <accconst>Access is granted to Harvard University Affiliates only. Affiliates are limited to current faculty, staff and students.</accconst> <useconst>Plots/maps displaying streets from this coverage must include a disclaimer indicating that the source of the data is from maps produced by Kroll. This disclaimer must read as follows: THIS DOCUMENT INCLUDES DATA COPYRIGHTED BY THE KROLL MAP COMPANY AND IS BEING USED WITH THEIR PERMISSION. USE IS RESTRICTED. For educational non-commercial use only. This data may not be redistributed by HGL users. King County data are made available with the understanding that they shall be used exclusively by the obtainer or his/her authorized agents.</useconst> <ptcontac> <cntinfo> <cntperp> <cntper>Tamara Davis</cntper> <cntorg>GIS group - Transit Infrastructure and Integration</cntorg> </cntperp> <cntaddr> <addrtype>mailing address</addrtype> <address>Exchange Building</address> <address>821 Second Ave., MS 150</address> <city>Seattle</city> <state>WA</state> <postal>98014</postal> <country>USA</country> </cntaddr> <cntvoice>(206) 684-2118</cntvoice> <cntemail>tamara.davis@metrokc.gov</cntemail> </cntinfo> </ptcontac> <datacred>See use constraints.</datacred> <native>Unknown.</native> </idinfo> <dataqual> <attracc> <attraccr>None</attraccr> </attracc> <logic>None.</logic> <complete>None.</complete> <posacc> <horizpa> <horizpar>This data set is not conflated to the King County Cadastral Base. The positional accuracy of this data set is undetermined.</horizpar> </horizpa> </posacc> <lineage> <srcinfo> <srccite> <citeinfo> <origin>King County (Wash.)</origin> <origin>King County (Wash.). GIS Center.</origin> <pubdate>20030624</pubdate> <title>KCSNC: Streets</title> <geoform>vector digital data</geoform> <pubinfo> <pubplace>[Seattle, Wash.]</pubplace> <publish>King County GIS Center</publish> </pubinfo> <othercit>CD-ROM layer: street-kcsnc</othercit> <lworkcit> <citeinfo> <origin>King County (Wash.). GIS Center</origin> <pubdate>2003</pubdate> <title>King County GIS data.</title> <geoform>digital data</geoform> <pubinfo> <pubplace>King County GIS Center</pubplace> <publish>[Seattle, Wash.]</publish> </pubinfo> <othercit>2 CD-ROMs; CD 1. Standard data -- CD 2. Parcel data.</othercit> </citeinfo> </lworkcit> </citeinfo> </srccite> <srcscale>Unknown</srcscale> <typesrc>online</typesrc> <srctime> <timeinfo> <sngdate> <caldate>20030624</caldate> </sngdate> </timeinfo> <srccurr>publication date</srccurr> </srctime> <srccitea>coverage</srccitea> <srccontr>Source coverage data layer from which shapefile was converted.</srccontr> </srcinfo> <procstep> <procdesc>King County, Washington data was obtained via a CD-ROM. The data were in the format of ArcINFO coverages and were converted to shapefiles using the \"coverage to shapefile\" wizard in ArcToolbox, version 8.3. The shapefiles were then imported to ArcSDE Layers using the ArcSDE command line importing tool, shp2sde, version 8.3.</procdesc> <srcused>coverage</srcused> <procdate>2005</procdate> <srcprod>shapefile</srcprod> <proccont> <cntinfo> <cntorgp> <cntorg>Harvard Geospatial Library</cntorg> </cntorgp> <cntpos>GIS Technician</cntpos> <cntaddr> <addrtype>mailing and physical address</addrtype> <address>Office for Information Systems</address> <address>Harvard University Library</address> <address>90 Mount Auburn Street</address> <city>Cambridge</city> <state>MA</state> <postal>02138</postal> <country>USA</country> </cntaddr> <cntvoice>617-495-2417</cntvoice> <cntfax>617-496-0440</cntfax> <cntemail>hgl_ref@hulmail.harvard.edu</cntemail> <hours>Monday - Friday, 9:00 am - 4:00 pm EST-USA</hours> </cntinfo> </proccont> </procstep> </lineage> </dataqual> <spdoinfo> <direct>Vector</direct> <ptvctinf> <sdtsterm> <sdtstype>String</sdtstype> <ptvctcnt>8185</ptvctcnt> </sdtsterm> </ptvctinf> </spdoinfo> <spref> <horizsys> <planar> <mapproj> <mapprojn>Lambert Conformal Conic</mapprojn> <lambertc> <stdparll>47.500000</stdparll> <stdparll>48.733333</stdparll> <longcm>-120.833333</longcm> <latprjo>47.000000</latprjo> <feast>1640416.666667</feast> <fnorth>0.000000</fnorth> </lambertc> </mapproj> <planci> <plance>coordinate pair</plance> <coordrep> <absres>0.000176</absres> <ordres>0.000176</ordres> </coordrep> <plandu>survey feet</plandu> </planci> </planar> <geodetic> <horizdn>D_North_American_1983_HARN</horizdn> <ellips>Geodetic Reference System 80</ellips> <semiaxis>6378137.000000</semiaxis> <denflat>298.257222</denflat> </geodetic> </horizsys> </spref> <eainfo> <detailed> <enttyp> <enttypl>KNG_SNCARC</enttypl> <enttypd>King County Streets</enttypd> <enttypds>King County GIS Center</enttypds> </enttyp> <attr> <attrlabl>FNODE_</attrlabl> <attrdef>From node</attrdef> <attrdefs>None</attrdefs> </attr> <attr> <attrlabl>TNODE_</attrlabl> <attrdef>To node</attrdef> <attrdefs>None</attrdefs> </attr> <attr> <attrlabl>LPOLY_</attrlabl> <attrdef>Left polygon</attrdef> <attrdefs>None</attrdefs> </attr> <attr> <attrlabl>RPOLY_</attrlabl> <attrdef>Right polygon</attrdef> <attrdefs>None</attrdefs> </attr> <attr> <attrlabl>LENGTH</attrlabl> <attrdef>Length of feature in coverage units.</attrdef> <attrdefs>ESRI</attrdefs> </attr> <attr> <attrlabl>KCSNC_</attrlabl> <attrdef>Internal feature number</attrdef> <attrdefs>None</attrdefs> <attrdomv> <udom>Sequential unique whole numbers that are automatically generated.</udom> </attrdomv> </attr> <attr> <attrlabl>KCSNC_ID</attrlabl> <attrdef>Internal feature number</attrdef> <attrdefs>None</attrdefs> </attr> <attr> <attrlabl>FRADDL</attrlabl> <attrdef>From Address Left : Address at the bottom from node on the left side of street</attrdef> <attrdefs>King County GIS Center</attrdefs> </attr> <attr> <attrlabl>TOADDL</attrlabl> <attrdef>To Address Left : Address at the to node on the left side of street</attrdef> <attrdefs>King County GIS Center</attrdefs> </attr> <attr> <attrlabl>FRADDR</attrlabl> <attrdef>From Address Right : Address at the from node on the right side of street</attrdef> <attrdefs>King County GIS Center</attrdefs> </attr> <attr> <attrlabl>TOADDR</attrlabl> <attrdef>To Address Right : Address at the to node on the right side of street</attrdef> <attrdefs>King County GIS Center</attrdefs> </attr> <attr> <attrlabl>ZIPL</attrlabl> <attrdef>Zip Code Left : The postal zip code on the left side of the street</attrdef> <attrdefs>King County GIS Center</attrdefs> </attr> <attr> <attrlabl>ZIPR</attrlabl> <attrdef>Zip Code Right : The postal zip code on right side of street</attrdef> <attrdefs>King County GIS Center</attrdefs> </attr> <attr> <attrlabl>KEYNAME</attrlabl> <attrdef>Key name : Link key identifier to street name table (kcsn.stname)</attrdef> <attrdefs>King County GIS Center</attrdefs> </attr> <attr> <attrlabl>FEATURE</attrlabl> <attrdef>Feature : Full street name (with space between street name & suffix direction)</attrdef> <attrdefs>King County GIS Center</attrdefs> <attrdomv> <udom>Text.</udom> </attrdomv> </attr> <attr> <attrlabl>FEATURE2</attrlabl> <attrdef>Feature 2 : Full street name (without space between street name & suffix direction)</attrdef> <attrdefs>King County GIS Center</attrdefs> <attrdomv> <udom>Text.</udom> </attrdomv> </attr> <attr> <attrlabl>ALIAS1</attrlabl> <attrdef>Full Second street name and type/suffix direction</attrdef> <attrdefs>King County GIS Center</attrdefs> <attrdomv> <udom>Text.</udom> </attrdomv> </attr> <attr> <attrlabl>ALIAS2</attrlabl> <attrdef>Full 3rd street name and type/suffix direction</attrdef> <attrdefs>King County GIS Center</attrdefs> <attrdomv> <udom>Text.</udom> </attrdomv> </attr> <attr> <attrlabl>KEYALIAS1</attrlabl> <attrdef>Key Alias 1 : 2nd link key identifier to street name table (kcsn.stname)</attrdef> <attrdefs>King County GIS Center</attrdefs> </attr> <attr> <attrlabl>KEYALIAS2</attrlabl> <attrdef>Key Alias 2 : 3rd link key identifier to street name table (kcsn.stname)</attrdef> <attrdefs>King County GIS Center</attrdefs> </attr> <attr> <attrlabl>PREFIX</attrlabl> <attrdef>Prefix of the street</attrdef> <attrdefs>King County GIS Center</attrdefs> <attrdomv> <udom>Text.</udom> </attrdomv> </attr> <attr> <attrlabl>STNAME</attrlabl> <attrdef>Name of the street</attrdef> <attrdefs>King County GIS Center</attrdefs> <attrdomv> <udom>Text.</udom> </attrdomv> </attr> <attr> <attrlabl>STYPE</attrlabl> <attrdef>Type of the street</attrdef> <attrdefs>King County GIS Center</attrdefs> <attrdomv> <udom>Text.</udom> </attrdomv> </attr> <attr> <attrlabl>SUFFIX</attrlabl> <attrdef>Suffix of the street</attrdef> <attrdefs>King County GIS Center</attrdefs> <attrdomv> <udom>Text.</udom> </attrdomv> </attr> <attr> <attrlabl>GRADE</attrlabl> <attrdef>Slope of the street</attrdef> <attrdefs>King County GIS Center</attrdefs> </attr> <attr> <attrlabl>BARRIER</attrlabl> <attrdef>Barrier : Trip planning defines streets where pedestrian crossings are not allowed</attrdef> <attrdefs>King County GIS Center</attrdefs> </attr> <attr> <attrlabl>TROLLEY</attrlabl> <attrdef>Number identify streets as trolley overhead</attrdef> <attrdefs>King County GIS Center</attrdefs> </attr> <attr> <attrlabl>HOV</attrlabl> <attrdef>Numbers Indicate the direction of HOV lanes</attrdef> <attrdefs>King County GIS Center</attrdefs> <attrdomv> <edom> <edomv>0</edomv> </edom> <edom> <edomv>2</edomv> <edomvd>South</edomvd> <edomvds>King County GIS Center</edomvds> </edom> <edom> <edomv>5</edomv> <edomvd>Both</edomvd> <edomvds>King County GIS Center</edomvds> </edom> </attrdomv> </attr> <attr> <attrlabl>FID</attrlabl> <attrdef>Internal feature number.</attrdef> <attrdefs>ESRI</attrdefs> <attrdomv> <udom>Sequential unique whole numbers that are automatically generated.</udom> </attrdomv> </attr> <attr> <attrlabl>SHAPE</attrlabl> <attrdef>Feature geometry.</attrdef> <attrdefs>ESRI</attrdefs> <attrdomv> <udom>Coordinates defining the features.</udom> </attrdomv> </attr> <attr> <attrlabl>SHAPE.LEN</attrlabl> <attrdef>Length of feature in coverage units.</attrdef> <attrdefs>ESRI</attrdefs> </attr> </detailed> </eainfo> <distinfo> <distrib> <cntinfo> <cntorgp> <cntorg>Harvard Geospatial Library</cntorg> </cntorgp> <cntaddr> <addrtype>mailing and physical address</addrtype> <address>Harvard University Library</address> <address>Office For Information Systems</address> <address>90 Mount Auburn Street</address> <city>Cambridge</city> <state>MA</state> <postal>02138</postal> <country>USA</country> </cntaddr> <cntvoice>617-495-2417</cntvoice> <cntfax>617-496-0440</cntfax> <cntemail>hgl_ref@hulmail.harvard.edu</cntemail> <hours>Monday - Friday, 9:00 am - 4:00 pm EST-USA</hours> </cntinfo> </distrib> <resdesc>Downloadable Data</resdesc> <distliab>Although this data is being distributed by Harvard University, no warranty expressed or implied is made by the University as to the accuracy of the data and related materials. The act of distribution shall not constitute any such warranty, and no responsibility is assumed by the University in the use of this data, or related materials.</distliab> <stdorder> <digform> <digtinfo> <formname>SHAPE</formname> <filedec>ZIP</filedec> </digtinfo> <digtopt> <onlinopt> <computer> <networka> <networkr>http://hgl.harvard.edu/</networkr> </networka> </computer> </onlinopt> </digtopt> </digform> <fees>None</fees> <ordering>Web-based distribution only</ordering> </stdorder> </distinfo> <metainfo> <metd>20070125</metd> <metc> <cntinfo> <cntorgp> <cntorg>Harvard Geospatial Library</cntorg> </cntorgp> <cntpos>Geospatial Resources Cataloger</cntpos> <cntaddr> <addrtype>mailing and physical address</addrtype> <address>Harvard University Library</address> <address>Office For Information Systems</address> <address>90 Mount Auburn Street</address> <city>Cambridge</city> <state>MA</state> <postal>02138</postal> <country>USA</country> </cntaddr> <cntvoice>617-495-2417</cntvoice> <cntfax>617-496-0440</cntfax> <cntemail>hgl_ref@hulmail.harvard.edu</cntemail> <hours>Monday - Friday, 9:00 am - 4:00 pm EST-USA</hours> </cntinfo> </metc> <metstdn>FGDC Content Standards for Digital Geospatial Metadata</metstdn> <metstdv>FGDC-STD-001-1998</metstdv> <mettc>local time</mettc> <metextns> <onlink>http://www.esri.com/metadata/esriprof80.html</onlink> <metprof>ESRI Metadata Profile</metprof> </metextns> </metainfo></metadata>"
|
28
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"LayerId": "HARVARD.SDE2.G1059_W57_1654_PF_SH1",
|
3
|
+
"Name": "G1059_W57_1654_PF_SH1",
|
4
|
+
"ExternalLayerId": "1188",
|
5
|
+
"Institution": "Harvard",
|
6
|
+
"Access": "Public",
|
7
|
+
"DataType": "Paper Map",
|
8
|
+
"Availability": "online",
|
9
|
+
"LayerDisplayName": "World Map, 1654 (Raster Image)",
|
10
|
+
"Publisher": "Harvard Map Collection, Harvard Library",
|
11
|
+
"ThemeKeywords": "Human settlements Landforms imageryBaseMapsEarthCover Transportation Bodies water Maps and towns of Villages Cities",
|
12
|
+
"PlaceKeywords": "regions Europe Africa Hemisphere South Earth Western Asia Northern America Eastern North Southern Australia Arctic",
|
13
|
+
"GeoReferenced": true,
|
14
|
+
"Abstract": "This layer is a georeferenced raster image of the historic paper map entitled: Nova totius terrarum orbis geographica ac hydrographica tabula, autore N.I. Piscator, from the Frederik de Wit's untitled Dutch Sea Atlas. It was published by F. de Wit in 1654. Scale [ca. 1:100,000,000]. Map in Latin.\n\nThe image inside the map neatline is georeferenced to the surface of the earth and fit to the World Geodetic System 1984 (WGS 84) coordinate system. All map collar and inset information is also available as part of the raster image, including any inset maps, profiles, statistical tables, directories, text, illustrations, index maps, legends, or other information associated with the principal map. \n\nThis map shows features such as drainage, cities and other human settlements, territorial boundaries, shoreline features, and more. Relief shown pictorially. \n\nThis layer is part of a selection of digitally scanned and georeferenced historic maps from the Harvard Map Collection. These maps typically portray both natural and manmade features. The selection represents a range of originators, ground condition dates, scales, and map purposes.",
|
15
|
+
"Location": "{\"wms\": [\"http://pelham.lib.harvard.edu:8080/geoserver/wms\"],\"wcs\": \"http://pelham.lib.harvard.edu:8080/geoserver/wcs\",\"download\": \"http://pelham.lib.harvard.edu:8080/HGL/HGLOpenDelivery\"}",
|
16
|
+
"MaxY": 90.0,
|
17
|
+
"MinY": -90.0,
|
18
|
+
"MaxX": 180.0,
|
19
|
+
"MinX": -180.0,
|
20
|
+
"CenterX": 0.0,
|
21
|
+
"CenterY": 0.0,
|
22
|
+
"HalfWidth": 180.0,
|
23
|
+
"HalfHeight": 90.0,
|
24
|
+
"Area": 64800.0,
|
25
|
+
"WorkspaceName": "cite",
|
26
|
+
"ContentDate": "1654-01-01T01:01:01Z",
|
27
|
+
"FgdcText": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE metadata SYSTEM \"http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd\"><metadata><idinfo><citation><citeinfo><origin>Harvard Map Collection, Harvard Library</origin><origin>Visscher, Claes Jansz., 1586 or 1587-1652.</origin><origin>Wit, Frederik de.</origin><pubdate>201404</pubdate><title>World Map, 1654 (Raster Image)</title><geoform>map</geoform><pubinfo><pubplace>Cambridge, Massachusetts</pubplace><publish>Harvard Map Collection, Harvard Library</publish></pubinfo><onlink>http://hgl.harvard.edu:8080/HGL/hgl.jsp?action=VCollandamp;VCollName=G1059_W57_1654_PF_SH1</onlink></citeinfo></citation><descript><abstract>This layer is a georeferenced raster image of the historic paper map entitled: Nova totius terrarum orbis geographica ac hydrographica tabula, autore N.I. Piscator, from the Frederik de Wit's untitled Dutch Sea Atlas. It was published by F. de Wit in 1654. Scale [ca. 1:100,000,000]. Map in Latin.The image inside the map neatline is georeferenced to the surface of the earth and fit to the World Geodetic System 1984 (WGS 84) coordinate system. All map collar and inset information is also available as part of the raster image, including any inset maps, profiles, statistical tables, directories, text, illustrations, index maps, legends, or other information associated with the principal map. This map shows features such as drainage, cities and other human settlements, territorial boundaries, shoreline features, and more. Relief shown pictorially. This layer is part of a selection of digitally scanned and georeferenced historic maps from the Harvard Map Collection. These maps typically portray both natural and manmade features. The selection represents a range of originators, ground condition dates, scales, and map purposes.</abstract><purpose>Historic paper maps can provide an excellent view of the changes that have occurred in the cultural and physical landscape. The wide range of information provided on these maps make them useful in the study of historic geography, and urban and rural land use change. As this map has been georeferenced, it can be used in a GIS as a source or background layer in conjunction with other GIS data.</purpose></descript><timeperd><timeinfo><sngdate><caldate>1654</caldate></sngdate></timeinfo><current>source map publication date</current></timeperd><status><progress>Complete</progress><update>None planned</update></status><spdom><bounding><westbc>-180</westbc><eastbc>180</eastbc><northbc>90</northbc><southbc>-90</southbc></bounding></spdom><keywords><theme><themekt>LCSH</themekt><themekey>Maps</themekey><themekey>Human settlements</themekey><themekey>Cities and towns</themekey><themekey>Villages</themekey><themekey>Bodies of water</themekey><themekey>Landforms</themekey><themekey>Transportation</themekey></theme><theme><themekt>ISO 19115 Topic Category</themekt><themekey>imageryBaseMapsEarthCover</themekey></theme><place><placekt>LCSH</placekt><placekey>Earth</placekey><placekey>Northern Hemisphere</placekey><placekey>Southern Hemisphere</placekey><placekey>Eastern Hemisphere</placekey><placekey>Western Hemisphere</placekey><placekey>Africa</placekey><placekey>Asia</placekey><placekey>Australia</placekey><placekey>Europe</placekey><placekey>North America</placekey><placekey>South America</placekey><placekey>Arctic regions</placekey></place></keywords><accconst>None</accconst><useconst>For educational, non-commercial use only.</useconst><ptcontac><cntinfo><cntorgp><cntorg>Harvard Map Collection, Harvard Library</cntorg></cntorgp><cntpos>Harvard Geospatial Library</cntpos><cntaddr><addrtype>mailing and physical address</addrtype><address>Harvard Map Collection</address><address>Pusey Library</address><address>Harvard University</address><city>Cambridge</city><state>MA</state><postal>02138</postal><country>USA</country></cntaddr><cntvoice>617-495-2417</cntvoice><cntfax>617-496-0440</cntfax><cntemail>hgl_ref@hulmail.harvard.edu</cntemail><hours>Monday - Friday, 9:00 am - 4:00 pm EST-USA</hours></cntinfo></ptcontac><native>ESRI ArcGIS 10.1</native></idinfo><dataqual><attracc><attraccr>The georeferenced raster is a faithfully reproduced digital image of the original source map. Some differences may be detected between the source graphic used and the raster image due to the RGB values assigned that particular color. The intent is to recreate those colors as near as possible.</attraccr></attracc><complete>Data completeness for raster digital image files reflect content of the source graphic. Features may have been eliminated or generalized on the source graphic due to scale and legibility constraints</complete><posacc><horizpa><horizpar>The horizontal positional accuracy of a raster image is approximately the same as the accuracy of the published source map. The lack of a greater accuracy is largely the result of the inaccuracies with the original measurements and possible distortions in the original paper map document. There may also be errors introduced during the digitizing and georeferencing process. In most cases, however, errors in the raster image are small compared with sources of error in the original map graphic. The RMS error for this map is 7.40181 Decimal Degrees. This value describes how consistent the transformation is between the different control points (links). The RMS error is only an assessment of the accuracy of the transformation.</horizpar></horizpa></posacc><lineage><srcinfo><srccite><citeinfo><origin>Visscher, Claes Jansz., 1586 or 1587-1652.</origin><origin>Wit, Frederik de.</origin><pubdate>1654</pubdate><title>Nova totius terrarum orbis geographica ac hydrographica tabula</title><geoform>map</geoform><pubinfo><pubplace>Amsterdam</pubplace><publish>F. de Wit</publish></pubinfo><othercit>1 map : hand col. ; 29 x 43 cm., on sheet 49 x 57 cm.</othercit><lworkcit><citeinfo><origin>Wit, Frederik de.</origin><origin>Visscher, Claes Jansz., 1586 or 1587-1652.</origin><origin>Blaeu, Willem Janszoon, 1571-1638.</origin><origin>Jacobsz, Anthonie. 1606?-1650.</origin><origin>Jacobsz, Theunis, 1632?-1679.</origin><pubdate>1654</pubdate><title>[Dutch sea atlas].</title><geoform>atlas</geoform><pubinfo><pubplace>Amsterdam</pubplace><publish>F. de Wit</publish></pubinfo><othercit>1 atlas : 15 col. maps ; 50 x 61 cm.</othercit></citeinfo></lworkcit></citeinfo></srccite><srcscale>100000000</srcscale><typesrc>paper</typesrc><srctime><timeinfo><sngdate><caldate>1654</caldate></sngdate></timeinfo><srccurr>publication date</srccurr></srctime><srccitea>Paper Map</srccitea><srccontr>Source map for raster image</srccontr></srcinfo><procstep><procdesc>Production of this raster image began with the scanning of the paper map on a high-resolution scanner (Colortrac Smart LF Gx+T42 scanner and SmartWorksPro version 1.1.1.5 scanning software) at 400dpi. Resulting images were rotated and cropped as needed using Adobe Photoshop CS5 Extended version 12.0. Images were saved as lossless JPEG2000 files.</procdesc><srcused>Paper Map</srcused><procdate>2012</procdate><srcprod>JP2 Map Image</srcprod><proccont><cntinfo><cntorgp><cntorg>Harvard Geospatial Library</cntorg></cntorgp><cntpos>GIS Technician</cntpos><cntaddr><addrtype>mailing and physical address</addrtype><address>Harvard University Information Technology</address><address>Library Technology Services</address><address>90 Mount Auburn Street</address><city>Cambridge</city><state>MA</state><postal>02138</postal><country>USA</country></cntaddr><cntvoice>617-495-2417</cntvoice><cntfax>617-496-0440</cntfax><cntemail>hgl_ref@hulmail.harvard.edu</cntemail><hours>Monday - Friday, 9:00 am - 4:00 pm EST-USA</hours></cntinfo></proccont></procstep><procstep><procdesc>Using ArcMap 10.1 software, the digital JPEG2000 image was georeferenced to common points located on digital vector shapefiles. For this image, the following vector shapefile was used as a base map for reference: ESRI Data and Maps 2010: World Country Boundaries (1:10,000,000). The base map data is displayed in the World Geodetic System 1984 (WGS 84) coordinate system, and the image was subsequently georeferenced to the same projection. A world file (.j2w) was automatically generated and saved in association with the digital image. See 'Horizontal Accuracy' for the RMS error of this image. Please note that the projection will need to be defined by the user in order to display the image with other projected data and the world file will need to be stored in the same root directory as the image.</procdesc><srcused>JP2 Map Image</srcused><procdate>2012</procdate><srcprod>Georeferenced Raster Data</srcprod><proccont><cntinfo><cntorgp><cntorg>Harvard Geospatial Library</cntorg></cntorgp><cntpos>GIS Technician</cntpos><cntaddr><addrtype>mailing and physical address</addrtype><address>Harvard University Information Technology</address><address>Library Technology Services</address><address>90 Mount Auburn Street</address><city>Cambridge</city><state>MA</state><postal>02138</postal><country>USA</country></cntaddr><cntvoice>617-495-2417</cntvoice><cntfax>617-496-0440</cntfax><cntemail>hgl_ref@hulmail.harvard.edu</cntemail><hours>Monday - Friday, 9:00 am - 4:00 pm EST-USA</hours></cntinfo></proccont></procstep></lineage></dataqual><spdoinfo><direct>Raster</direct><rastinfo><rasttype>Pixel</rasttype><rowcount>7606</rowcount><colcount>8936</colcount><vrtcount>1</vrtcount></rastinfo></spdoinfo><spref><horizsys><geograph><latres>0.000001</latres><longres>0.000001</longres><geogunit>Decimal degrees</geogunit></geograph><geodetic><horizdn>D_WGS_1984</horizdn><ellips>WGS_1984</ellips><semiaxis>6378137.000000</semiaxis><denflat>298.257224</denflat></geodetic></horizsys></spref><eainfo><overview><eaover>The indexes reference a color palette of RGB values from 0 through 255, representing the color value from the original paper sheet map. The colors on that sheet can represent relief, drainage, vegetation, populated places, cultural features, coastal hydrography, transportation features (roads, railroads, tracks and trails), spot elevations and boundaries. The colors are sometimes explained in a legend that is incorporated into the map inset or collar.</eaover><eadetcit>Not applicable.</eadetcit></overview></eainfo><distinfo><distrib><cntinfo><cntorgp><cntorg>Harvard University Information Technology</cntorg></cntorgp><cntpos>Harvard Geospatial Library</cntpos><cntaddr><addrtype>mailing and physical address</addrtype><address>Library Technology Services</address><address>90 Mount Auburn Street</address><city>Cambridge</city><state>MA</state><postal>02138</postal><country>USA</country></cntaddr><cntvoice>617-495-2417</cntvoice><cntfax>617-496-0440</cntfax><cntemail>hgl_ref@hulmail.harvard.edu</cntemail><hours>Monday - Friday, 9:00 am - 4:00 pm EST-USA</hours></cntinfo></distrib><resdesc>Downloadable Data</resdesc><distliab>Although this data set has been developed by Harvard University, no warranty expressed or implied is made by the University as to the accuracy of the data and related materials. The act of distribution shall not constitute any such warranty, and no responsibility is assumed by the University in the use of this data, or related materials.</distliab><stdorder><digform><digtinfo><formname>JPEG2000</formname><filedec>ZIP</filedec></digtinfo><digtopt><onlinopt><computer><networka><networkr>http://hgl.harvard.edu/</networkr></networka></computer></onlinopt></digtopt></digform><fees>None</fees></stdorder></distinfo><metainfo><metd>20140422</metd><metc><cntinfo><cntorgp><cntorg>Harvard Geospatial Library</cntorg></cntorgp><cntpos>Geospatial Metadata Librarian</cntpos><cntaddr><addrtype>mailing and physical address</addrtype><address>Harvard University Information Technology</address><address>Library Technology Services</address><address>90 Mount Auburn Street</address><city>Cambridge</city><state>MA</state><postal>02138</postal><country>USA</country></cntaddr><cntvoice>617-495-2417</cntvoice><cntfax>617-496-0440</cntfax><cntemail>hgl_ref@hulmail.harvard.edu</cntemail><hours>Monday - Friday, 9:00 am - 4:00 pm EST-USA</hours></cntinfo></metc><metstdn>FGDC Content Standards for Digital Geospatial Metadata</metstdn><metstdv>FGDC-STD-001-1998</metstdv><mettc>local time</mettc></metainfo></metadata>"
|
28
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"LayerId": "Tufts.WorldShorelineArea95",
|
3
|
+
"Name": "GISPORTAL.GISOWNER01.WORLDSHORELINEAREA95",
|
4
|
+
"CollectionId": "geoserver",
|
5
|
+
"Institution": "Tufts",
|
6
|
+
"Access": "Public",
|
7
|
+
"DataType": "Polygon",
|
8
|
+
"Availability": "online",
|
9
|
+
"LayerDisplayName": "Vector Shoreline Area World 1995",
|
10
|
+
"Publisher": "United States. National Imagery and Mapping Agency",
|
11
|
+
"Originator": "United States. National Imagery and Mapping Agency",
|
12
|
+
"OriginatorSort": "United States. National Imagery and Mapping Agency",
|
13
|
+
"ThemeKeywords": "Shorelines polygon boundaries oceans Boundaries",
|
14
|
+
"PlaceKeywords": "Polar Europe Africa Hemisphere South Regions World Western Asia America Northern Eastern North Southern Australia",
|
15
|
+
"PlaceKeywordsSynonyms": "Polar Europe Africa Hemisphere South Regions World Western Asia America Northern Eastern North Southern Australia",
|
16
|
+
"GeoReferenced": true,
|
17
|
+
"Abstract": "This polygon dataset represents coastlines, countries, and oceans. This data set was originally created for mission planning for military operations. Other potential applications include cartographic representation and boundary determination. The original World Vector Shoreline (WVS) was a digital data file containing the shorelines, international boundaries, and country names of the world. WVS data were processed into NGAs Vector Product Format in 1995, resulting in the highest resolution demarcation of coastline globally available, the World Vector Shoreline Plus.",
|
18
|
+
"Location": "{\"wfs\":\"http://geoserver01.uit.tufts.edu/wfs\",\"wms\":[\"http://geoserver01.uit.tufts.edu/wms\"]}",
|
19
|
+
"MaxY": 90,
|
20
|
+
"MinY": -90,
|
21
|
+
"MaxX": 180,
|
22
|
+
"MinX": -180,
|
23
|
+
"CenterX": 0,
|
24
|
+
"CenterY": 0,
|
25
|
+
"HalfWidth": 180,
|
26
|
+
"HalfHeight": 90,
|
27
|
+
"Area": 64800,
|
28
|
+
"WorkspaceName": "sde",
|
29
|
+
"ContentDate": "1995-01-01T01:01:01Z",
|
30
|
+
"FgdcText": "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" standalone=\"no\"?>\n<metadata>\n\t<idinfo>\n\t\t<citation>\n\t\t\t<citeinfo>\n\t\t\t\t<origin>United States. National Imagery and Mapping Agency</origin>\n\t\t\t\t<pubdate>1995</pubdate>\n\t\t\t\t<title>Vector Shoreline Area World 1995</title>\n\t\t\t\t<geoform>vector digital data</geoform>\n\t\t\t\t<onlink>http://shoreline.noaa.gov/data/datasheets/wvs.html</onlink>\n\t\t\t\t<lworkcit>\n\t\t\t\t\t<citeinfo>\n\t\t\t\t\t\t<origin>United States. National Imagery and Mapping Agency</origin>\n\t\t\t\t\t\t<pubdate>1995</pubdate>\n\t\t\t\t\t\t<title>World Vector Shoreline Dataset</title>\n\t\t\t\t\t\t<pubinfo>\n\t\t\t\t\t\t\t<pubplace>Charleston (S.C.)</pubplace>\n\t\t\t\t\t\t\t<publish>United States. National Imagery and Mapping Agency</publish>\n\t\t\t\t\t\t</pubinfo>\n\t\t\t\t\t\t<onlink>http://shoreline.noaa.gov/data/datasheets/wvs.html</onlink>\n\t\t\t\t\t</citeinfo>\n\t\t\t\t</lworkcit>\n\t\t\t\t<ftname Sync=\"TRUE\">WorldShorelineArea95</ftname>\n</citeinfo>\n\t\t</citation>\n\t\t<descript>\n\t\t\t<abstract>This polygon dataset represents coastlines, countries, and oceans. This data set was originally created for mission planning for military operations. Other potential applications include cartographic representation and boundary determination. The original World Vector Shoreline (WVS) was a digital data file containing the shorelines, international boundaries, and country names of the world. WVS data were processed into NGAs Vector Product Format in 1995, resulting in the highest resolution demarcation of coastline globally available, the World Vector Shoreline Plus.</abstract>\n\t\t\t<purpose>This dataset is intended for researchers, students, and policy makers for reference and mapping purposes, and may be used for basic applications such as viewing, querying, and map output production, or to provide a basemap to support graphical overlays and analysis with other spatial data.</purpose>\n\t\t\t<langdata Sync=\"TRUE\">en</langdata>\n</descript>\n\t\t<timeperd>\n\t\t\t<timeinfo>\n\t\t\t\t<sngdate>\n\t\t\t\t\t<caldate>1995</caldate>\n\t\t\t\t</sngdate>\n\t\t\t</timeinfo>\n\t\t\t<current>publication date</current>\n\t\t</timeperd>\n\t\t<status>\n\t\t\t<progress>Complete</progress>\n\t\t\t<update>As needed</update>\n\t\t</status>\n\t\t<spdom>\n\t\t\t<bounding>\n\t\t\t\t<westbc>\n-180.000000</westbc>\n\t\t\t\t<eastbc>\n180.000000</eastbc>\n\t\t\t\t<northbc>\n90.000000</northbc>\n\t\t\t\t<southbc>\n-90.000000</southbc>\n\t\t\t</bounding>\n\t\t\t<lboundng>\n<leftbc Sync=\"TRUE\">-180.000000</leftbc>\n<rightbc Sync=\"TRUE\">180.000000</rightbc>\n<bottombc Sync=\"TRUE\">-90.000000</bottombc>\n<topbc Sync=\"TRUE\">90.000000</topbc>\n</lboundng>\n</spdom>\n\t\t<keywords>\n\t\t\t<theme>\n\t\t\t\t<themekt>FGDC</themekt>\n\t\t\t\t<themekey>polygon</themekey>\n\t\t\t</theme>\n\t\t\t<theme>\n\t\t\t\t<themekt>ISO 19115 Topic Category</themekt>\n\t\t\t\t<themekey>oceans</themekey>\n\t\t\t\t<themekey>boundaries</themekey>\n\t\t\t</theme>\n\t\t\t<theme>\n\t\t\t\t<themekt>LCSH</themekt>\n\t\t\t\t<themekey>Shorelines</themekey>\n\t\t\t\t<themekey>Boundaries</themekey>\n\t\t\t</theme>\n\t\t\t<place>\n\t\t\t\t<placekt>LCNH</placekt>\n\t\t\t\t<placekey>Northern Hemisphere</placekey>\n\t\t\t\t<placekey>Western Hemisphere</placekey>\n\t\t\t\t<placekey>Eastern Hemisphere</placekey>\n\t\t\t\t<placekey>Southern Hemisphere</placekey>\n\t\t\t\t<placekey>Africa</placekey>\n\t\t\t\t<placekey>South America</placekey>\n\t\t\t\t<placekey>North America</placekey>\n\t\t\t\t<placekey>Europe</placekey>\n\t\t\t\t<placekey>Asia</placekey>\n\t\t\t\t<placekey>Australia</placekey>\n\t\t\t\t<placekey>Polar Regions</placekey>\n\t\t\t</place>\n\t\t\t<place>\n\t\t\t\t<placekt>Getty</placekt>\n\t\t\t\t<placekey>World</placekey>\n\t\t\t</place>\n\t\t</keywords>\n\t\t<accconst>Unrestricted Access Online</accconst>\n\t\t<useconst>For educational noncommercial use only.</useconst>\n\t\t<ptcontac>\n\t\t\t<cntinfo>\n\t\t\t\t<cntorgp>\n\t\t\t\t\t<cntorg>NOAA Coastal Services Center</cntorg>\n\t\t\t\t</cntorgp>\n\t\t\t\t<cntaddr>\n\t\t\t\t\t<addrtype>mailing and physical address</addrtype>\n\t\t\t\t\t<address>NOAA Coastal Services Center</address>\n\t\t\t\t\t<address>2234 South Hobson Avenue</address>\n\t\t\t\t\t<city>Charleston</city>\n\t\t\t\t\t<state>South Carolina</state>\n\t\t\t\t\t<postal>29405-2413</postal>\n\t\t\t\t\t<country>USA</country>\n\t\t\t\t</cntaddr>\n\t\t\t\t<cntvoice>843-740-1200</cntvoice>\n\t\t\t\t<cntfax>843-740-1224</cntfax>\n\t\t\t\t<cntemail>csc@scs.noaa.gov</cntemail>\n\t\t\t</cntinfo>\n\t\t</ptcontac>\n\t\t<native>Microsoft Windows Vista Version 6.1 (Build 7601) Service Pack 1; ESRI ArcCatalog 9.3.1.4000</native>\n\t\t<natvform Sync=\"TRUE\">Shapefile</natvform>\n</idinfo>\n\t<dataqual>\n\t\t<lineage>\n\t\t\t<srcinfo>\n\t\t\t\t<srcscale>1:250,000</srcscale>\n\t\t\t</srcinfo>\n\t\t\t<procstep>\n\t\t\t\t<procdesc>Metadata imported.</procdesc>\n\t\t\t\t<srcused>C:\\Users\\nsusma01\\AppData\\Local\\Temp\\xmlEFBB.tmp</srcused>\n\t\t\t\t<procdate>20130212</procdate>\n\t\t\t\t<proctime>11073200</proctime>\n\t\t\t</procstep>\n\t\t\t<procstep>\n\t\t\t\t<procdesc>Metadata imported.</procdesc>\n\t\t\t\t<srcused>S:\\GIS_Center_Projects\\EnterpriseGIS\\Layers\\Starter Metadata Template -Tufts - UTF-8.xml</srcused>\n\t\t\t\t<procdate>20130308</procdate>\n\t\t\t\t<proctime>13413000</proctime>\n\t\t\t</procstep>\n\t\t\t<procstep>\n\t\t\t\t<procdesc>Name changed from cocarea to WorldShorelineArea95.</procdesc>\n\t\t\t\t<procdate>20130319</procdate>\n\t\t\t\t<proccont>\n\t\t\t\t\t<cntinfo>\n\t\t\t\t\t\t<cntorgp>\n\t\t\t\t\t\t\t<cntorg>Tufts University Geographic Information Systems Center</cntorg>\n\t\t\t\t\t\t</cntorgp>\n\t\t\t\t\t\t<cntpos>GIS Data Technician</cntpos>\n\t\t\t\t\t\t<cntaddr>\n\t\t\t\t\t\t\t<addrtype>mailing and physical address</addrtype>\n\t\t\t\t\t\t\t<address>Academic Technology</address>\n\t\t\t\t\t\t\t<address>16 Dearborn Ave</address>\n\t\t\t\t\t\t\t<city>Somerville</city>\n\t\t\t\t\t\t\t<state>MA</state>\n\t\t\t\t\t\t\t<postal>02144</postal>\n\t\t\t\t\t\t\t<country>USA</country>\n\t\t\t\t\t\t</cntaddr>\n\t\t\t\t\t\t<cntvoice>617-627-3380</cntvoice>\n\t\t\t\t\t\t<cntemail>gis-support@elist.tufts.edu</cntemail>\n\t\t\t\t\t\t<hours>Monday-Friday, 9:00 AM-5:00 PM, EST-USA</hours>\n\t\t\t\t\t</cntinfo>\n\t\t\t\t</proccont>\n\t\t\t</procstep>\n\t\t\t<procstep>\n\t\t\t\t<procdesc>Dataset copied.</procdesc>\n\t\t\t\t<srcused>\\\\UITATECHGISFL3\\C$\\Users\\nsusma01\\Desktop\\WVS.gdb</srcused>\n\t\t\t\t<procdate>20130319</procdate>\n\t\t\t\t<proctime>12470100</proctime>\n\t\t\t</procstep>\n\t\t</lineage>\n\t</dataqual>\n\t<spdoinfo>\n\t\t<direct>Vector</direct>\n\t\t<ptvctinf>\n\t\t\t<sdtsterm Name=\"WorldShorelineArea95\">\n\t\t\t\t<sdtstype>G-polygon</sdtstype>\n\t\t\t\t<ptvctcnt>193284</ptvctcnt>\n\t\t\t</sdtsterm>\n\t\t\t<esriterm Name=\"WorldShorelineArea95\">\n<efeatyp Sync=\"TRUE\">Simple</efeatyp>\n<efeageom Sync=\"TRUE\">Polygon</efeageom>\n<esritopo Sync=\"TRUE\">FALSE</esritopo>\n<efeacnt Sync=\"TRUE\">193284</efeacnt>\n<spindex Sync=\"TRUE\">TRUE</spindex>\n<linrefer Sync=\"TRUE\">FALSE</linrefer>\n</esriterm>\n</ptvctinf>\n\t</spdoinfo>\n\t<spref>\n\t\t<horizsys>\n\t\t\t<geograph>\n\t\t\t\t<latres>0.000000</latres>\n\t\t\t\t<longres>0.000000</longres>\n\t\t\t\t<geogunit>Decimal degrees</geogunit>\n\t\t\t</geograph>\n\t\t\t<geodetic>\n\t\t\t\t<horizdn>D_WGS_1984</horizdn>\n\t\t\t\t<ellips>WGS_1984</ellips>\n\t\t\t\t<semiaxis>6378137.000000</semiaxis>\n\t\t\t\t<denflat>298.257224</denflat>\n\t\t\t</geodetic>\n\t\t\t<cordsysn>\n<geogcsn Sync=\"TRUE\">GCS_WGS_1984</geogcsn>\n</cordsysn>\n</horizsys>\n\t</spref>\n\t<eainfo>\n\t\t<detailed Name=\"WorldShorelineArea95\">\n\t\t\t<enttyp>\n\t\t\t\t<enttypl>\nWorldShorelineArea95</enttypl>\n\t\t\t\t<enttypt Sync=\"TRUE\">Feature Class</enttypt>\n<enttypc Sync=\"TRUE\">193284</enttypc>\n</enttyp>\n\t\t\t<attr>\n\t\t\t\t<attrlabl>FID</attrlabl>\n\t\t\t\t<attrdef>Internal feature number.</attrdef>\n\t\t\t\t<attrdefs>ESRI</attrdefs>\n\t\t\t\t<attrdomv>\n\t\t\t\t\t<udom>Sequential unique whole numbers that are automatically generated.</udom>\n\t\t\t\t</attrdomv>\n\t\t\t\t<attalias Sync=\"TRUE\">FID</attalias>\n<attrtype Sync=\"TRUE\">OID</attrtype>\n<attwidth Sync=\"TRUE\">4</attwidth>\n<atprecis Sync=\"TRUE\">0</atprecis>\n<attscale Sync=\"TRUE\">0</attscale>\n</attr>\n\t\t\t<attr>\n\t\t\t\t<attrlabl>Shape</attrlabl>\n\t\t\t\t<attrdef>Feature geometry.</attrdef>\n\t\t\t\t<attrdefs>Environmental Systems Research Institute (Redlands, Calif.)</attrdefs>\n\t\t\t\t<attrdomv>\n\t\t\t\t\t<udom>Coordinates defining the features.</udom>\n\t\t\t\t</attrdomv>\n\t\t\t\t<attalias Sync=\"TRUE\">Shape</attalias>\n<attrtype Sync=\"TRUE\">Geometry</attrtype>\n<attwidth Sync=\"TRUE\">0</attwidth>\n<atprecis Sync=\"TRUE\">0</atprecis>\n<attscale Sync=\"TRUE\">0</attscale>\n</attr>\n\t\t\t<attr>\n\t\t\t\t<attrlabl>OBJECTID_1</attrlabl>\n\t\t\t\t<attrdef>Unique identifier</attrdef>\n\t\t\t\t<attrdefs>Tufts University. Geographic Information Systems Center</attrdefs>\n\t\t\t\t<attalias Sync=\"TRUE\">OBJECTID_1</attalias>\n<attrtype Sync=\"TRUE\">Number</attrtype>\n<attwidth Sync=\"TRUE\">9</attwidth>\n</attr>\n\t\t\t<attr>\n\t\t\t\t<attrlabl>fac_id</attrlabl>\n\t\t\t\t<attrdef>Unknown attribute</attrdef>\n\t\t\t\t<attrdefs>Tufts University. Geographic Information Systems Center</attrdefs>\n\t\t\t\t<attalias Sync=\"TRUE\">fac_id</attalias>\n<attrtype Sync=\"TRUE\">Number</attrtype>\n<attwidth Sync=\"TRUE\">9</attwidth>\n</attr>\n\t\t\t<attr>\n\t\t\t\t<attrlabl>facc</attrlabl>\n\t\t\t\t<attrdef>Feature and attribute coding catalog identifier</attrdef>\n\t\t\t\t<attrdefs>Tufts University. Geographic Information Systems Center</attrdefs>\n\t\t\t\t<attrdomv>\n\t\t\t\t\t<edom>\n\t\t\t\t\t\t<edomv>BA040</edomv>\n\t\t\t\t\t\t<edomvd>Water (except inland)</edomvd>\n\t\t\t\t\t\t<edomvds>Tufts University. Geographic Information Systems Center</edomvds>\n\t\t\t\t\t</edom>\n\t\t\t\t</attrdomv>\n\t\t\t\t<attrdomv>\n\t\t\t\t\t<edom>\n\t\t\t\t\t\t<edomv>FA001</edomv>\n\t\t\t\t\t\t<edomvd>Administrative area</edomvd>\n\t\t\t\t\t\t<edomvds>Tufts University. Geographic Information Systems Center</edomvds>\n\t\t\t\t\t</edom>\n\t\t\t\t</attrdomv>\n\t\t\t\t<attalias Sync=\"TRUE\">facc</attalias>\n<attrtype Sync=\"TRUE\">String</attrtype>\n<attwidth Sync=\"TRUE\">5</attwidth>\n</attr>\n\t\t\t<attr>\n\t\t\t\t<attrlabl>facc_descr</attrlabl>\n\t\t\t\t<attalias Sync=\"TRUE\">facc_descr</attalias>\n<attrtype Sync=\"TRUE\">String</attrtype>\n<attwidth Sync=\"TRUE\">254</attwidth>\n</attr>\n\t\t\t<attr>\n\t\t\t\t<attrlabl>nam</attrlabl>\n\t\t\t\t<attrdef>Abbreviated name of the country</attrdef>\n\t\t\t\t<attrdefs>Tufts University. Geographic Information Systems Center</attrdefs>\n\t\t\t\t<attalias Sync=\"TRUE\">nam</attalias>\n<attrtype Sync=\"TRUE\">String</attrtype>\n<attwidth Sync=\"TRUE\">2</attwidth>\n</attr>\n\t\t\t<attr>\n\t\t\t\t<attrlabl>nam_descri</attrlabl>\n\t\t\t\t<attalias Sync=\"TRUE\">nam_descri</attalias>\n<attrtype Sync=\"TRUE\">String</attrtype>\n<attwidth Sync=\"TRUE\">254</attwidth>\n</attr>\n\t\t\t<attr>\n\t\t\t\t<attrlabl>tile_id</attrlabl>\n\t\t\t\t<attrdef>Unique identifier of the tile</attrdef>\n\t\t\t\t<attrdefs>Tufts University. Geographic Information Systems Center</attrdefs>\n\t\t\t\t<attalias Sync=\"TRUE\">tile_id</attalias>\n<attrtype Sync=\"TRUE\">Number</attrtype>\n<attwidth Sync=\"TRUE\">4</attwidth>\n</attr>\n\t\t\t<attr>\n\t\t\t\t<attrlabl>Shape_Leng</attrlabl>\n\t\t\t\t<attalias Sync=\"TRUE\">Shape_Leng</attalias>\n<attrtype Sync=\"TRUE\">Float</attrtype>\n<attwidth Sync=\"TRUE\">19</attwidth>\n<atnumdec Sync=\"TRUE\">11</atnumdec>\n</attr>\n\t\t\t<attr>\n\t\t\t\t<attrlabl>Shape_Area</attrlabl>\n\t\t\t\t<attrdef>Area of feature in internal units squared.</attrdef>\n\t\t\t\t<attrdefs>Environmental Systems Research Institute (Redlands, Calif.)</attrdefs>\n\t\t\t\t<attrdomv>\n\t\t\t\t\t<udom>Positive real numbers that are automatically generated.</udom>\n\t\t\t\t</attrdomv>\n\t\t\t\t<attalias Sync=\"TRUE\">Shape_Area</attalias>\n<attrtype Sync=\"TRUE\">Float</attrtype>\n<attwidth Sync=\"TRUE\">19</attwidth>\n<atnumdec Sync=\"TRUE\">11</atnumdec>\n</attr>\n\t\t</detailed>\n\t</eainfo>\n\t<distinfo>\n\t\t<distrib>\n\t\t\t<cntinfo>\n\t\t\t\t<cntorgp>\n\t\t\t\t\t<cntorg>Tufts University GIS Center</cntorg>\n\t\t\t\t</cntorgp>\n\t\t\t\t<cntpos>GIS Data Analyst</cntpos>\n\t\t\t\t<cntaddr>\n\t\t\t\t\t<addrtype>mailing and physical address</addrtype>\n\t\t\t\t\t<address>Academic Technology</address>\n\t\t\t\t\t<address>16 Dearborn Ave</address>\n\t\t\t\t\t<city>Somerville</city>\n\t\t\t\t\t<state>MA</state>\n\t\t\t\t\t<postal>02144</postal>\n\t\t\t\t\t<country>USA</country>\n\t\t\t\t</cntaddr>\n\t\t\t\t<cntvoice>617-627-3380</cntvoice>\n\t\t\t\t<cntemail>gis-support@elist.tufts.edu</cntemail>\n\t\t\t\t<hours>Monday-Friday, 9:00 AM-5:00 PM, EST-USA</hours>\n\t\t\t</cntinfo>\n\t\t</distrib>\n\t\t<resdesc>Online Dataset</resdesc>\n\t\t<stdorder>\n\t\t\t<digform>\n\t\t\t\t<digtinfo>\n\t\t\t\t\t<transize>178.944</transize>\n\t\t\t\t\t<dssize Sync=\"TRUE\">178.944</dssize>\n</digtinfo>\n\t\t\t</digform>\n\t\t</stdorder>\n\t</distinfo>\n\t<metainfo>\n\t\t<metd>20130416</metd>\n\t\t<metc>\n\t\t\t<cntinfo>\n\t\t\t\t<cntorgp>\n\t\t\t\t\t<cntorg>Tufts University GIS Center</cntorg>\n\t\t\t\t\t<cntper>REQUIRED: The person responsible for the metadata information.</cntper>\n\t\t\t\t</cntorgp>\n\t\t\t\t<cntpos>GIS Data Analyst</cntpos>\n\t\t\t\t<cntaddr>\n\t\t\t\t\t<addrtype>mailing and physical address</addrtype>\n\t\t\t\t\t<address>Academic Technology</address>\n\t\t\t\t\t<address>16 Dearborn Ave</address>\n\t\t\t\t\t<city>Somerville</city>\n\t\t\t\t\t<state>MA</state>\n\t\t\t\t\t<postal>02144</postal>\n\t\t\t\t\t<country>USA</country>\n\t\t\t\t</cntaddr>\n\t\t\t\t<cntvoice>617-627-3380</cntvoice>\n\t\t\t\t<cntemail>gis-support@elist.tufts.edu</cntemail>\n\t\t\t\t<hours>Monday-Friday, 9:00 AM-5:00 PM, EST-USA</hours>\n\t\t\t</cntinfo>\n\t\t</metc>\n\t\t<metstdn>FGDC Content Standards for Digital Geospatial Metadata</metstdn>\n\t\t<metstdv>FGDC-STD-001-1998</metstdv>\n\t\t<mettc>local time</mettc>\n\t\t<metextns>\n\t\t\t<onlink>http://www.esri.com/metadata/esriprof80.html</onlink>\n\t\t\t<metprof>ESRI Metadata Profile</metprof>\n\t\t</metextns>\n\t\t<metextns>\n\t\t\t<onlink>http://www.esri.com/metadata/esriprof80.html</onlink>\n\t\t\t<metprof>ESRI Metadata Profile</metprof>\n\t\t</metextns>\n\t\t<langmeta Sync=\"TRUE\">en</langmeta>\n<metextns>\n<onlink Sync=\"TRUE\">http://www.esri.com/metadata/esriprof80.html</onlink>\n<metprof Sync=\"TRUE\">ESRI Metadata Profile</metprof>\n</metextns>\n</metainfo>\n\t<dataIdInfo>\n<envirDesc Sync=\"TRUE\">Microsoft Windows Vista Version 6.1 (Build 7601) Service Pack 1; ESRI ArcCatalog 9.3.1.4000</envirDesc>\n<dataLang>\n<languageCode Sync=\"TRUE\" value=\"en\"/>\n</dataLang>\n<idCitation>\n<resTitle Sync=\"TRUE\">WorldShorelineArea95</resTitle>\n<presForm>\n<PresFormCd Sync=\"TRUE\" value=\"005\"/>\n</presForm>\n</idCitation>\n<spatRpType>\n<SpatRepTypCd Sync=\"TRUE\" value=\"001\"/>\n</spatRpType>\n<dataExt>\n<geoEle>\n<GeoBndBox esriExtentType=\"native\">\n<westBL Sync=\"TRUE\">-180</westBL>\n<eastBL Sync=\"TRUE\">180</eastBL>\n<northBL Sync=\"TRUE\">90</northBL>\n<southBL Sync=\"TRUE\">-90</southBL>\n<exTypeCode Sync=\"TRUE\">1</exTypeCode>\n</GeoBndBox>\n</geoEle>\n</dataExt>\n<geoBox esriExtentType=\"decdegrees\">\n<westBL Sync=\"TRUE\">-180</westBL>\n<eastBL Sync=\"TRUE\">180</eastBL>\n<northBL Sync=\"TRUE\">90</northBL>\n<southBL Sync=\"TRUE\">-90</southBL>\n<exTypeCode Sync=\"TRUE\">1</exTypeCode>\n</geoBox>\n</dataIdInfo>\n<mdLang>\n<languageCode Sync=\"TRUE\" value=\"en\"/>\n</mdLang>\n<mdStanName Sync=\"TRUE\">ISO 19115 Geographic Information - Metadata</mdStanName>\n<mdStanVer Sync=\"TRUE\">DIS_ESRI1.0</mdStanVer>\n<mdChar>\n<CharSetCd Sync=\"TRUE\" value=\"004\"/>\n</mdChar>\n<mdHrLv>\n<ScopeCd Sync=\"TRUE\" value=\"005\"/>\n</mdHrLv>\n<mdHrLvName Sync=\"TRUE\">dataset</mdHrLvName>\n<distInfo>\n<distributor>\n<distorTran>\n<onLineSrc>\n<orDesc Sync=\"TRUE\">002</orDesc>\n<linkage Sync=\"TRUE\">file://\\\\rstore2\\gisprojects$\\GIS_Center_Projects\\EnterpriseGIS\\Layers\\WVS\\WorldShorelineArea95.shp</linkage>\n<protocol Sync=\"TRUE\">Local Area Network</protocol>\n</onLineSrc>\n<transSize Sync=\"TRUE\">178.944</transSize>\n</distorTran>\n<distorFormat>\n<formatName Sync=\"TRUE\">Shapefile</formatName>\n</distorFormat>\n</distributor>\n</distInfo>\n<refSysInfo>\n<RefSystem>\n<refSysID>\n<identCode Sync=\"TRUE\">GCS_WGS_1984</identCode>\n</refSysID>\n</RefSystem>\n</refSysInfo>\n<spatRepInfo>\n<VectSpatRep>\n<topLvl>\n<TopoLevCd Sync=\"TRUE\" value=\"001\"/>\n</topLvl>\n<geometObjs Name=\"WorldShorelineArea95\">\n<geoObjTyp>\n<GeoObjTypCd Sync=\"TRUE\" value=\"001\"/>\n</geoObjTyp>\n<geoObjCnt Sync=\"TRUE\">193284</geoObjCnt>\n</geometObjs>\n</VectSpatRep>\n</spatRepInfo>\n<Esri>\n<SyncDate>20131115</SyncDate>\n<SyncTime>13264400</SyncTime>\n<ModDate>20131115</ModDate>\n<ModTime>13264400</ModTime>\n</Esri>\n<mdDateSt Sync=\"TRUE\">20131115</mdDateSt>\n</metadata>\n"
|
31
|
+
}
|
data/spec/fixtures/json_docs.rb
CHANGED
@@ -22,4 +22,20 @@ module JsonDocs
|
|
22
22
|
def ckan_metadata
|
23
23
|
File.read(File.join(File.dirname(__FILE__), './docs/ckan.json'))
|
24
24
|
end
|
25
|
+
|
26
|
+
def ogp_harvard_raster
|
27
|
+
File.read(File.join(File.dirname(__FILE__), './docs/ogp_harvard_raster.json'))
|
28
|
+
end
|
29
|
+
|
30
|
+
def ogp_harvard_line
|
31
|
+
File.read(File.join(File.dirname(__FILE__), './docs/ogp_harvard_line.json'))
|
32
|
+
end
|
33
|
+
|
34
|
+
def ogp_tufts_vector
|
35
|
+
File.read(File.join(File.dirname(__FILE__), './docs/ogp_tufts_vector.json'))
|
36
|
+
end
|
37
|
+
|
38
|
+
def geoblacklight_pre_v1
|
39
|
+
File.read(File.join(File.dirname(__FILE__), './docs/geoblacklight_pre_v1.json'))
|
40
|
+
end
|
25
41
|
end
|
@@ -19,4 +19,10 @@ RSpec.describe GeoCombine::Formatting do
|
|
19
19
|
expect(subject.sanitize_and_remove_lines(dirty)).to_not match(/\n/)
|
20
20
|
end
|
21
21
|
end
|
22
|
+
describe '#sluggify' do
|
23
|
+
let(:preslug) { 'HARVARD...Co_0l' }
|
24
|
+
it 'handles multiple . and _ and uppercase' do
|
25
|
+
expect(subject.sluggify(preslug)).to eq 'harvard-co-0l'
|
26
|
+
end
|
27
|
+
end
|
22
28
|
end
|
@@ -4,14 +4,15 @@ RSpec.describe GeoCombine::Geoblacklight do
|
|
4
4
|
include XmlDocs
|
5
5
|
include JsonDocs
|
6
6
|
include GeoCombine::Exceptions
|
7
|
-
let(:full_geobl) {
|
8
|
-
let(:basic_geobl) {
|
7
|
+
let(:full_geobl) { described_class.new(full_geoblacklight) }
|
8
|
+
let(:basic_geobl) { described_class.new(basic_geoblacklight) }
|
9
|
+
let(:pre_v1_geobl) { described_class.new(geoblacklight_pre_v1) }
|
9
10
|
describe '#initialize' do
|
10
11
|
it 'parses metadata argument JSON to Hash' do
|
11
12
|
expect(basic_geobl.instance_variable_get(:@metadata)).to be_an Hash
|
12
13
|
end
|
13
14
|
describe 'merges fields argument into metadata' do
|
14
|
-
let(:basic_geobl) {
|
15
|
+
let(:basic_geobl) { described_class.new(basic_geoblacklight, 'dc_identifier_s' => 'new one', "extra_field" => true)}
|
15
16
|
it 'overwrites existing metadata fields' do
|
16
17
|
expect(basic_geobl.metadata['dc_identifier_s']).to eq 'new one'
|
17
18
|
end
|
@@ -32,7 +33,7 @@ RSpec.describe GeoCombine::Geoblacklight do
|
|
32
33
|
expect(valid_json?(basic_geobl.to_json)).to be_truthy
|
33
34
|
end
|
34
35
|
end
|
35
|
-
let(:enhanced_geobl) {
|
36
|
+
let(:enhanced_geobl) { described_class.new(basic_geoblacklight, 'layer_geom_type_s' => 'esriGeometryPolygon') }
|
36
37
|
before { enhanced_geobl.enhance_metadata }
|
37
38
|
describe '#enhance_metadata' do
|
38
39
|
it 'enhances the dc_subject_sm field' do
|
@@ -161,4 +162,24 @@ RSpec.describe GeoCombine::Geoblacklight do
|
|
161
162
|
it { expect { basic_geobl.spatial_validate! }.to raise_error GeoCombine::Exceptions::InvalidGeometry }
|
162
163
|
end
|
163
164
|
end
|
165
|
+
describe 'upgrade_to_v1' do
|
166
|
+
before do
|
167
|
+
expect(pre_v1_geobl).to receive(:upgrade_to_v1).and_call_original
|
168
|
+
pre_v1_geobl.enhance_metadata
|
169
|
+
end
|
170
|
+
|
171
|
+
it 'tags with version' do
|
172
|
+
expect(pre_v1_geobl.metadata).to include('geoblacklight_version' => '1.0')
|
173
|
+
end
|
174
|
+
|
175
|
+
it 'properly deprecates fields' do
|
176
|
+
described_class::DEPRECATED_KEYS_V1.each do |k|
|
177
|
+
expect(pre_v1_geobl.metadata.keys).not_to include(k.to_s)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
it 'normalizes slugs' do
|
182
|
+
expect(pre_v1_geobl.metadata).to include('layer_slug_s' => 'sde-columbia-esri-arcatlas-snow-ln')
|
183
|
+
end
|
184
|
+
end
|
164
185
|
end
|
@@ -0,0 +1,163 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe GeoCombine::OGP do
|
4
|
+
include JsonDocs
|
5
|
+
|
6
|
+
subject(:ogp) { GeoCombine::OGP.new(ogp_harvard_raster) }
|
7
|
+
let(:ogp_tufts) { GeoCombine::OGP.new(ogp_tufts_vector) }
|
8
|
+
let(:ogp_line) { GeoCombine::OGP.new(ogp_harvard_line) }
|
9
|
+
let(:metadata) { ogp.instance_variable_get(:@metadata) }
|
10
|
+
|
11
|
+
describe '#initialize' do
|
12
|
+
it 'parses JSON into metadata Hash' do
|
13
|
+
expect(metadata).to be_an Hash
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe '#to_geoblacklight' do
|
18
|
+
it 'calls geoblacklight_terms to create a GeoBlacklight object' do
|
19
|
+
expect(ogp).to receive(:geoblacklight_terms).and_return({})
|
20
|
+
expect(ogp.to_geoblacklight).to be_an GeoCombine::Geoblacklight
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
describe '#geoblacklight_terms' do
|
25
|
+
describe 'builds a hash which maps metadata' do
|
26
|
+
it 'with dc_identifier_s' do
|
27
|
+
expect(ogp.geoblacklight_terms).to include(dc_identifier_s: 'HARVARD.SDE2.G1059_W57_1654_PF_SH1')
|
28
|
+
end
|
29
|
+
it 'with dc_title_s' do
|
30
|
+
expect(ogp.geoblacklight_terms).to include(dc_title_s: 'World Map, 1654 (Raster Image)')
|
31
|
+
end
|
32
|
+
it 'with dc_description_s sanitized' do
|
33
|
+
expect(ogp.geoblacklight_terms).to include(dc_description_s: metadata['Abstract'])
|
34
|
+
end
|
35
|
+
it 'with dc_rights_s' do
|
36
|
+
expect(ogp.geoblacklight_terms).to include(dc_rights_s: 'Public')
|
37
|
+
expect(ogp_line.geoblacklight_terms).to include(dc_rights_s: 'Restricted')
|
38
|
+
end
|
39
|
+
it 'with dct_provenance_s' do
|
40
|
+
expect(ogp.geoblacklight_terms).to include(dct_provenance_s: 'Harvard')
|
41
|
+
end
|
42
|
+
it 'with dct_references_s' do
|
43
|
+
expect(ogp.geoblacklight_terms).to include(:dct_references_s)
|
44
|
+
end
|
45
|
+
it 'with layer_id_s that is blank' do
|
46
|
+
expect(ogp.geoblacklight_terms)
|
47
|
+
.to include(layer_id_s: "#{metadata['WorkspaceName']}:#{metadata['Name']}")
|
48
|
+
end
|
49
|
+
it 'with layer_geom_type_s' do
|
50
|
+
expect(ogp.geoblacklight_terms).to include(:layer_geom_type_s)
|
51
|
+
end
|
52
|
+
it 'with layer_slug_s' do
|
53
|
+
expect(ogp.geoblacklight_terms)
|
54
|
+
.to include(layer_slug_s: 'harvard-g1059-w57-1654-pf-sh1')
|
55
|
+
end
|
56
|
+
it 'with solr_geom' do
|
57
|
+
expect(ogp.geoblacklight_terms).to include(:solr_geom)
|
58
|
+
end
|
59
|
+
it 'with dc_subject_sm' do
|
60
|
+
expect(ogp.geoblacklight_terms).to include(
|
61
|
+
dc_subject_sm: [
|
62
|
+
'Maps', 'Human settlements', 'Cities and towns', 'Villages',
|
63
|
+
'Bodies of water', 'Landforms', 'Transportation',
|
64
|
+
'imageryBaseMapsEarthCover'
|
65
|
+
]
|
66
|
+
)
|
67
|
+
end
|
68
|
+
it 'with dct_spatial_sm' do
|
69
|
+
expect(ogp.geoblacklight_terms).to include(
|
70
|
+
dct_spatial_sm: [
|
71
|
+
'Earth', 'Northern Hemisphere', 'Southern Hemisphere',
|
72
|
+
'Eastern Hemisphere', 'Western Hemisphere', 'Africa', 'Asia',
|
73
|
+
'Australia', 'Europe', 'North America', 'South America',
|
74
|
+
'Arctic regions'
|
75
|
+
]
|
76
|
+
)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
describe '#ogp_geom' do
|
82
|
+
it 'when Paper Map use Raster' do
|
83
|
+
expect(ogp.ogp_geom).to eq 'Raster'
|
84
|
+
end
|
85
|
+
it 'anything else, return it' do
|
86
|
+
expect(ogp_tufts.ogp_geom).to eq 'Polygon'
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
describe '#ogp_formats' do
|
91
|
+
context 'when Paper Map or Raster' do
|
92
|
+
it 'returns GeoTIFF' do
|
93
|
+
%w[Raster Paper\ Map].each do |datatype|
|
94
|
+
expect(ogp).to receive(:metadata).and_return('DataType' => datatype)
|
95
|
+
expect(ogp.ogp_formats).to eq 'GeoTIFF'
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|
99
|
+
end
|
100
|
+
context 'when Polygon, Line, or Point' do
|
101
|
+
it 'returns Shapefile' do
|
102
|
+
%w[Polygon Line Point].each do |datatype|
|
103
|
+
expect(ogp).to receive(:metadata).and_return('DataType' => datatype)
|
104
|
+
expect(ogp.ogp_formats).to eq 'Shapefile'
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
context 'unknown data types' do
|
109
|
+
it 'throws exception' do
|
110
|
+
expect(ogp).to receive(:metadata).twice.and_return('DataType' => 'Unknown')
|
111
|
+
expect { ogp.ogp_formats }.to raise_error(ArgumentError, 'Unknown')
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
describe '#envelope' do
|
117
|
+
it 'properly formatted envelope' do
|
118
|
+
expect(ogp.envelope).to eq 'ENVELOPE(-180.0, 180.0, 90.0, -90.0)'
|
119
|
+
end
|
120
|
+
it 'fails on out-of-bounds envelopes' do
|
121
|
+
expect(ogp).to receive(:west).and_return(-181)
|
122
|
+
expect { ogp.envelope }.to raise_error(ArgumentError)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
describe '#references' do
|
127
|
+
context 'harvard raster' do
|
128
|
+
it 'has wms and download services' do
|
129
|
+
expect(JSON.parse(ogp.references)).to include(
|
130
|
+
'http://www.opengis.net/def/serviceType/ogc/wms' => 'http://pelham.lib.harvard.edu:8080/geoserver/wms',
|
131
|
+
'http://schema.org/DownloadAction' => 'http://pelham.lib.harvard.edu:8080/HGL/HGLOpenDelivery'
|
132
|
+
)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
context 'tufts vector' do
|
136
|
+
it 'has wms wfs services' do
|
137
|
+
expect(JSON.parse(ogp_tufts.references)).to include(
|
138
|
+
'http://www.opengis.net/def/serviceType/ogc/wms' => 'http://geoserver01.uit.tufts.edu/wms',
|
139
|
+
'http://www.opengis.net/def/serviceType/ogc/wfs' => 'http://geoserver01.uit.tufts.edu/wfs'
|
140
|
+
)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
context 'harvard line' do
|
144
|
+
it 'has restricted services' do
|
145
|
+
expect(JSON.parse(ogp_line.references)).to include(
|
146
|
+
'http://www.opengis.net/def/serviceType/ogc/wfs' => 'http://hgl.harvard.edu:8080/geoserver/wfs',
|
147
|
+
'http://www.opengis.net/def/serviceType/ogc/wms' => 'http://hgl.harvard.edu:8080/geoserver/wms'
|
148
|
+
)
|
149
|
+
expect(JSON.parse(ogp_line.references)).not_to include('http://schema.org/DownloadAction')
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
describe 'valid geoblacklight schema' do
|
155
|
+
context 'harvard' do
|
156
|
+
it { expect { ogp.to_geoblacklight.valid? }.to_not raise_error }
|
157
|
+
it { expect { ogp_line.to_geoblacklight.valid? }.to_not raise_error }
|
158
|
+
end
|
159
|
+
context 'tufts' do
|
160
|
+
it { expect { ogp_tufts.to_geoblacklight.valid? }.to_not raise_error }
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geo_combine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Reed
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rsolr
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -24,6 +38,20 @@ dependencies:
|
|
24
38
|
- - ">="
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: net-http-persistent
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: nokogiri
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,30 +112,30 @@ dependencies:
|
|
84
112
|
name: bundler
|
85
113
|
requirement: !ruby/object:Gem::Requirement
|
86
114
|
requirements:
|
87
|
-
- - "
|
115
|
+
- - ">="
|
88
116
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
117
|
+
version: '0'
|
90
118
|
type: :development
|
91
119
|
prerelease: false
|
92
120
|
version_requirements: !ruby/object:Gem::Requirement
|
93
121
|
requirements:
|
94
|
-
- - "
|
122
|
+
- - ">="
|
95
123
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
124
|
+
version: '0'
|
97
125
|
- !ruby/object:Gem::Dependency
|
98
126
|
name: rake
|
99
127
|
requirement: !ruby/object:Gem::Requirement
|
100
128
|
requirements:
|
101
|
-
- - "
|
129
|
+
- - ">="
|
102
130
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
131
|
+
version: '0'
|
104
132
|
type: :development
|
105
133
|
prerelease: false
|
106
134
|
version_requirements: !ruby/object:Gem::Requirement
|
107
135
|
requirements:
|
108
|
-
- - "
|
136
|
+
- - ">="
|
109
137
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
138
|
+
version: '0'
|
111
139
|
- !ruby/object:Gem::Dependency
|
112
140
|
name: rspec
|
113
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,6 +194,8 @@ files:
|
|
166
194
|
- lib/geo_combine/geoblacklight.rb
|
167
195
|
- lib/geo_combine/geometry_types.rb
|
168
196
|
- lib/geo_combine/iso19139.rb
|
197
|
+
- lib/geo_combine/ogp.rb
|
198
|
+
- lib/geo_combine/railtie.rb
|
169
199
|
- lib/geo_combine/subjects.rb
|
170
200
|
- lib/geo_combine/version.rb
|
171
201
|
- lib/tasks/geo_combine.rake
|
@@ -192,6 +222,10 @@ files:
|
|
192
222
|
- spec/fixtures/docs/ckan.json
|
193
223
|
- spec/fixtures/docs/esri_open_data.json
|
194
224
|
- spec/fixtures/docs/full_geoblacklight.json
|
225
|
+
- spec/fixtures/docs/geoblacklight_pre_v1.json
|
226
|
+
- spec/fixtures/docs/ogp_harvard_line.json
|
227
|
+
- spec/fixtures/docs/ogp_harvard_raster.json
|
228
|
+
- spec/fixtures/docs/ogp_tufts_vector.json
|
195
229
|
- spec/fixtures/json_docs.rb
|
196
230
|
- spec/fixtures/xml_docs.rb
|
197
231
|
- spec/helpers.rb
|
@@ -202,6 +236,7 @@ files:
|
|
202
236
|
- spec/lib/geo_combine/formatting_spec.rb
|
203
237
|
- spec/lib/geo_combine/geoblacklight_spec.rb
|
204
238
|
- spec/lib/geo_combine/iso19139_spec.rb
|
239
|
+
- spec/lib/geo_combine/ogp_spec.rb
|
205
240
|
- spec/lib/geo_combine_spec.rb
|
206
241
|
- spec/spec_helper.rb
|
207
242
|
homepage: ''
|
@@ -224,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
259
|
version: '0'
|
225
260
|
requirements: []
|
226
261
|
rubyforge_project:
|
227
|
-
rubygems_version: 2.5
|
262
|
+
rubygems_version: 2.4.5
|
228
263
|
signing_key:
|
229
264
|
specification_version: 4
|
230
265
|
summary: A Ruby toolkit for managing geospatial metadata
|
@@ -235,6 +270,10 @@ test_files:
|
|
235
270
|
- spec/fixtures/docs/ckan.json
|
236
271
|
- spec/fixtures/docs/esri_open_data.json
|
237
272
|
- spec/fixtures/docs/full_geoblacklight.json
|
273
|
+
- spec/fixtures/docs/geoblacklight_pre_v1.json
|
274
|
+
- spec/fixtures/docs/ogp_harvard_line.json
|
275
|
+
- spec/fixtures/docs/ogp_harvard_raster.json
|
276
|
+
- spec/fixtures/docs/ogp_tufts_vector.json
|
238
277
|
- spec/fixtures/json_docs.rb
|
239
278
|
- spec/fixtures/xml_docs.rb
|
240
279
|
- spec/helpers.rb
|
@@ -245,5 +284,6 @@ test_files:
|
|
245
284
|
- spec/lib/geo_combine/formatting_spec.rb
|
246
285
|
- spec/lib/geo_combine/geoblacklight_spec.rb
|
247
286
|
- spec/lib/geo_combine/iso19139_spec.rb
|
287
|
+
- spec/lib/geo_combine/ogp_spec.rb
|
248
288
|
- spec/lib/geo_combine_spec.rb
|
249
289
|
- spec/spec_helper.rb
|