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

Deprecation warning when transforming a single point enclosed in numpy array #1356

Closed
pnsaevik opened this issue Nov 2, 2023 · 1 comment

Comments

@pnsaevik
Copy link

pnsaevik commented Nov 2, 2023

Code Sample, a copy-pastable example if possible

import pyproj
import numpy as np
import warnings

with warnings.catch_warnings():
    warnings.simplefilter("error")
    pyproj.Transformer.from_crs(4326, 25830).transform(np.array([60]), np.array([5]))

Problem description

There should be no reason why this transform would raise a warning. There must be something fishy going on inside the compiled code.

Expected Output

No warnings

Environment Information

Output from: pyproj -v

$ pyproj -v
#
# Name                    Version                   Build  Channel
 pyproj info:
    pyproj: 3.6.1
      PROJ: 9.3.0
  data dir: C:\Miniconda3\envs\testenv\Lib\site-packages\pyproj\proj_dir\share\proj
user_data_dir: C:\Users\a5606\AppData\Local/proj
PROJ DATA (recommended version): 1.15
PROJ Database: 1.2
EPSG Database: v10.094 [2023-08-08]
ESRI Database: ArcGIS Pro 3.1 [2023-19-01]
IGNF Database: 3.1.0 [2019-05-24]

System:
    python: 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:26:23) [MSC v.1916 64 bit (AMD64)]
executable: C:\Miniconda3\envs\testenv\python.exe
   machine: Windows-10-10.0.19042-SP0

Python deps:
   certifi: 2023.7.22
    Cython: None
setuptools: 68.0.0
       pip: 23.3

  • pyproj version (python -c "import pyproj; print(pyproj.__version__)"): 3.6.1
  • PROJ version (python -c "import pyproj; print(pyproj.proj_version_str)"): 9.3.0
  • PROJ data directory (python -c "import pyproj; print(pyproj.datadir.get_data_dir())"): C:\Miniconda3\envs\testenv\Lib\site-packages\pyproj\proj_dir\share\proj
  • Python version (python -c "import sys; print(sys.version.replace('\n', ' '))"): 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:26:23) [MSC v.1916 64 bit (AMD64)]
  • Operation System Information (python -c "import platform; print(platform.platform())"): Windows-10-10.0.19042-SP0

Installation method

First: conda create -n testenv pyproj

Then: pip install --upgrade pyproj

Conda environment information (if you installed with conda):


Environment (conda list):
$ conda list proj
#
# Name                    Version                   Build  Channel
proj                      8.2.1                h5ed7ab8_0
pyproj                    3.6.1                    pypi_0    pypi


Details about conda and system ( conda info ):
$ conda info
     active environment : testenv
    active env location : C:\Miniconda3\envs\testenv
            shell level : 1
       user config file : C:\Users\a5606\.condarc
 populated config files : C:\Users\a5606\.condarc
          conda version : 23.3.1
    conda-build version : not installed
         python version : 3.10.10.final.0
       virtual packages : __archspec=1=x86_64
                          __cuda=11.4=0
                          __win=0=0
       base environment : C:\Miniconda3  (writable)
      conda av data dir : C:\Miniconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Miniconda3\pkgs
                          C:\Users\a5606\.conda\pkgs
                          C:\Users\a5606\AppData\Local\conda\conda\pkgs
       envs directories : C:\Miniconda3\envs
                          C:\Users\a5606\.conda\envs
                          C:\Users\a5606\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/23.3.1 requests/2.28.1 CPython/3.10.10 Windows/10 Windows/10.0.19042
          administrator : False
             netrc file : None
           offline mode : False
@pnsaevik pnsaevik added the bug label Nov 2, 2023
@snowman2
Copy link
Member

snowman2 commented Nov 2, 2023

Duplicate #1307

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants