[Chameleon] Unknown error with msProcessAutoProjection
Paul Spencer
pspencer at dmsolutions.ca
Mon Sep 19 08:09:11 EDT 2005
Ivan,
Chameleon generally expects you to have a projection defined in your
map file. This is somewhat unnecessary in the most general case, but
many of the widgets rely on a projection being set even if they don't
really need it, and the exception code to handle no project has not
been written. Please add an appropriate projection ... and
unfortunately I am not a PROJ expert so I can't help you there :( ...
but if you ask on the mapserver-users list with your parameters
below, someone will jump in, I am sure!
Cheers
Paul
PS if the problems persist after setting a projection, please get
back to this list ...
On 18-Sep-05, at 10:34 PM, Ivan Kautter wrote:
> List Subscribers,
>
> I am new to Chameleon. Glad to have found it. I have made slight
> modifications to the sample_roi application. Application produces
> correct map output in general however whenever
> msProcessAutoProjection is called in any php script I get an error
> of this nature:
>
> Fatal error: [MapServer Error]: _msProcessAutoProjection(): WMS/WFS
> AUTO PROJECTION must be in the format
> 'AUTO:proj_id,units_id,lon0,lat0' (got ''). in C:\ms4w\apps
> \chameleon\htdocs\widgets\ZoomSelectedLayers
> \ZoomSelectedLayers.widget.php on line 111
>
> This was true as well when I had the north arrow widget in the map
> application as well, which I removed to circumvent the problem.
>
> I specify no projection in my mapfile as thus far I have been
> depending on mapserver to choose an appropriate one. Is this the
> cause of the problem I am experiencing?
>
> I have failed to specify a projection as it is a California State
> based system that I am not sure how to define it for, I assume, PROJ.
>
> Here is the spatial reference for all data used in map as per
> ArcCataolg:
>
> Spatial Reference Information:
>
>
> Horizontal coordinate system definition:
> Coordinate system name:
> *Projected coordinate system name: Custom
> *Geographic coordinate system name: GCS_North_American_1983
>
>
> Planar:
> Map projection:
> *Map projection name: Albers Conical Equal Area
> Albers conical equal area:
> *Standard parallel: 34.000000
> *Standard parallel: 40.500000
> *Longitude of central meridian: -120.000000
> *Latitude of projection origin: 0.000000
> *False easting: 0.000000
> *False northing: -4000000.000000
>
>
> Planar coordinate information:
> *Planar coordinate encoding method: coordinate pair
> Coordinate representation:
> *Abscissa resolution: 0.002048
> *Ordinate resolution: 0.002048
> *Planar distance units: meters
>
>
> Geodetic model:
> *Horizontal datum name: North American Datum of 1983
> *Ellipsoid name: Geodetic Reference System 80
> *Semi-major axis: 6378137.000000
> *Denominator of flattening ratio: 298.257222
>
>
> I would be greatly appreciative of any assistance that anyone can
> offer. Thanks for your time and attention.
>
> Ivan Kautter
>
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the Chameleon
mailing list