Skip to content

Commit 7a4691d

Browse files
committed
Built site for gh-pages
1 parent 9e9b4d5 commit 7a4691d

14 files changed

Lines changed: 113 additions & 141 deletions

File tree

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
91c77e69
1+
cde5ecfe

documentation/gdalfuns/epsg2proj.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,7 @@ <h1 class="title">epsg2proj</h1>
416416
</header>
417417

418418

419-
<p>wkt2proj(wkt_str::String) = toPROJ4(importWKT(wkt_str))</p>
420-
<p>““” epsg2proj(code::Integer)</p>
419+
<pre><code>epsg2proj(code::Integer)</code></pre>
421420
<p>Convert a EPSG code into the PROJ4 form.</p>
422421

423422

documentation/gdalfuns/epsg2wkt.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,7 @@ <h1 class="title">epsg2wkt</h1>
416416
</header>
417417

418418

419-
<p>epsg2proj(code::Integer) = toPROJ4(importEPSG(code))</p>
420-
<p>““” epsg2wkt(code::Integer, pretty::Bool=false)</p>
419+
<pre><code>epsg2wkt(code::Integer, pretty::Bool=false)</code></pre>
421420
<p>Convert a EPSG code into the WKT form. Use <code>pretty=true</code> to return a more human readable text.</p>
422421

423422

documentation/gdalfuns/gdalread.html

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,8 @@
391391
<div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
392392
<!-- sidebar -->
393393
<!-- margin-sidebar -->
394-
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
395-
<nav id="TOC" role="doc-toc" class="toc-active">
396-
<h2 id="toc-title">On this page</h2>
397-
398-
<ul class="collapse">
399-
<li><a href="#section" id="toc-section" class="nav-link active" data-scroll-target="#section">—————————————————————————————————</a></li>
400-
</ul>
401-
</nav>
394+
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
395+
402396
</div>
403397
<!-- main -->
404398
<main class="content" id="quarto-document-content">
@@ -422,27 +416,19 @@ <h1 class="title">gdalread</h1>
422416
</header>
423417

424418

425-
<p>function gdalshade(fname; kwargs…) d = KW(kwargs) band = ((val = find_in_dict(d, [:band], false)[1]) !== nothing) ? string(val) : “1” cmap = find_in_dict(d, CPTaliases)[1] # The color cannot be passed to second call to gdaldem</p>
426-
<pre><code>A = gdaldem(fname, "color-relief", ["-b", band], C=cmap)
427-
B = gdaldem(fname, "hillshade"; d...)
428-
blendimg!(A, B)</code></pre>
429-
<p>end</p>
430-
<section id="section" class="level1">
431-
<h1>—————————————————————————————————</h1>
432-
<p>““” gdalread(fname::AbstractString, opts=String[]; gdataset=false, kwargs…)</p>
419+
<pre><code>gdalread(fname::AbstractString, opts=String[]; gdataset=false, kwargs...)</code></pre>
433420
<p>Read a raster or a vector file from a disk file and return the result either as a GMT type (the default) or a GDAL dataset.</p>
434421
<ul>
435-
<li><code>fname</code>: Input data. It can be a file name, a <a href="../..\documentation/general/types.html#sec-grid-type">GMTgrid</a> or <a href="../..\documentation/general/types.html#sec-image-type">GMTimage</a> object or a GDAL dataset</li>
436-
<li><code>opts</code>: List of options. The accepted options are the ones of the gdal_translate utility. This list can be in the form of a vector of strings, or joined in a simgle string.</li>
437-
<li><code>gdataset</code>: If set to <code>true</code> forces the return of a GDAL dataset instead of a GMT type.</li>
438-
<li><code>kwargs</code>: This options accept the GMT region (-R) and increment (-I)</li>
422+
<li><p><code>fname</code>: Input data. It can be a file name, a <a href="../..\documentation/general/types.html#sec-grid-type">GMTgrid</a> or <a href="../..\documentation/general/types.html#sec-image-type">GMTimage</a> object or a GDAL dataset</p></li>
423+
<li><p><code>opts</code>: List of options. The accepted options are the ones of the gdal_translate utility. This list can be in the form of a vector of strings, or joined in a simgle string.</p></li>
424+
<li><p><code>gdataset</code>: If set to <code>true</code> forces the return of a GDAL dataset instead of a GMT type.</p></li>
425+
<li><p><code>kwargs</code>: This options accept the GMT region (-R) and increment (-I)</p></li>
439426
</ul>
440427
<section id="returns" class="level3">
441428
<h3 class="anchored" data-anchor-id="returns">Returns</h3>
442429
<p>A GMT grid/image or a GDAL dataset</p>
443430

444431

445-
</section>
446432
</section>
447433

448434
</main> <!-- /main -->

documentation/gdalfuns/geod.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396
<h2 id="toc-title">On this page</h2>
397397

398398
<ul class="collapse">
399-
<li><a href="#example-compute-two-lines-starting-at-00-with-lengths-111100-50000-heading-at-15-and-45-degrees." id="toc-example-compute-two-lines-starting-at-00-with-lengths-111100-50000-heading-at-15-and-45-degrees." class="nav-link active" data-scroll-target="#example-compute-two-lines-starting-at-00-with-lengths-111100-50000-heading-at-15-and-45-degrees.">Example: Compute two lines starting at (0,0) with lengths 111100 &amp; 50000, heading at 15 and 45 degrees.</a></li>
399+
<li><a href="#example" id="toc-example" class="nav-link active" data-scroll-target="#example">Example</a></li>
400400
</ul>
401401
</nav>
402402
</div>
@@ -443,8 +443,9 @@ <h3 class="anchored" data-anchor-id="returns">Returns</h3>
443443
<li>azi - forward azimuth (degrees) at destination [dest].</li>
444444
</ul>
445445
</section>
446-
<section id="example-compute-two-lines-starting-at-00-with-lengths-111100-50000-heading-at-15-and-45-degrees." class="level2">
447-
<h2 class="anchored" data-anchor-id="example-compute-two-lines-starting-at-00-with-lengths-111100-50000-heading-at-15-and-45-degrees.">Example: Compute two lines starting at (0,0) with lengths 111100 &amp; 50000, heading at 15 and 45 degrees.</h2>
446+
<section id="example" class="level2">
447+
<h2 class="anchored" data-anchor-id="example">Example</h2>
448+
<p>Compute two lines starting at (0,0) with lengths 111100 &amp; 50000, heading at 15 and 45 degrees.</p>
448449
<pre><code>dest, = geod([0., 0], [15., 45], [[0, 10000, 50000, 111100.], [0., 50000]])[1]</code></pre>
449450

450451

documentation/gdalfuns/geodesic.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396
<h2 id="toc-title">On this page</h2>
397397

398398
<ul class="collapse">
399-
<li><a href="#example-compute-an-geodesic-between-points-00-and-3050-discretized-at-100-km-steps." id="toc-example-compute-an-geodesic-between-points-00-and-3050-discretized-at-100-km-steps." class="nav-link active" data-scroll-target="#example-compute-an-geodesic-between-points-00-and-3050-discretized-at-100-km-steps.">Example: Compute an geodesic between points (0,0) and (30,50) discretized at 100 km steps.</a></li>
399+
<li><a href="#example" id="toc-example" class="nav-link active" data-scroll-target="#example">Example</a></li>
400400
</ul>
401401
</nav>
402402
</div>
@@ -442,8 +442,9 @@ <h3 class="anchored" data-anchor-id="parameters">Parameters</h3>
442442
<h3 class="anchored" data-anchor-id="returns">Returns</h3>
443443
<p>A Mx2 matrix with the lon lat of the points along the geodesic when input is a matrix. A GMT dataset or a vector of it (when input is Vector{GMTdataset}).</p>
444444
</section>
445-
<section id="example-compute-an-geodesic-between-points-00-and-3050-discretized-at-100-km-steps." class="level2">
446-
<h2 class="anchored" data-anchor-id="example-compute-an-geodesic-between-points-00-and-3050-discretized-at-100-km-steps.">Example: Compute an geodesic between points (0,0) and (30,50) discretized at 100 km steps.</h2>
445+
<section id="example" class="level2">
446+
<h2 class="anchored" data-anchor-id="example">Example</h2>
447+
<p>Compute an geodesic between points (0,0) and (30,50) discretized at 100 km steps.</p>
447448
<pre><code>mat = geodesic([0 0; 30 50], step=100, unit=:k);</code></pre>
448449

449450

documentation/gdalfuns/loxodrome_direct.html

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,7 @@
396396
<h2 id="toc-title">On this page</h2>
397397

398398
<ul class="collapse">
399-
<li><a href="#example-compute-the-distance-and-azimuth-beyween-points-00-and-55" id="toc-example-compute-the-distance-and-azimuth-beyween-points-00-and-55" class="nav-link active" data-scroll-target="#example-compute-the-distance-and-azimuth-beyween-points-00-and-55">Example: Compute the distance and azimuth beyween points (0,0) and (5,5)</a></li>
400-
<li><a href="#section" id="toc-section" class="nav-link" data-scroll-target="#section">——————————————————————————————————-</a></li>
399+
<li><a href="#example" id="toc-example" class="nav-link active" data-scroll-target="#example">Example</a></li>
401400
</ul>
402401
</nav>
403402
</div>
@@ -428,9 +427,9 @@ <h1 class="title">loxodrome_direct</h1>
428427
<p>Given latitudes and longitudes of P1 and P2 on the ellipsoid, compute the azimuth a12 of the loxodrome P1P2, the arc length s along the loxodrome curve.</p>
429428
<p>Args:</p>
430429
<ul>
431-
<li><code>lon1, lat1, lon2, lat2</code>: - longitude and latitude of starting and end points (degrees).</li>
432-
<li><code>a</code> - major axis of the ellipsoid (meters). Default values for WGS84</li>
433-
<li><code>f</code> - flattening od the ellipsoid (default = 1 / 298.257223563)</li>
430+
<li><p><code>lon1, lat1, lon2, lat2</code>: - longitude and latitude of starting and end points (degrees).</p></li>
431+
<li><p><code>a</code> - major axis of the ellipsoid (meters). Default values for WGS84.</p></li>
432+
<li><p><code>f</code> - flattening od the ellipsoid (default = 1 / 298.257223563)</p></li>
434433
</ul>
435434
<section id="references" class="level3">
436435
<h3 class="anchored" data-anchor-id="references">References:</h3>
@@ -444,24 +443,10 @@ <h3 class="anchored" data-anchor-id="returns">Returns</h3>
444443
<li>Distance (meters) and azimuth from P1 to P2</li>
445444
</ul>
446445
</section>
447-
<section id="example-compute-the-distance-and-azimuth-beyween-points-00-and-55" class="level2">
448-
<h2 class="anchored" data-anchor-id="example-compute-the-distance-and-azimuth-beyween-points-00-and-55">Example: Compute the distance and azimuth beyween points (0,0) and (5,5)</h2>
446+
<section id="example" class="level2">
447+
<h2 class="anchored" data-anchor-id="example">Example</h2>
448+
<p>Compute the distance and azimuth beyween points (0,0) and (5,5)</p>
449449
<pre><code>dist, azim = loxodrome_inverse(0,0,5,5)</code></pre>
450-
<p>““” function loxodrome_inverse(lon1, lat1, lon2, lat2, a=6378137.0, f=0.0033528106647474805) D2R = pi / 180 lon1 <em>= D2R; lat1 </em>= D2R lon2 <em>= D2R; lat2 </em>= D2R e2 = f * (2 - f)</p>
451-
<pre><code>isolat1 = isometric_lat(lat1, e2)
452-
isolat2 = isometric_lat(lat2, e2)
453-
454-
# Compute changes in isometric latitude and longitude between P1 and P2
455-
Az12 = atan((lon2 - lon1), (isolat2 - isolat1)) # The azimuth
456-
# Compute distance along loxodromic curve
457-
m1 = meridian_dist(lat1, a, e2)
458-
m2 = meridian_dist(lat2, a, e2)
459-
lox_s = (m2 - m1) / cos(Az12);
460-
return lox_s, Az12 / D2R</code></pre>
461-
<p>end</p>
462-
</section>
463-
<section id="section" class="level1">
464-
<h1>——————————————————————————————————-</h1>
465450

466451

467452
</section>

documentation/gdalfuns/loxodrome_inverse.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396
<h2 id="toc-title">On this page</h2>
397397

398398
<ul class="collapse">
399-
<li><a href="#example-compute-the-distance-and-azimuth-beyween-points-00-and-55" id="toc-example-compute-the-distance-and-azimuth-beyween-points-00-and-55" class="nav-link active" data-scroll-target="#example-compute-the-distance-and-azimuth-beyween-points-00-and-55">Example: Compute the distance and azimuth beyween points (0,0) and (5,5)</a></li>
399+
<li><a href="#example" id="toc-example" class="nav-link active" data-scroll-target="#example">Example</a></li>
400400
</ul>
401401
</nav>
402402
</div>
@@ -443,8 +443,9 @@ <h3 class="anchored" data-anchor-id="returns">Returns</h3>
443443
<li>Distance (meters) and azimuth from P1 to P2</li>
444444
</ul>
445445
</section>
446-
<section id="example-compute-the-distance-and-azimuth-beyween-points-00-and-55" class="level2">
447-
<h2 class="anchored" data-anchor-id="example-compute-the-distance-and-azimuth-beyween-points-00-and-55">Example: Compute the distance and azimuth beyween points (0,0) and (5,5)</h2>
446+
<section id="example" class="level2">
447+
<h2 class="anchored" data-anchor-id="example">Example</h2>
448+
<p>Compute the distance and azimuth beyween points (0,0) and (5,5)</p>
448449
<pre><code>dist, azim = loxodrome_inverse(0,0,5,5)</code></pre>
449450

450451

documentation/gdalfuns/wkt2proj.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,7 @@ <h1 class="title">wkt2proj</h1>
416416
</header>
417417

418418

419-
<p>function proj2wkt(proj4_str::String; pretty::Bool=false) !startswith(proj4_str, “+proj=”) &amp;&amp; error(“$(proj4_str) is not a valid proj4 string”) toWKT(importPROJ4(proj4_str), pretty) end</p>
420-
<p>““” wkt2proj(wkt_str::String)</p>
419+
<pre><code>wkt2proj(wkt_str::String)</code></pre>
421420
<p>Convert a WKT SRS string into the PROJ4 form.</p>
422421

423422

documentation/gdalfuns/xy2lonlat.html

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,8 @@
391391
<div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
392392
<!-- sidebar -->
393393
<!-- margin-sidebar -->
394-
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
395-
<nav id="TOC" role="doc-toc" class="toc-active">
396-
<h2 id="toc-title">On this page</h2>
397-
398-
<ul class="collapse">
399-
<li><a href="#section" id="toc-section" class="nav-link active" data-scroll-target="#section">—————————————————————————————————</a></li>
400-
</ul>
401-
</nav>
394+
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
395+
402396
</div>
403397
<!-- main -->
404398
<main class="content" id="quarto-document-content">
@@ -422,39 +416,23 @@ <h1 class="title">xy2lonlat</h1>
422416
</header>
423417

424418

425-
<p>function lonlat2xy(xy::Vector{&lt;:Real}, t_srs_=nothing; t_srs=nothing, s_srs=prj4WGS84) vec(lonlat2xy(reshape(xy[:],1,length(xy)), t_srs_; t_srs=t_srs, s_srs=s_srs)) end lonlat2xy(x::Real, y::Real, t_srs_=nothing; t_srs=nothing, s_srs=prj4WGS84) = lonlat2xy([x y], t_srs_; t_srs=t_srs, s_srs=s_srs)</p>
426-
<p>function lonlat2xy(xy::Matrix{T}, t_srs_=nothing; t_srs=nothing, s_srs=prj4WGS84) where {T &lt;: Real} (t_srs_ !== nothing) &amp;&amp; (t_srs = t_srs_) isa(s_srs, Int) &amp;&amp; (s_srs = epsg2wkt(s_srs)) isa(t_srs, Int) &amp;&amp; (t_srs = epsg2wkt(t_srs)) (t_srs === nothing) &amp;&amp; error(“Must specify at least the target referencing system.”) opts = (size(xy,2) == 2) ? [“-s_srs”, s_srs, “-t_srs”, t_srs, “-overwrite”] : [“-s_srs”, s_srs, “-t_srs”, t_srs, “-overwrite”, “-dim”, “XYZ”] D = ogr2ogr(xy, opts) return D.data # Return only the array because that’s what was sent in end</p>
427-
<p>lonlat2xy(D::GMTdataset, t_srs_=nothing; t_srs=nothing, s_srs=prj4WGS84) = lonlat2xy([D], t_srs_; t_srs=t_srs, s_srs=s_srs) function lonlat2xy(D::Vector{&lt;:GMTdataset{T,2}}, t_srs_=nothing; t_srs=nothing, s_srs=prj4WGS84) where {T&lt;:Real} (t_srs_ !== nothing) &amp;&amp; (t_srs = t_srs_) isa(t_srs, Int) &amp;&amp; (t_srs = epsg2wkt(t_srs)) isa(s_srs, Int) &amp;&amp; (s_srs = epsg2wkt(s_srs))</p>
428-
<pre><code>(D[1].proj4 == "" &amp;&amp; D[1].wkt == "" &amp;&amp; t_srs === nothing) &amp;&amp; error("No projection information whatsoever on the input data.")
429-
if (t_srs != "") _t_srs = t_srs
430-
else _t_srs = (D[1].proj4 != "") ? D[1].proj4 : D[1].wkt
431-
end
432-
opts = (size(D[1].data,2) == 2) ? ["-s_srs", s_srs, "-t_srs", t_srs, "-overwrite"] :
433-
["-s_srs", s_srs, "-t_srs", t_srs, "-overwrite", "-dim", "XYZ"]
434-
r = ogr2ogr(D, opts)
435-
# For some bloody reason if we don't do this and call gdalwarp after, we get a "gdalwarp returned a NULL pointer." error
436-
(length(D) &gt; 1) &amp;&amp; ogr2ogr([0.0 0], ["-s_srs", "+proj=lonlat", "-t_srs", "+proj=lonlat", "-overwrite"])
437-
return r</code></pre>
438-
<p>end</p>
439-
<section id="section" class="level1">
440-
<h1>—————————————————————————————————</h1>
441-
<p>““” xy2lonlat(xy::Matrix{&lt;:Real}, s_srs=““; s_srs=”“, t_srs=”+proj=longlat +datum=WGS84”) or</p>
419+
<pre><code>xy2lonlat(xy::Matrix{&lt;:Real}, s_srs=""; s_srs="", t_srs="+proj=longlat +datum=WGS84")</code></pre>
420+
<p>or</p>
442421
<pre><code>xy2lonlat(D::GMTdataset, s_srs=""; s_srs="", t_srs="+proj=longlat +datum=WGS84")</code></pre>
443422
<p>Computes the inverse projection from XY to LonLat in the given projection. The output is assumed to be in WGS84. If that isn’t right, pass the appropriate projection info via the <code>t_srs</code> option (PROJ4, WKT, EPSG).</p>
444423
<section id="parameters" class="level3">
445424
<h3 class="anchored" data-anchor-id="parameters">Parameters</h3>
446425
<ul>
447-
<li><code>xy</code>: The input data. It can be a Matrix, or a <a href="../..\documentation/general/types.html#sec-dataset-type">GMTdataset</a> (or vector of it)</li>
448-
<li><code>s_srs</code>: The data projection system. This can be a PROJ4, a WKT string or EPSG code</li>
449-
<li><code>t_srs</code>: The target SRS. If the default is not satisfactory, provide a new projection info (PROJ4, WKT, EPSG)</li>
426+
<li><p><code>xy</code>: The input data. It can be a Matrix, or a <a href="../..\documentation/general/types.html#sec-dataset-type">GMTdataset</a> (or vector of it)</p></li>
427+
<li><p><code>s_srs</code>: The data projection system. This can be a PROJ4, a WKT string or EPSG code.</p></li>
428+
<li><p><code>t_srs</code>: The target SRS. If the default is not satisfactory, provide a new projection info (PROJ4, WKT, EPSG)</p></li>
450429
</ul>
451430
</section>
452431
<section id="returns" class="level3">
453432
<h3 class="anchored" data-anchor-id="returns">Returns</h3>
454433
<p>A Matrix if input is a Matrix or a GMTdadaset if input had that type</p>
455434

456435

457-
</section>
458436
</section>
459437

460438
</main> <!-- /main -->

0 commit comments

Comments
 (0)