forked from OSGeo/grass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
g.download.project: rename g.download.location (OSGeo#4187)
- Loading branch information
1 parent
e1b289f
commit 037a5ed
Showing
9 changed files
with
224 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
set grass=%1 | ||
set python=%2 | ||
|
||
call %grass% --tmp-project XY --exec g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz path=%USERPROFILE% | ||
call %grass% --tmp-project XY --exec g.download.project url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz path=%USERPROFILE% | ||
call %grass% --tmp-project XY --exec %python% -m grass.gunittest.main --grassdata %USERPROFILE% --location nc_spm_full_v2alpha2 --location-type nc --min-success 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,16 @@ | ||
<h2>DESCRIPTION</h2> | ||
|
||
<em>g.download.location</em> downloads an archived (e.g., | ||
<code>.zip</code> or <code>.tar.gz</code>) project (previously called | ||
location) from a given URL | ||
and unpacks it to a specified or current GRASS GIS Spatial Database. | ||
URL can be also a local file on the disk. | ||
|
||
If the archive contains a directory which contains a project, the module | ||
will recognize that and use the project automatically. | ||
The first directory which is a project is used. | ||
Other projects or any other files are ignored. | ||
|
||
<h2>EXAMPLES</h2> | ||
|
||
<h3>Download the full GRASS GIS sample project within a running session</h3> | ||
|
||
Download and unpack the full North Carolina sample project into the user's | ||
HOME directory: | ||
|
||
<div class="code"><pre> | ||
g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz path=$HOME | ||
</pre></div> | ||
|
||
<h3>Download the full GRASS GIS sample project in a temporary session</h3> | ||
|
||
In a temporary session, download and unpack the full North Carolina sample project | ||
into the user's HOME directory: | ||
|
||
<div class="code"><pre> | ||
grass --tmp-location XY --exec g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz path=$HOME | ||
</pre></div> | ||
|
||
<em>g.download.location</em> has been renamed to | ||
<a href="g.download.project.html">g.download.project</a> | ||
and exists for backwards compatibility reasons. | ||
It will be removed in the next major version. | ||
|
||
<h2>SEE ALSO</h2> | ||
|
||
<em> | ||
<a href="g.mapset.html">g.mapset</a>, | ||
<a href="g.mapsets.html">g.mapsets</a>, | ||
<a href="r.proj.html">r.proj</a>, | ||
<a href="v.proj.html">v.proj</a>, | ||
<a href="g.proj.all.html">g.proj.all</a> | ||
<a href="g.download.project.html">g.download.project</a> | ||
</em> | ||
|
||
<h2>AUTHOR</h2> | ||
|
||
Vaclav Petras, <a href="http://geospatial.ncsu.edu/osgeorel/">NCSU GeoForAll Lab</a> | ||
Vaclav Petras, <a href="http://geospatial.ncsu.edu/geoforall/">NCSU GeoForAll Lab</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
MODULE_TOPDIR = ../.. | ||
|
||
PGM = g.download.project | ||
|
||
include $(MODULE_TOPDIR)/include/Make/Script.make | ||
|
||
default: script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<h2>DESCRIPTION</h2> | ||
|
||
<em>g.download.project</em> downloads an archived (e.g., | ||
<code>.zip</code> or <code>.tar.gz</code>) project (previously called | ||
location) from a given URL | ||
and unpacks it to a specified or current GRASS GIS Spatial Database. | ||
URL can be also a local file on the disk. | ||
|
||
If the archive contains a directory which contains a project, the module | ||
will recognize that and use the project automatically. | ||
The first directory which is a project is used. | ||
Other projects or any other files are ignored. | ||
|
||
<h2>EXAMPLES</h2> | ||
|
||
<h3>Download the full GRASS GIS sample project within a running session</h3> | ||
|
||
Download and unpack the full North Carolina sample project into the user's | ||
HOME directory: | ||
|
||
<div class="code"><pre> | ||
g.download.project url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz path=$HOME | ||
</pre></div> | ||
|
||
<h3>Download the full GRASS GIS sample project in a temporary session</h3> | ||
|
||
In a temporary session, download and unpack the full North Carolina sample project | ||
into the user's HOME directory: | ||
|
||
<div class="code"><pre> | ||
grass --tmp-project XY --exec g.download.project url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz path=$HOME | ||
</pre></div> | ||
|
||
<h2>SEE ALSO</h2> | ||
|
||
<em> | ||
<a href="g.mapset.html">g.mapset</a>, | ||
<a href="g.mapsets.html">g.mapsets</a>, | ||
<a href="r.proj.html">r.proj</a>, | ||
<a href="v.proj.html">v.proj</a>, | ||
<a href="g.proj.all.html">g.proj.all</a> | ||
</em> | ||
|
||
<h2>AUTHOR</h2> | ||
|
||
Vaclav Petras, <a href="http://geospatial.ncsu.edu/geoforall/">NCSU GeoForAll Lab</a> |
Oops, something went wrong.