Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Miscellaneous'WorldPlot'

  • To: mathgroup at smc.vnet.net
  • Subject: [mg56087] Re: [mg55870] Miscellaneous'WorldPlot'
  • From: Omega Consulting <info at omegaconsultinggroup.com>
  • Date: Fri, 15 Apr 2005 04:47:27 -0400 (EDT)
  • References: <200504080536.BAA25173@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I didn't see a response to this, so here's mine.

WorldPlot is simply being fussy. It is complaining because the result 
of the projection is symbolic, not numerical. Wrapping your projection 
in N does the trick.

<<Miscellaneous`WorldPlot`

WorldPlot [Europe,
     WorldRange->{{-90,90},{-90,90}},
     WorldProjection->(N[{2*Cos[#1*Pi/10800]*Sin[#2*Pi/10800]/
                               (1+Cos[#1*Pi/10800]*Cos[#2*Pi/10800]),
                               2*Sin[#1*Pi/10800]/
                               (1+Cos[#1*Pi/10800]*Cos[#2*Pi/10800])}]&)]

----------------------------------------------
Omega Consulting
The final answer to your Mathematica needs.
http://omegaconsultinggroup.com

On Apr 8, 2005, at 12:36 AM, Hanka Lakomá wrote:

> Dear Group,
> I try to get a map in stereographic projection in transverse position 
> (the centre of the map is point 0°latitude, 0°longitude).
> I have cartographic equations of this projection in wanted position. 
> So I put them to WorldProjection:
>
> Miscellaneous'WorldPlot'
> WorldPlot [Europe,
>     WorldRange->{{-90,90},{-90,90}},
>     WorldProjection->({2*Cos[#1*Pi/10800]*Sin[#2*Pi/10800]/
>                               (1+Cos[#1*Pi/10800]*Cos[#2*Pi/10800]),
>                               2*Sin[#1*Pi/10800]/
>                               (1+Cos[#1*Pi/10800]*Cos[#2*Pi/10800])}&)]
>
> and I get from Mathematica 4.2:
> WorldGraphics::"badproj" :
> The projection function {....,...} did not return a valid coordinate...
>
> If I change Europe for another possible continent or state it gives 
> the same type of error...
> If I change WorldRange for another possible it gives the same type of 
> error...
> Is a problem in projection function and Why? I know from cartography 
> textbooks that equations are correct...
> Any help would be appreciated.
> Thank you for your time and consideration.
> Hanka
>


  • Prev by Date: Re: Problem with ListPlotVectorField3D
  • Next by Date: von Neumann Cellular Automaton
  • Previous by thread: Miscellaneous'WorldPlot'
  • Next by thread: Re: Miscellaneous'WorldPlot'