[ka-Map-users] Problem with extent in kamap demo little changed
Paul Spencer
pspencer at dmsolutions.ca
Fri Dec 9 09:42:25 EST 2005
Marco,
the array that is the third parameter in the config file is an array
of scale values, not an array of extents. ka-Map only uses the
extents from the map file.
The scale values should all be positive and from largest number to
smallest number as in the example.
You will probably want to start around 5000000 and go down from there.
The inchesPerUnit array in init.php is used to convert a scale value
to some geographic extents when the init.php script is called with a
center point and scale rather than extents or nothing (which results
in the default extents).
Cheers
Paul
On 9-Dec-05, at 5:55 AM, Marco Vieira wrote:
> Hi list.
> I Changed the extent in gmap75.map to:
>
> EXTENT -82.3512420 -56.8510672 -33.9029540 -3.0499433
> UNITS DD
> PROJECTION
> "proj=latlong"
> "ellps=GRS80"
> END
>
> and in the config.php:
>
> $aszMapFiles = array(
> "lbs" => array( "Lbs (Teste)", "./lbs.map",
> //array( 15000000, 7500000, 3000000, 1000000 ),
> array( -52, -30.5, -51, -29.5 ),
> "JPEG")
> and put a South America image as a default layer.
>
> This map file runs well when I call it with mapserver cgi but in
> kamap I
> get the following error:
>
> "[MapServer Error]: setExtent(): Given map extent is invalid. in
> ....\init.php on line 93"
>
> Does the init.php prepareted to calculate negative coordinates in
> the
> demo?
> Whats mean the
> $inchesPerUnit = array(1, 12, 63360.0, 39.3701, 39370.1, 4374754);
> line in init.php?
> Whats worng with my changes?
>
> Thank's for while.
>
> Marco Vieira.
> Fone: + 55 21 9499-6800
> marco_vieira at uk2.net
>
>
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the ka-Map-users
mailing list