Hi
I have more information about my problen with pmapper and postgis (see
past mail " [pmapper-users] Postgis ¿ The problem is the row s
quantity?"). When i edit map.php and delete the lines 759 to 801 (see
the code in the bottom) the problem dissapear and the display is OK.

Can you help with  the problem?


/*else {
            // Add selected shape to new layer

            // Modified by Thomas RAFFIN (SIRAP)
            // use layers with complex queries that are too long to
select results
            // cause maxscaledenom is not used...
            if ($qLayer->getMetaData("PM_RESULT_DATASUBSTITION") != "") {
                $olddata = $qLayer->data;
                $qLayer->set("data",
$qLayer->getMetaData("PM_RESULT_DATASUBSTITION"));
            }

            $qLayer->open();
            foreach ($shpindexes as $resShpIdx) {
                if (preg_match("/@/", $resShpIdx)) {
                    $idxList = explode("@", $resShpIdx);
                    $resTileShpIdx = $idxList[0];
                    $resShpIdx = $idxList[1];
                } else {
                    $resTileShpIdx = $resulttilelayer[$resShpIdx];
                }

                $resShape = $qLayer->getShape($resTileShpIdx, $resShpIdx);
                                
                // Change projection to map projection if necessary
                if ($changeLayProj) {
                    // If error appears here for Postgis layers, then
DATA is not defined properly as:
                    // "the_geom from (select the_geom, oid, xyz from
layer) AS new USING UNIQUE oid USING SRID=4258"
                    $resShape->project($qLayerProjObj, $mapProjObj);
                }
                                pm_logDebug(3, $shpindexes, "$shpindexes 
-------fffffff----------------");
                pm_logDebug(3, $resShape, "$resShape
----------------------------------");
                $newResLayer->addFeature($resShape);
            }

            $qLayer->close();

            // Modified by Thomas RAFFIN (SIRAP)
            // reset data tag
            if (isset($olddata)) {
                $qLayer->set("data", $olddata);
            }

        } */



-- 
Fernando Bordignon

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to