!yNLbWuxtZEZoUZYwKG:nixos.org

Nix Geospatial Team

33 Members
Nix Geospatial packages maintenance. Team board - https://github.com/orgs/NixOS/projects/47/views/18 Servers

Load older messages


SenderMessageTime
14 Jan 2024
@nh2:matrix.orgnh2
In reply to @imincik:matrix.org
nh2: there is also pdal upgrade ready in https://github.com/NixOS/nixpkgs/pull/273948
merged
11:44:18
@kai-tub:matrix.orgKai joined the room.19:21:03
15 Jan 2024
@imincik:matrix.orgIvan Mincik (imincik) qgis and qgis-ltr are currently both broken in master. 17:10:30
19 Jan 2024
@kidanger:kidanger.net@kidanger:kidanger.net joined the room.16:28:06
@kidanger:kidanger.net@kidanger:kidanger.netHi all! Small question, a bit related to the proj-data MR, about pyproj. Because of this patch https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/pyproj/001.proj.patch, it is not possible to override the proj data dir through the env var PROJ_DATA. internal_datadir is checked first (well, after the user data), and with the patch the path is always present on the disk and hardcoded. On way around that is to call pyproj.datadir.set_data_dir from python, but it is inconvenient to change the code because of nix, and also multiprocessing would make things very ugly, as it always does. Do you think we could adjust the patch to change the search priorities? or should it be changed upstream?18:22:13
@imincik:matrix.orgIvan Mincik (imincik)

Do you think we could adjust the patch to change the search priorities?

Sure, we can change the patch. Do you have some suggestions ?

18:29:04
@imincik:matrix.orgIvan Mincik (imincik) *

Do you think we could adjust the patch to change the search priorities?

Sure, we can change the patch if it makes a sense. Do you have some suggestions ?

18:29:13
@kidanger:kidanger.net@kidanger:kidanger.netmaybe this https://sebsauvage.net/paste/?c8d8b4d37cf621c1#DsbOMlBf2Y9FApjPiA9rXSSLOc1ntPEn7eJLwKSXVSU= I've just swapped the conditions in datadir.py (and compared to nixpkgs' patch, I had to update the setup.py "patch context")18:39:19
@kidanger:kidanger.net@kidanger:kidanger.netI'll test this for the project I'm packaging, as soon as I find how to override the patch18:40:26
@imincik:matrix.orgIvan Mincik (imincik)

You can try something like this

nix-shell -p 'proj.overrideAttrs (_: _: { patches = [(fetchpatch {url = "<PATCH-URL>"; hash = "";}) ]; })'
19:02:10
@imincik:matrix.orgIvan Mincik (imincik) Sorry, change proj to python3Packages.pyproj 19:03:23
@kidanger:kidanger.net@kidanger:kidanger.netit's all good I have something working (tests in nix, with some srtm tiles and proj data fetched for the tests), after so many hours spent today :(19:03:39
@imincik:matrix.orgIvan Mincik (imincik)I am happy to review your PR once you have something working.19:04:45
@kidanger:kidanger.net@kidanger:kidanger.netI can PR the patch above yes; but I'm not 100% confident it fits inside the ecosystem, so experts eyes are welcome! And it would be nice to understand what it means for the proj-data PR too.19:06:45
@imincik:matrix.orgIvan Mincik (imincik) BTW, there is related PR introducing proj-data and integrating to proj - https://github.com/NixOS/nixpkgs/pull/280062 19:07:28
@kidanger:kidanger.net@kidanger:kidanger.netyes that's what I was referring to with "the proj-data PR"19:12:07
@imincik:matrix.orgIvan Mincik (imincik) Ah, OK. Sorry. Now it makes a sense. 19:19:38
@imincik:matrix.orgIvan Mincik (imincik) You said proj-data MR instead of PR. I was wondering what does it mean :). 19:21:22
@kidanger:kidanger.net@kidanger:kidanger.netyes MR is in gitlab, PR in github :)19:27:48
@kidanger:kidanger.net@kidanger:kidanger.netthere it is https://github.com/NixOS/nixpkgs/pull/28213921:07:53
22 Jan 2024
@maka_77x:matrix.orgmaka_77x joined the room.03:04:12
29 Jan 2024
@imincik:matrix.orgIvan Mincik (imincik)https://discourse.nixos.org/t/geospatial-nix-flake-and-geospatial-nix-web-ui/3897411:32:40
1 Feb 2024
@mpickering:matrix.orgMatthew Pickering joined the room.00:09:52
@mpickering:matrix.orgMatthew PickeringGood evening, I have just opened a PR to fix an issue with the gdal packaging. https://github.com/NixOS/nixpkgs/pull/28539100:10:23
@mpickering:matrix.orgMatthew Pickeringthank you for your work maintaining the geospatial packages in nix00:10:34
@mpickering:matrix.orgMatthew PickeringI am still having issues with gdal2tiles.py after upgrading but I am not sure if they are nix related or not. I will keep everyone updated.00:12:21
@imincik:matrix.orgIvan Mincik (imincik)

Good evening, I have just opened a PR to fix an issue with the gdal packaging. https://github.com/NixOS/nixpkgs/pull/285391

Thanks for opening the PR. I am wondering how tests where passing if we where missing numpy. I'll have a look.

06:40:01
@mpickering:matrix.orgMatthew PickeringIt seems that gdal2tiles.py does actually work somehow with/without this change10:08:35
@mpickering:matrix.orgMatthew PickeringI was getting other errors due to some stale files it seemed but it is working now10:09:04
@imincik:matrix.orgIvan Mincik (imincik) Yes, but with your PR included, it is not complaining about missing numpy. I was checking wrapped files before and after your PR and before there was no numpy on PYTHONPATH of gdal2tiles.py. So PR might make a sense 10:11:54

Show newer messages


Back to Room ListRoom Version: 10