Replies: 8 comments 11 replies
-
Please provide a minimal reproducible example of the code that previously worked: https://stackoverflow.com/help/minimal-reproducible-example |
Beta Was this translation helpful? Give feedback.
-
I have and in particular the section Proj (Not a generic latitude/longitude to projection converter). The code above is using |
Beta Was this translation helpful? Give feedback.
-
I tried it out and I was able to get a valid non-inf response with:
I also succeeded with conda and it returned a valid non-inf response as well:
|
Beta Was this translation helpful? Give feedback.
-
Adding to the test... Create a conda environment from
Create the test script
Run the script:
Output:
Conversion between datums is still not working. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Some suggestions:
name: pyproj_test
channels:
- conda-forge
dependencies:
- pyproj
- proj-data
- python=3.10 |
Beta Was this translation helpful? Give feedback.
-
Would |
Beta Was this translation helpful? Give feedback.
-
Though not the most ideal environment for setup, what did work is putting the
I have tried every which way with conda, and could not get it to work. I am not sure if this is something to do with my local environment or a more general problem with a conda install on Windows. |
Beta Was this translation helpful? Give feedback.
-
After additional testing, I found running
in the environment created from first yaml corrected the issue. That is, when pyproj was installed in the conda dependencies section. Please note, though the environment created with the second conda yaml, the one with pyproj installed in the pip section of the dependencies section, produced results, they are different from those of the former environment by several ftUS going from both NAD27 to NAD83 and from NAD83 to NAD27. Subsequently, I ran the |
Beta Was this translation helpful? Give feedback.
-
In previous versions of pyproj, I was able to convert points between different datums. Specifically, NAD27 to NAD83 with both geographic and Cartesian coordinates. Is there a setting that needs to be set.? Is there a specific workflow to enable the conversions again? I have installed proj-data, but this had no effect.
When going from NAD27 geographic coordinates to NAD27 Cartesian coordinates, the transformation works. When the setting the geographic coordinates to NAD83, inf values are returned. This code has worked in the past versions. I suspect it is a configuration issue.
Beta Was this translation helpful? Give feedback.
All reactions