Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t.vect.import: rename location parameter to project #3610

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/gis/renamed_options
Original file line number Diff line number Diff line change
Expand Up @@ -733,3 +733,5 @@ v.proj|location:project
r.in.gdal|location:project
g.proj|location:project
v.in.ogr|location:project
t.vect.import|location:project
t.rast.import|location:project
16 changes: 8 additions & 8 deletions temporal/t.rast.import/t.rast.import.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# % keyword: import
# % keyword: raster
# % keyword: time
# % keyword: create location
# % keyword: create project
# %end

# %option G_OPT_F_INPUT
Expand Down Expand Up @@ -68,9 +68,9 @@
# %end

# %option
# % key: location
# % key: project
# % type: string
# % description: Create a new location and import the data into it. Do not run this module in parallel or interrupt it when a new location should be created
# % description: Create a new project and import the data into it. Do not run this module in parallel or interrupt it when a new project should be created
# % required: no
# % multiple: no
# %end
Expand All @@ -90,18 +90,18 @@

# %flag
# % key: e
# % description: Extend location extents based on new dataset
# % description: Extend project extents based on new dataset
# %end

# %flag
# % key: o
# % label: Override projection check (use current location's projection)
# % description: Assume that the dataset has same projection as the current location
# % label: Override projection check (use current projects's CRS)
# % description: Assume that the dataset has same coordinate reference system as the current location
# %end

# %flag
# % key: c
# % description: Create the location specified by the "location" parameter and exit. Do not import the space time raster datasets.
# % description: Create the project specified by the "project" parameter and exit. Do not import the space time raster datasets.
# %end

import grass.script as grass
Expand All @@ -117,7 +117,7 @@ def main():
directory = options["directory"]
title = options["title"]
descr = options["description"]
location = options["location"]
location = options["project"]
base = options["basename"]
memory = options["memory"]
set_current_region = flags["r"]
Expand Down
16 changes: 8 additions & 8 deletions temporal/t.vect.import/t.vect.import.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# % keyword: import
# % keyword: vector
# % keyword: time
# % keyword: create location
# % keyword: create project
# %end

# %option G_OPT_F_INPUT
Expand Down Expand Up @@ -66,27 +66,27 @@
# %end

# %option
# % key: location
# % key: project
# % type: string
# % description: Create a new location and import the data into it. Do not run this module in parallel or interrupt it when a new location should be created
# % description: Create a new project (location) and import the data into it. Do not run this module in parallel or interrupt it when a new project should be created
# % required: no
# % multiple: no
# %end

# %flag
# % key: e
# % description: Extend location extents based on new dataset
# % description: Extend project extents based on new dataset
# %end

# %flag
# % key: o
# % label: Override projection check (use current location's projection)
# % description: Assume that the dataset has same projection as the current location
# % label: Override projection check (use current projects's CRS)
# % description: Assume that the dataset has same coordinate reference system as the current project
# %end

# %flag
# % key: c
# % description: Create the location specified by the "location" parameter and exit. Do not import the space time vector datasets.
# % description: Create the project specified by the "project" parameter and exit. Do not import the space time vector datasets.
# %end

import grass.script as grass
Expand All @@ -102,7 +102,7 @@ def main():
directory = options["directory"]
title = options["title"]
descr = options["description"]
location = options["location"]
location = options["project"]
base = options["basename"]
exp = flags["e"]
overr = flags["o"]
Expand Down
Loading