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

Promote ogr_layer_algebra.py to official Python script #1581

Closed
rouault opened this issue May 25, 2019 · 12 comments
Closed

Promote ogr_layer_algebra.py to official Python script #1581

rouault opened this issue May 25, 2019 · 12 comments
Labels
good first issue Issue suitable for beginners task Planned work (implies someone assigns it to him/her)

Comments

@rouault
Copy link
Member

rouault commented May 25, 2019

The gdal/swig/python/samples/ogr_layer_algebra.py should be promoted to an official Python script

Steps:

  • move it to gdal/swig/python/scripts
  • create a new test script for it in autotest/pyscripts/test_ogr_layer_algebra.py
  • write a documentation page in doc/source/programs/ogr_layer_algebra (and link it to the index)
@rouault rouault added task Planned work (implies someone assigns it to him/her) good first issue Issue suitable for beginners labels May 25, 2019
@imshuv
Copy link

imshuv commented Dec 27, 2020

hey, i want to contribute in this project.. can anyone please guide me how to ?

@jatin142002
Copy link

I want to fix this issue , can anyone please help me with it ?? I need little bit of guidance so that I can make my first commit properly in this org .

@jatin142002
Copy link

I have completed the first step of this issue .
I have shifted ogr_layer_algebra.py to gdal/swig/python/scripts

@rouault
Copy link
Member Author

rouault commented Sep 27, 2021

I have shifted ogr_layer_algebra.py to gdal/swig/python/scripts

ah the ticket description is a bit outdated. There have been a rework in python utilities since it was written. There should be a simple calling ogr_layer_algebra.py script in swig/python/gdal-utils/scripts/ that calls the main script in swig/python/gdal-utils/osgeo_utils/ (usable as a function). You can look at other utilities for inspiration

@jatin142002
Copy link

Sir , actually I am beginner what I am unable to understand is what to do in test script ?? Could you please give some easy instructions so that I am able to grab it . I read other test scripts but it is difficult for me to understand them .

@rouault
Copy link
Member Author

rouault commented Sep 27, 2021

Well, I don't know anything about your background, education, experience in programming or interest for geospatial, so it is hard to provide guidance. I don't want to discourage you, but I'd say that GDAL isn't propably the project most suited for beginners. The code base is non trivial, requires knowledge of the domain and our criterion for acceptance of pull requests are quite demanding. You need at least some familiarity with the language(s) of the part of the code base you touch, and with what it does. Perhaps that looking at the documentation for typos, grammar mistakes, broken links, etc would be a better possibility of contributing.

@kssvrk
Copy link
Contributor

kssvrk commented Sep 23, 2022

@rouault Is this issue still valid? Can I take this up

@rouault
Copy link
Member Author

rouault commented Sep 23, 2022

Is this issue still valid? Can I take this up

yes

@kssvrk
Copy link
Contributor

kssvrk commented Sep 23, 2022

@rouault Is there any version of existing documentation refering OGR_Layer_algebra other than the RFC that you know of?

@jratike80
Copy link
Collaborator

jratike80 commented Sep 23, 2022

There is this wiki page https://trac.osgeo.org/gdal/wiki/LayerAlgebra and I suppose that @ajolma can be connected.
Maybe the two Python tests here https://trac.osgeo.org/gdal/attachment/wiki/rfc39_ogr_layer_algebra/ are also useful.

@rouault
Copy link
Member Author

rouault commented Sep 23, 2022

Is there any version of existing documentation refering OGR_Layer_algebra other than the RFC that you know of?

the API documentation of the OGRLayer class: https://gdal.org/api/ogrlayer_cpp.html + source code at https://github.com/OSGeo/gdal/blob/master/ogr/ogrsf_frmts/generic/ogrlayer.cpp

@kssvrk
Copy link
Contributor

kssvrk commented Sep 23, 2022

@jratike80 those RFC 39 tests will be a good help.
@rouault thanks for the pointers. I will see if i can submit a PR by next week for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Issue suitable for beginners task Planned work (implies someone assigns it to him/her)
Projects
None yet
Development

No branches or pull requests

5 participants