Hi I noticed that Basemap 1.0.2 will replace the old pyshapelib with
the pure python shapelib.py. However, that did break some of my
scripts when I use custom shapefiles.
Here is a picture from Basemap 1.0.1,
http://imageshack.us/photo/my-images/69/basemap101.png/
and here the same script under Basemap 1.0.2,
http://imageshack.us/photo/my-images/854/basemap102.png/
and here is the script:
http://pastebin.com/WfePCFJi
It probably has something to do with the way shapelib.py handle the
lines, As soon as I have some time I'll take a better look into that,
but I would like to ask if anyone has seen this before and/or if you
have a suggestion/solution for it.
Thanks, Filipe
Filipe: Were you able to resolve this? I just updated shapefile.py in the git repository, so you might try again on the off chance a bug was fixed. If the problem still persists, please point me to a shapefile that triggers the problem.
-Jeff
···
On 9/29/11 9:44 AM, Filipe Pires Alvarenga Fernandes wrote:
Hi I noticed that Basemap 1.0.2 will replace the old pyshapelib with
the pure python shapelib.py. However, that did break some of my
scripts when I use custom shapefiles.
Here is a picture from Basemap 1.0.1,
ImageShack - Best place for all of your image hosting and image sharing needs
and here the same script under Basemap 1.0.2,
ImageShack - Best place for all of your image hosting and image sharing needs
and here is the script:
import matplotlib.pyplot as pltfrom matplotlib.patches import Polygonfrom mp - Pastebin.com
It probably has something to do with the way shapelib.py handle the
lines, As soon as I have some time I'll take a better look into that,
but I would like to ask if anyone has seen this before and/or if you
have a suggestion/solution for it.
Thanks, Filipe
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory
Hi I noticed that Basemap 1.0.2 will replace the old pyshapelib with
the pure python shapelib.py. However, that did break some of my
scripts when I use custom shapefiles.
Here is a picture from Basemap 1.0.1,
ImageShack - Best place for all of your image hosting and image sharing needs
and here the same script under Basemap 1.0.2,
ImageShack - Best place for all of your image hosting and image sharing needs
and here is the script:
import matplotlib.pyplot as pltfrom matplotlib.patches import Polygonfrom mp - Pastebin.com
It probably has something to do with the way shapelib.py handle the
lines, As soon as I have some time I'll take a better look into that,
but I would like to ask if anyone has seen this before and/or if you
have a suggestion/solution for it.
Thanks, Filipe
Filipe: Were you able to resolve this? I just updated shapefile.py in the
git repository, so you might try again on the off chance a bug was fixed.
If the problem still persists, please point me to a shapefile that triggers
the problem.
-Jeff
Thanks, but the problem persists. I haven't got time to look into it
yet, as soon as I do I'll get back to you.
Regarding the shapefile, I do not remember the official source
anymore, but you can get a copy here:
https://build.opensuse.org/package/files?package=python-basemap&project=home%3Aocefpaf
Thanks again, Filipe
···
On Thu, Oct 6, 2011 at 14:50, Jeff Whitaker <jswhit@...146...> wrote:
On 9/29/11 9:44 AM, Filipe Pires Alvarenga Fernandes wrote:
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory
Filipe: I believe I've fixed it - your shapefile now displays correctly for me. Please try updating from GitHub - matplotlib/basemap: Plot on map projections (with coastlines and political boundaries) using matplotlib.
-Jeff
···
On 10/9/11 6:38 AM, Filipe Pires Alvarenga Fernandes wrote:
On Thu, Oct 6, 2011 at 14:50, Jeff Whitaker<jswhit@...146...> wrote:
On 9/29/11 9:44 AM, Filipe Pires Alvarenga Fernandes wrote:
Hi I noticed that Basemap 1.0.2 will replace the old pyshapelib with
the pure python shapelib.py. However, that did break some of my
scripts when I use custom shapefiles.
Here is a picture from Basemap 1.0.1,
ImageShack - Best place for all of your image hosting and image sharing needs
and here the same script under Basemap 1.0.2,
ImageShack - Best place for all of your image hosting and image sharing needs
and here is the script:
import matplotlib.pyplot as pltfrom matplotlib.patches import Polygonfrom mp - Pastebin.com
It probably has something to do with the way shapelib.py handle the
lines, As soon as I have some time I'll take a better look into that,
but I would like to ask if anyone has seen this before and/or if you
have a suggestion/solution for it.
Thanks, Filipe
Filipe: Were you able to resolve this? I just updated shapefile.py in the
git repository, so you might try again on the off chance a bug was fixed.
If the problem still persists, please point me to a shapefile that triggers
the problem.
-Jeff
Thanks, but the problem persists. I haven't got time to look into it
yet, as soon as I do I'll get back to you.
Regarding the shapefile, I do not remember the official source
anymore, but you can get a copy here:
https://build.opensuse.org/package/files?package=python-basemap&project=home%3Aocefpaf
Thanks again, Filipe
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory