リビジョン 972d1973
| map/ne10m/ne_10m_coastline.README.html | ||
|---|---|---|
|
|
||
|
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
||
|
|
||
|
<head profile="http://gmpg.org/xfn/11">
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||
|
|
||
|
<title>Coastline | Natural Earth</title>
|
||
|
|
||
|
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
|
||
|
<link rel="alternate" type="application/rss+xml" title="Natural Earth RSS Feed" href="http://www.naturalearthdata.com/feed/" />
|
||
|
<link rel="pingback" href="http://www.naturalearthdata.com/xmlrpc.php" />
|
||
|
<script type="text/javascript" src="http://www.naturalearthdata.com/wp-content/themes/NEV/includes/js/suckerfish.js"></script>
|
||
|
<!--[if lt IE 7]>
|
||
|
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
|
||
|
<script defer="defer" type="text/javascript" src="http://www.naturalearthdata.com/wp-content/themes/NEV/includes/js/pngfix.js"></script>
|
||
|
<![endif]-->
|
||
|
<link rel="stylesheet" href="http://www.naturalearthdata.com/wp-content/themes/NEV/style.css" type="text/css" media="screen" />
|
||
|
|
||
|
|
||
|
<script type="text/javascript">//<![CDATA[
|
||
|
// Google Analytics for WordPress by Yoast v4.3.2 | http://yoast.com/wordpress/google-analytics/
|
||
|
var _gaq = _gaq || [];
|
||
|
_gaq.push(['_setAccount', 'UA-10168306-1']);
|
||
|
</script><script src="http://www.naturalearthdata.com/wp-content/plugins/google-analytics-for-wordpress/custom_se_async.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript"> _gaq.push(['_trackPageview']);
|
||
|
(function () {
|
||
|
var ga = document.createElement('script');
|
||
|
ga.type = 'text/javascript';
|
||
|
ga.async = true;
|
||
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||
|
|
||
|
var s = document.getElementsByTagName('script')[0];
|
||
|
s.parentNode.insertBefore(ga, s);
|
||
|
})();
|
||
|
//]]></script>
|
||
|
<link rel='stylesheet' id='bbp-child-bbpress-css' href='http://www.naturalearthdata.com/wp-content/themes/NEV/css/bbpress.css?ver=2.2.4' type='text/css' media='screen' />
|
||
|
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.naturalearthdata.com/xmlrpc.php?rsd" />
|
||
|
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.naturalearthdata.com/wp-includes/wlwmanifest.xml" />
|
||
|
<link rel='prev' title='Land' href='http://www.naturalearthdata.com/downloads/10m-physical-vectors/10m-land/' />
|
||
|
<link rel='next' title='Bathymetry' href='http://www.naturalearthdata.com/downloads/50m-bathymetry/bathymetry-basic/' />
|
||
|
<meta name="generator" content="WordPress 3.5.1" />
|
||
|
<link rel='shortlink' href='http://www.naturalearthdata.com/?p=449' />
|
||
|
|
||
|
<!-- All in One SEO Pack 1.6.15.3 by Michael Torbert of Semper Fi Web Design[299,431] -->
|
||
|
<meta name="description" content="Includes major islands. About Ocean coastline, including major islands. Coastline is matched to land and water polygons. The Caspian Sea," />
|
||
|
<link rel="canonical" href="http://www.naturalearthdata.com/downloads/10m-physical-vectors/10m-coastline/" />
|
||
|
<!-- /all in one seo pack -->
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
/* <![CDATA[ */
|
||
|
var ajaxurl = 'http://www.naturalearthdata.com/wp-admin/admin-ajax.php';
|
||
|
|
||
|
/* ]]> */
|
||
|
</script>
|
||
|
|
||
|
|
||
|
<!-- begin gallery scripts -->
|
||
|
<link rel="stylesheet" href="http://www.naturalearthdata.com/wp-content/plugins/featured-content-gallery/css/jd.gallery.css.php" type="text/css" media="screen" charset="utf-8"/>
|
||
|
<link rel="stylesheet" href="http://www.naturalearthdata.com/wp-content/plugins/featured-content-gallery/css/jd.gallery.css" type="text/css" media="screen" charset="utf-8"/>
|
||
|
<script type="text/javascript" src="http://www.naturalearthdata.com/wp-content/plugins/featured-content-gallery/scripts/mootools.v1.11.js"></script>
|
||
|
<script type="text/javascript" src="http://www.naturalearthdata.com/wp-content/plugins/featured-content-gallery/scripts/jd.gallery.js.php"></script>
|
||
|
<script type="text/javascript" src="http://www.naturalearthdata.com/wp-content/plugins/featured-content-gallery/scripts/jd.gallery.transitions.js"></script>
|
||
|
<!-- end gallery scripts -->
|
||
|
<link href="http://www.naturalearthdata.com/wp-content/themes/NEV/css/default.css" rel="stylesheet" type="text/css" />
|
||
|
<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
|
||
|
<style type="text/css">.broken_link, a.broken_link {
|
||
|
text-decoration: line-through;
|
||
|
}</style><!--[if lte IE 7]>
|
||
|
<link rel="stylesheet" type="text/css" href="http://www.naturalearthdata.com/wp-content/themes/NEV/ie.css" />
|
||
|
<![endif]-->
|
||
|
<script src="http://www.naturalearthdata.com/wp-content/themes/NEV/js/jquery-1.2.6.min.js" type="text/javascript" charset="utf-8"></script>
|
||
|
<script>
|
||
|
jQuery.noConflict();
|
||
|
</script>
|
||
|
<script type="text/javascript" charset="utf-8">
|
||
|
$(function(){
|
||
|
var tabContainers = $('div#maintabdiv > div');
|
||
|
tabContainers.hide().filter('#comments').show();
|
||
|
|
||
|
$('div#maintabdiv ul#tabnav a').click(function () {
|
||
|
tabContainers.hide();
|
||
|
tabContainers.filter(this.hash).show();
|
||
|
$('div#maintabdiv ul#tabnav a').removeClass('current');
|
||
|
$(this).addClass('current');
|
||
|
return false;
|
||
|
}).filter('#comments').click();
|
||
|
|
||
|
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
<script type="text/javascript" language="javascript" src="http://www.naturalearthdata.com/dataTables/media/js/jquery.dataTables.js"></script>
|
||
|
<script type="text/javascript" charset="utf-8">
|
||
|
$(document).ready(function() {
|
||
|
$('#ne_table').dataTable();
|
||
|
} );
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="page">
|
||
|
<div id="header">
|
||
|
<div id="headerimg">
|
||
|
<h1><a href="http://www.naturalearthdata.com/"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/nev_logo.png" alt="Natural Earth title="Natural Earth" /></a></h1>
|
||
|
<div class="description">Free vector and raster map data at 1:10m, 1:50m, and 1:110m scales</div>
|
||
|
<div class="header_search"><form method="get" id="searchform" action="http://www.naturalearthdata.com/">
|
||
|
<label class="hidden" for="s">Search for:</label>
|
||
|
<div><input type="text" value="" name="s" id="s" />
|
||
|
<input type="submit" id="searchsubmit" value="Search" />
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
<!--<div class="translate_panel" style="align:top; margin-left:650px; top:50px;">
|
||
|
<div id="google_translate_element" style="float:left;"></div>
|
||
|
<script>
|
||
|
function googleTranslateElementInit() {
|
||
|
new google.translate.TranslateElement({
|
||
|
pageLanguage: 'en'
|
||
|
}, 'google_translate_element');
|
||
|
}
|
||
|
</script>
|
||
|
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
|
||
|
</div>-->
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div id="pagemenu" style="align:bottom;">
|
||
|
<ul id="page-list" class="clearfix"><li class="page_item page-item-4"><a href="http://www.naturalearthdata.com/">Home</a></li>
|
||
|
<li class="page_item page-item-10"><a href="http://www.naturalearthdata.com/features/">Features</a></li>
|
||
|
<li class="page_item page-item-12"><a href="http://www.naturalearthdata.com/downloads/">Downloads</a></li>
|
||
|
<li class="page_item page-item-6 current_page_parent"><a href="http://www.naturalearthdata.com/blog/">Blog</a></li>
|
||
|
<li class="page_item page-item-14"><a href="http://www.naturalearthdata.com/forums">Forums</a></li>
|
||
|
<li class="page_item page-item-366"><a href="http://www.naturalearthdata.com/corrections">Corrections</a></li>
|
||
|
<li class="page_item page-item-16"><a href="http://www.naturalearthdata.com/about/">About</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<hr /> <div id="main">
|
||
|
<div id="content" class="narrowcolumn">
|
||
|
|
||
|
|
||
|
« <a href="http://www.naturalearthdata.com/downloads/10m-physical-vectors/">1:10m Physical Vectors</a>
|
||
|
« <a href="http://www.naturalearthdata.com/downloads/">Downloads</a>
|
||
|
<div class="post" id="post-449">
|
||
|
<h2>Coastline</h2>
|
||
|
<div class="entry">
|
||
|
<div class="downloadPromoBlock" style="float: left;">
|
||
|
<div style="float: left; width: 170px;"><img class="downloadPromoImage" title="coast_thumb" src="http://www.naturalearthdata.com/wp-content/uploads/2009/09/coast_thumb.gif" alt="coast_thumb" width="150" height="97" align="left" /></div>
|
||
|
<div style="float: left; width: 410px;"><em>Includes major islands. </em></p>
|
||
|
<div class="download-link-div">
|
||
|
<a class="download-link" rel="nofollow" title="Downloaded 14037 times (Shapefile, geoDB, or TIFF format)" onclick="if (window.urchinTracker) urchinTracker ('http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/physical/ne_10m_coastline.zip');" href="http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/physical/ne_10m_coastline.zip" onclick="javascript:_gaq.push(['_trackEvent','download','http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/physical/ne_10m_coastline.zip']);">Download coastline</a> <span class="download-link-span">(2.92 MB) version 2.0.0</span>
|
||
|
</div>
|
||
|
<p><span id="more-449"></span></div>
|
||
|
</div>
|
||
|
<div class="downloadMainBlock" style="float: left;"><strong>About</strong></p>
|
||
|
<p>Ocean coastline, including major islands. Coastline is matched to land and water polygons. The Caspian Sea, which is technically a lake, is included. The ocean coastline, the foundation for building all of NEV, primarily derives from World Data Bank 2 with modest generalization applied via line simplification in Adobe Illustrator. The Antarctica coast derives from NASA Mosaic of Antarctica.</p>
|
||
|
<p><em>(below) Yucatan peninsula, Cuba, and Hispaniola.</em></p>
|
||
|
<p><img class="alignnone size-full wp-image-1056" title="coast_banner" src="http://www.naturalearthdata.com/wp-content/uploads/2009/09/coast_banner.gif" alt="coast_banner" width="580" height="150" /></p>
|
||
|
<p><strong>Issues</strong></p>
|
||
|
<p>World Data Bank 2 coastlines have suspect accuracy for certain parts of the world, including northern Russia, southern Chile, and most egregiously, the west coast of the United States extending to the Baja Peninsula, Mexico, where the coast was approximately 7 km east of where it should be. The west coast of the US was corrected on NEV; other areas were not.</p>
|
||
|
<p>Does not include rank 6, 7, or 8 coastlines from the <a href="http://www.naturalearthdata.com/downloads/10m-physical-vectors/10m-minor-islands/" >minor islands</a>. Some rank 5 coastline should be reclassified as rank 6.</p>
|
||
|
<p><strong>Resources</strong></p>
|
||
|
<ul>
|
||
|
<li><a href="http://www.evl.uic.edu/pape/data/WDB/" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.evl.uic.edu/pape/data/WDB/']);">World Data Bank 2</a></li>
|
||
|
<li><a href="http://nsidc.org/data/docs/agdc/nsidc0280_scambos/" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://nsidc.org/data/docs/agdc/nsidc0280_scambos/']);">Mosaic of Antarctica</a></li>
|
||
|
</ul>
|
||
|
<p><strong>Version History</strong></p>
|
||
|
<ul>
|
||
|
<li>
|
||
|
<a rel="nofollow" title="Download version 2.0.0 of ne_10m_coastline.zip" href="http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/physical/ne_10m_coastline.zip" onclick="javascript:_gaq.push(['_trackEvent','download','http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/physical/ne_10m_coastline.zip']);">2.0.0</a>
|
||
|
</li>
|
||
|
<li>
|
||
|
1.3.0
|
||
|
</li>
|
||
|
<li>
|
||
|
1.1.0
|
||
|
</li>
|
||
|
<li>
|
||
|
1.0.0
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
<p><a href="https://github.com/nvkelso/natural-earth-vector/blob/master/CHANGELOG" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://github.com/nvkelso/natural-earth-vector/blob/master/CHANGELOG']);">The master changelog is available on Github »</a>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="sidebar">
|
||
|
<ul><li id='text-5' class='widget widget_text'><h2 class="widgettitle">Stay up to Date</h2>
|
||
|
<div class="textwidget"> Know when a new version of Natural Earth is released by subscribing to our <a href="http://www.naturalearthdata.com/updates/" class="up-to-date-link" >announcement list</a>.</div>
|
||
|
</li></ul><ul><li id='text-2' class='widget widget_text'><h2 class="widgettitle">Find a Problem?</h2>
|
||
|
<div class="textwidget"><div>
|
||
|
<div style="float:left; width:65px;"><a href="/corrections/index.php?a=add"><img class="alignleft" title="New Ticket" src="http://www.naturalearthdata.com/corrections/img/newticket.png" alt="" width="60" height="60" /></a></div><div class="textwidget" style="float:left;width:120px; font-size:1.2em; font-size-adjust:none; font-style:normal;
|
||
|
font-variant:normal; font-weight:normal; line-height:normal;">Submit suggestions and bug reports via our <a href="/corrections/index.php?a=add">correction system</a> and track the progress of your edits.</div>
|
||
|
</div></div>
|
||
|
</li></ul><ul><li id='text-3' class='widget widget_text'><h2 class="widgettitle">Join Our Community</h2>
|
||
|
<div class="textwidget"><div>
|
||
|
<div style="float:left; width:65px;"><a href="/forums/"><img src="http://www.naturalearthdata.com/wp-content/uploads/2009/08/green_globe_chat_bubble_562e.png" alt="forums" title="Chat in the forum!" width="50" height="50" /></a></div><div class="textwidget" style="float:left;width:120px; font-size:1.2em; font-size-adjust:none; font-style:normal;
|
||
|
font-variant:normal; font-weight:normal; line-height:normal;">Talk back and discuss Natural Earth in the <a href="/forums/">Forums</a>.</div>
|
||
|
</div></div>
|
||
|
</li></ul><ul><li id='text-4' class='widget widget_text'><h2 class="widgettitle">Thank You</h2>
|
||
|
<div class="textwidget">Our data downloads are generously hosted by Florida State University.</div>
|
||
|
</li></ul><ul><li id='bbp_topics_widget-3' class='widget widget_display_topics'><h2 class="widgettitle">Recent Forum Topics</h2>
|
||
|
|
||
|
<ul>
|
||
|
|
||
|
|
||
|
<li>
|
||
|
<a class="bbp-forum-title" href="http://www.naturalearthdata.com/forums/topic/osm-style-slippy-map/" title="OSM Style SLIPPY Map">OSM Style SLIPPY Map</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
<li>
|
||
|
<a class="bbp-forum-title" href="http://www.naturalearthdata.com/forums/topic/within-this-on-the-8/" title="Within this on the">Within this on the</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
<li>
|
||
|
<a class="bbp-forum-title" href="http://www.naturalearthdata.com/forums/topic/these-handpicked-brand/" title="These handpicked brand">These handpicked brand</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
<li>
|
||
|
<a class="bbp-forum-title" href="http://www.naturalearthdata.com/forums/topic/within-this-on-the-3/" title="Within this on the">Within this on the</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
<li>
|
||
|
<a class="bbp-forum-title" href="http://www.naturalearthdata.com/forums/topic/within-this-on-thewar/" title="Within this on thewar">Within this on thewar</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
<li>
|
||
|
<a class="bbp-forum-title" href="http://www.naturalearthdata.com/forums/topic/within-this-on-the-2/" title="Within this on the">Within this on the</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
<li>
|
||
|
<a class="bbp-forum-title" href="http://www.naturalearthdata.com/forums/topic/iso-3166-1-countries/" title="ISO 3166-1 countries">ISO 3166-1 countries</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
<li>
|
||
|
<a class="bbp-forum-title" href="http://www.naturalearthdata.com/forums/topic/striped-hook-up-inside/" title="striped hook up inside">striped hook up inside</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
<li>
|
||
|
<a class="bbp-forum-title" href="http://www.naturalearthdata.com/forums/topic/multipart-ocean-features/" title="Multipart Ocean Features?">Multipart Ocean Features?</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
<li>
|
||
|
<a class="bbp-forum-title" href="http://www.naturalearthdata.com/forums/topic/what-code-page-was-used-for-the-vector-data/" title="What Code Page was used for the vector data?">What Code Page was used for the vector data?</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
</li></ul><ul><li id='bbpresswptweaks_login_links_widget-3' class='widget bbpresswptweaks_login_links_widget'><h2 class="widgettitle">Forum Login</h2>
|
||
|
<div class="bbp-template-notice">
|
||
|
<a href="http://www.naturalearthdata.com/wp-login.php?redirect_to=/downloads/10m-physical-vectors/10m-coastline/" rel="nofollow">Log in</a>
|
||
|
- or -
|
||
|
<a href="http://www.naturalearthdata.com/wp-login.php?action=register" rel="nofollow">Register</a>
|
||
|
</div></li></ul> </div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<hr />
|
||
|
<div id="footer">
|
||
|
<div id="footerarea">
|
||
|
<div id="footerlogos">
|
||
|
<p>Supported by:</p>
|
||
|
<div class="footer-ad-box">
|
||
|
<a href="http://www.nacis.org" target="_blank"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/nacis.png" alt="NACIS" /></a>
|
||
|
</div>
|
||
|
<div class="footer-ad-box">
|
||
|
<a href="http://www.cartotalk.com" target="_blank"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/cartotalk_ad.png" alt="Cartotalk" /></a>
|
||
|
</div>
|
||
|
<div class="footer-ad-box">
|
||
|
<a href="http://www.mapgiving.org" target="_blank"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/mapgiving.png" alt="Mapgiving" /></a>
|
||
|
</div>
|
||
|
<div class="footer-ad-box">
|
||
|
<a href="http://www.geography.wisc.edu/cartography/" target="_blank"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/wisconsin.png" alt="University of Wisconsin Madison - Cartography Dept." /></a>
|
||
|
</div>
|
||
|
<div class="footer-ad-box">
|
||
|
<a href="http://www.shadedrelief.com" target="_blank"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/shaded_relief.png" alt="Shaded Relief" /></a>
|
||
|
</div>
|
||
|
<div class="footer-ad-box">
|
||
|
<a href="http://www.xnrproductions.com " target="_blank"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/xnr.png" alt="XNR Productions" /></a>
|
||
|
</div>
|
||
|
|
||
|
<p style="clear:both;"></p>
|
||
|
|
||
|
<div class="footer-ad-box">
|
||
|
<a href="http://www.freac.fsu.edu" target="_blank"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/fsu.png" alt="Florida State University - FREAC" /></a>
|
||
|
</div>
|
||
|
<div class="footer-ad-box">
|
||
|
<a href="http://www.springercartographics.com" target="_blank"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/scllc.png" alt="Springer Cartographics LLC" /></a>
|
||
|
</div>
|
||
|
<div class="footer-ad-box">
|
||
|
<a href="http://www.washingtonpost.com" target="_blank"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/wpost.png" alt="Washington Post" /></a>
|
||
|
</div>
|
||
|
<div class="footer-ad-box">
|
||
|
<a href="http://www.redgeographics.com" target="_blank"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/redgeo.png" alt="Red Geographics" /></a>
|
||
|
</div>
|
||
|
<div class="footer-ad-box">
|
||
|
<a href="http://kelsocartography.com/blog " target="_blank"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/kelso.png" alt="Kelso Cartography" /></a>
|
||
|
</div>
|
||
|
|
||
|
<p style="clear:both;"></p>
|
||
|
<div class="footer-ad-box">
|
||
|
<a href="http://www.avenza.com" target="_blank"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/avenza.png" alt="Avenza Systems Inc." /></a>
|
||
|
</div>
|
||
|
<div class="footer-ad-box">
|
||
|
<a href="http://www.stamen.com" target="_blank"><img src="http://www.naturalearthdata.com/wp-content/themes/NEV/images/stamen_ne_logo.png" alt="Stamen Design" /></a>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<p style="clear:both;"></p>
|
||
|
<span id="footerleft">
|
||
|
© 2013. Natural Earth. All rights reserved.
|
||
|
</span>
|
||
|
<span id="footerright">
|
||
|
<!-- Please help promote WordPress and simpleX. Do not remove -->
|
||
|
<div>Powered by <a href="http://wordpress.org/">WordPress</a></div>
|
||
|
<div><a href="http://www.naturalearthdata.com/wp-admin">Staff Login »</a></div>
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
</html>
|
||
| map/ne10m/ne_10m_coastline.VERSION.txt | ||
|---|---|---|
|
3.0.0
|
||
| map/ne10m/ne_10m_coastline.prj | ||
|---|---|---|
|
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
|
||
| nbproject/project.properties | ||
|---|---|---|
|
annotation.processing.enabled=true
|
||
|
annotation.processing.enabled.in.editor=false
|
||
|
annotation.processing.processor.options=
|
||
|
annotation.processing.processors.list=
|
||
|
annotation.processing.run.all.processors=true
|
||
|
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
|
||
| ... | ... | |
|
dist.javadoc.dir=${dist.dir}/javadoc
|
||
|
endorsed.classpath=
|
||
|
excludes=
|
||
|
file.reference.shapefilereader-1.0.jar=lib/shapefilereader-1.0.jar
|
||
|
includes=**
|
||
|
# Non-JavaFX jar file creation is deactivated in JavaFX 2.0+ projects
|
||
|
jar.archive.disabled=true
|
||
|
jar.compress=false
|
||
|
javac.classpath=\
|
||
|
${javafx.classpath.extension}
|
||
|
${javafx.classpath.extension}:\
|
||
|
${file.reference.shapefilereader-1.0.jar}
|
||
|
# Space-separated list of extra javac options
|
||
|
javac.compilerargs=
|
||
|
javac.deprecation=false
|
||
|
javac.external.vm=false
|
||
|
javac.modulepath=
|
||
|
javac.processormodulepath=\
|
||
|
${javac.modulepath}
|
||
|
javac.processorpath=\
|
||
|
${javac.classpath}
|
||
|
javac.source=1.8
|
||
| ... | ... | |
|
manifest.custom.permissions=
|
||
|
manifest.file=manifest.mf
|
||
|
meta.inf.dir=${src.dir}/META-INF
|
||
|
mkdist.disabled=false
|
||
|
platform.active=default_platform
|
||
|
run.classpath=\
|
||
|
${dist.jar}:\
|
||
| src/com/torutk/tinymap/TinyMapException.java | ||
|---|---|---|
|
/*
|
||
|
* © 2016 Toru Takahashi
|
||
|
*/
|
||
|
package com.torutk.tinymap;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @author Toru Takahashi
|
||
|
*/
|
||
|
public class TinyMapException extends Exception {
|
||
|
|
||
|
/**
|
||
|
* Creates a new instance of <code>TinyMapException</code> without detail
|
||
|
* message.
|
||
|
*/
|
||
|
public TinyMapException() {
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Constructs an instance of <code>TinyMapException</code> with the
|
||
|
* specified detail message.
|
||
|
*
|
||
|
* @param msg the detail message.
|
||
|
*/
|
||
|
public TinyMapException(String msg) {
|
||
|
super(msg);
|
||
|
}
|
||
|
|
||
|
public TinyMapException(String message, Throwable cause) {
|
||
|
super(message, cause);
|
||
|
}
|
||
|
|
||
|
public TinyMapException(Throwable cause) {
|
||
|
super(cause);
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
| src/com/torutk/tinymap/TinyMapModel.java | ||
|---|---|---|
|
*/
|
||
|
package com.torutk.tinymap;
|
||
|
|
||
|
import java.io.BufferedInputStream;
|
||
|
import java.io.File;
|
||
|
import java.io.FileInputStream;
|
||
|
import java.io.IOException;
|
||
|
import java.io.InputStream;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
import java.util.function.Function;
|
||
|
import java.util.stream.Stream;
|
||
|
import javafx.geometry.Point2D;
|
||
|
import org.nocrala.tools.gis.data.esri.shapefile.ShapeFileReader;
|
||
|
import org.nocrala.tools.gis.data.esri.shapefile.ValidationPreferences;
|
||
|
import org.nocrala.tools.gis.data.esri.shapefile.exception.InvalidShapeFileException;
|
||
|
import org.nocrala.tools.gis.data.esri.shapefile.shape.AbstractShape;
|
||
|
import org.nocrala.tools.gis.data.esri.shapefile.shape.PointData;
|
||
|
import org.nocrala.tools.gis.data.esri.shapefile.shape.ShapeType;
|
||
|
import org.nocrala.tools.gis.data.esri.shapefile.shape.shapes.PolylineShape;
|
||
|
|
||
|
/**
|
||
|
*
|
||
| ... | ... | |
|
*/
|
||
|
public class TinyMapModel {
|
||
|
private File mapFile;
|
||
|
private List<TinyMapPolyline> polylines;
|
||
|
|
||
|
private List<TinyMapPolyline> polylines = new ArrayList<>();
|
||
|
private Function<PointData, Point2D> projection;
|
||
|
|
||
|
public TinyMapModel(File selected) {
|
||
|
mapFile = selected;
|
||
|
projection = p -> new Point2D(p.getX() * 100_000, p.getY() * 100_000); // 1度100kmとした直交座標変換
|
||
|
}
|
||
|
|
||
|
public void setProjection(Function<PointData, Point2D> projection) {
|
||
|
this.projection = projection;
|
||
|
}
|
||
|
|
||
|
public Stream<TinyMapPolyline> stream() {
|
||
|
return polylines.stream();
|
||
|
}
|
||
|
|
||
|
public void loadLines() {
|
||
|
polylines = new ArrayList<>();
|
||
|
loadTestPattern();
|
||
|
public void loadLines() throws TinyMapException {
|
||
|
polylines.clear();
|
||
|
ValidationPreferences preferences = new ValidationPreferences();
|
||
|
preferences.setAllowUnlimitedNumberOfPointsPerShape(true);
|
||
|
try (InputStream inStream = new BufferedInputStream(new FileInputStream(mapFile))) {
|
||
|
ShapeFileReader reader = new ShapeFileReader(inStream, preferences);
|
||
|
AbstractShape shape = reader.next();
|
||
|
while (shape != null) {
|
||
|
if (shape.getShapeType() != ShapeType.POLYLINE) {
|
||
|
continue;
|
||
|
}
|
||
|
PolylineShape polyline = (PolylineShape) shape;
|
||
|
for (int i = 0; i < polyline.getNumberOfParts(); i++) {
|
||
|
TinyMapPolyline mapPolyline = createMapPolylineFrom(polyline, i);
|
||
|
polylines.add(mapPolyline);
|
||
|
}
|
||
|
shape = reader.next();
|
||
|
}
|
||
|
} catch (IOException | InvalidShapeFileException ex) {
|
||
|
throw new TinyMapException("シェープファイル読み込み時に例外発生", ex);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
TinyMapPolyline createMapPolylineFrom(PolylineShape shape, int part) {
|
||
|
PointData[] gcsPoints = shape.getPointsOfPart(part);
|
||
|
double[] xArray = new double[gcsPoints.length];
|
||
|
double[] yArray = new double[gcsPoints.length];
|
||
|
for (int i = 0; i < gcsPoints.length; i++) {
|
||
|
Point2D pcsPoint = projection.apply(gcsPoints[i]);
|
||
|
xArray[i] = pcsPoint.getX();
|
||
|
yArray[i] = pcsPoint.getY();
|
||
|
}
|
||
|
return new TinyMapPolyline(xArray, yArray);
|
||
|
}
|
||
|
|
||
|
private void loadTestPattern() {
|
||
|
for (int lat = -90; lat <= 90; lat += 10) {
|
||
|
double[] xs = new double[36];
|
||
| src/com/torutk/tinymap/TinyMapViewController.java | ||
|---|---|---|
|
*/
|
||
|
package com.torutk.tinymap;
|
||
|
|
||
|
import java.io.File;
|
||
|
import java.net.URL;
|
||
|
import java.nio.file.Paths;
|
||
|
import java.util.ResourceBundle;
|
||
|
import javafx.beans.property.DoubleProperty;
|
||
|
import javafx.beans.property.SimpleDoubleProperty;
|
||
| ... | ... | |
|
import javafx.geometry.Point2D;
|
||
|
import javafx.scene.canvas.Canvas;
|
||
|
import javafx.scene.canvas.GraphicsContext;
|
||
|
import javafx.scene.control.Alert;
|
||
|
import javafx.scene.control.ComboBox;
|
||
|
import javafx.scene.control.Label;
|
||
|
import javafx.scene.layout.Pane;
|
||
|
import javafx.scene.paint.Color;
|
||
|
import javafx.scene.transform.Affine;
|
||
|
import javafx.stage.FileChooser;
|
||
|
import javafx.stage.Screen;
|
||
|
|
||
|
/**
|
||
| ... | ... | |
|
private TinyMapModel mapModel;
|
||
|
|
||
|
/**
|
||
|
* 地図データを読み込む。
|
||
|
* ファイル選択ダイアログを表示し、ユーザーが指定したシェープファイルから地図データを読み込む。
|
||
|
*
|
||
|
* @param event
|
||
|
*/
|
||
|
@FXML
|
||
|
private void loadShapefile(ActionEvent event) {
|
||
|
System.out.println("You clicked me!");
|
||
|
mapModel = new TinyMapModel();
|
||
|
mapModel.loadLines();
|
||
|
FileChooser chooser = new FileChooser();
|
||
|
chooser.setTitle("シェープファイルを選択してね");
|
||
|
chooser.setInitialDirectory(Paths.get(System.getProperty("user.dir")).toFile());
|
||
|
chooser.getExtensionFilters().add(new FileChooser.ExtensionFilter("Shapefile", "*.shp"));
|
||
|
File selected = chooser.showOpenDialog(mapCanvas.getScene().getWindow());
|
||
|
mapModel = new TinyMapModel(selected);
|
||
|
try {
|
||
|
mapModel.loadLines();
|
||
|
} catch (TinyMapException ex) {
|
||
|
showError("シェープファイルの読み込みでエラーが発生しました。", ex);
|
||
|
}
|
||
|
drawMapCanvas();
|
||
|
}
|
||
|
|
||
| ... | ... | |
|
*/
|
||
|
private void drawMapCanvas() {
|
||
|
clearMapCanvas();
|
||
|
if (mapModel == null) return;
|
||
|
GraphicsContext gc = mapCanvas.getGraphicsContext2D();
|
||
|
gc.setTransform(mapTransform);
|
||
|
gc.setStroke(Color.LIGHTGREEN);
|
||
| ... | ... | |
|
scaleLabel.setText(String.format("1/%,d", (int) (1 / (newValue.doubleValue() * dotPitchInMeter))));
|
||
|
});
|
||
|
// 初期縮尺の設定
|
||
|
scaleProperty.set(1 / mapToScale(5_000));
|
||
|
scaleProperty.set(1 / mapToScale(200_000_000));
|
||
|
// ウィンドウサイズの変更に合わせて地図表示用Canvasの大きさを連動
|
||
|
mapCanvas.widthProperty().bind(rootPane.widthProperty().subtract(120));
|
||
|
mapCanvas.heightProperty().bind(rootPane.heightProperty());
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
* 地図縮尺(例: 1 / 10,000)をAffineのscaleに変換する.
|
||
|
*
|
||
| ... | ... | |
|
double mapToScale(double reduce) {
|
||
|
return reduce * dotPitchInMeter;
|
||
|
}
|
||
|
|
||
|
private void showError(String message, Throwable ex) {
|
||
|
Alert alert = new Alert(Alert.AlertType.ERROR);
|
||
|
alert.setTitle("Tiny Map Viewer Message");
|
||
|
alert.setContentText(String.format("%s%n%s", message, ex.getLocalizedMessage()));
|
||
|
alert.showAndWait();
|
||
|
}
|
||
|
}
|
||
シェープファイルからポリラインデータを読み込み表示