Here is my link, is not empty:

javascript:PM.Map.zoom2extent('lotes','182','297281.51625+9212519.64125+297329.10875+9212613.35875','0')

how you can see, is almost the same to the shapefile layer (same feature):

javascript:PM.Map.zoom2extent('lotes_shape','181','297281.515876+9212519.64069+297329.108376+9212613.35819','0')

I´m not using metadata, just the tag TEMPLATE 'void'. My mapfile have only
this 2 layers. I´d like to show my configuration files.

Thanks again,

2010/3/21 Armin Burger <armin.bur...@gmail.com>

> the link for zoom2extent should look similar to
>
> javascript:PM.Map.zoom2extent('cities10000eu','8919','5620344.5911941+3195804.3745818+5640344.6104432+3215804.3998199','0')
>
> you report a link
> javascript:PM.Map.zoom2extent()
>
> if the '()' are empty then the error is somewhere before.
>
> I would encourage you to try various settings of layers enabled, query
> types, and check what works and what not. Otherwise you will not be able
> to narrow down the problem.
>
> BTW: the line 791 in map.php should be
>  $qLayer->set("data", $qLayer->getMetaData("PM_RESULT_DATASUBSTITION"));
>
> do you use this METADATA setting...?
>
> armin
>
> On 21/03/2010 17:43, Marcello Benigno wrote:
> > Armin, thanks for your help,
> >
> > Firebug shows the following message when i click in zoom button table
> > attributes (javascript:PM.Map.zoom2extent()):
> >
> > *PHP 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\Apache\htdocs\pmapper\incphp\map\map.php on line 791*
> >
> > And Pmapper don´t zooming selected feature... but only in PostGIS Layers,
> in
> > shapefiles everything works fine.
> >
> > I´m using:
> >
> >     - PHP 5.2.6
> >     - Mapserver 5.2.1
> >     - PostGIS 1.4 and PostgreSQL 8.4
> >
> > Any ideas?
> >
> > Thanks in advance
> >
> > 2010/3/21 Armin Burger<armin.bur...@gmx.net>
> >>
> >> please check your PHP and Javascript error log, report them, and mention
> >> also which version of Mapserver (and PHP) you're using, and when/where
> >> the error appears exactly.
> >>
> >> armin
> >>
> >> On 21/03/2010 15:50, Marcello Benigno wrote:
> >>> Hi Armin, hi all,
> >>>
> >>> First, congratulations to new pmapper version!  It´s really easier to
> >>> configured. But I don´t know why, when I use PostGIS Layers, the
> > function
> >>> javascript:PM.Map.zoom2extent() doesn´t woks. The same layer in
> > shapefile
> >>> format, works perfectly. I tried in Linux (Ubuntu 9.10) and in Windows
> > (7).
> >>>
> >>> Resuming, when the user clicked in the information button, the
> > attributes
> >>> window appear, but the zoom button in this window not working, the
> > loading
> >>> message appears for all the time.
> >>>
> >>> Am I missing any configuration?
> >>>
> >>> thanks in advance,
> >>>
> >>
> >>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>



-- 
Marcello Benigno B. de Barros Filho
Prof. do Curso Superior de Tecnologia em Geoprocessamento - IFPB
Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE
http://profmarcello.blogspot.com
<!-- edited with XMLSpy v2009 sp1 (http://www.altova.com) by Marcello (EMBRACE) -->
<pmapper>
	<ini>
		<pmapper>
			<pmTitle>p.mapper - A MapServer PHP/MapScript Framework</pmTitle>
			<debugLevel>3</debugLevel>
			<plugins>export</plugins>
			<plugins>scalebar</plugins>
			<plugins>transparency</plugins>
		</pmapper>
		<config>
			<pm_config_location>default</pm_config_location>
			<pm_javascript_location>javascript</pm_javascript_location>
			<pm_print_configfile>common/print.xml</pm_print_configfile>
			<pm_search_configfile>inline</pm_search_configfile>
		</config>
		<map>
			<mapFile>pmapper_demo.map</mapFile>
			<tplMapFile>common/template.map</tplMapFile>
			<categories>
				<category name="Cadastro">
					<group>lotes</group>
					<group>lotes_shape</group>
				</category>
			</categories>
			<allGroups>
				<group>lotes</group>
				<group>lotes_shape</group>
			</allGroups>
			<defGroups>
				<group>lotes</group>
			</defGroups>
			<layerAutoRefresh>1</layerAutoRefresh>
			<imgFormat>png</imgFormat>
			<altImgFormat>jpeg</altImgFormat>
			<sliderMin>10</sliderMin>
		</map>
		<query>
			<limitResult>300</limitResult>
			<highlightColor>0 255 255</highlightColor>
			<highlightSelected>1</highlightSelected>
			<autoZoom>nquery</autoZoom>
			<autoZoom>search</autoZoom>
			<zoomAll>search</zoomAll>
			<zoomAll>nquery</zoomAll>
			<infoWin>dynwin</infoWin>
			<alignQueryResults>1</alignQueryResults>
			<pointBuffer>10000</pointBuffer>
			<shapeQueryBuffer>0.02</shapeQueryBuffer>
		</query>
		<ui>
			<tocStyle>tree</tocStyle>
			<legendStyle>attached</legendStyle>
			<useCategories>1</useCategories>
			<catWithCheckbox>1</catWithCheckbox>
			<scaleLayers>1</scaleLayers>
			<icoW>18</icoW>
			<icoH>14</icoH>
		</ui>
		<locale>
			<defaultLanguage>br</defaultLanguage>
			<defaultCharset>UTF-8</defaultCharset>
			<map2unicode>1</map2unicode>
		</locale>
		<print>
			<printImgFormat>png</printImgFormat>
			<printAltImgFormat>jpeg</printAltImgFormat>
			<pdfres>2</pdfres>
		</print>
		<download>
			<dpiLevels>150</dpiLevels>
			<dpiLevels>200</dpiLevels>
			<dpiLevels>300</dpiLevels>
		</download>
		<php>
			<pearDbClass>MDB2</pearDbClass>
			<defaultTimeZone>Europe/Vienna</defaultTimeZone>
		</php>
		<pluginsConfig>
			<export>
				<formats>XLS</formats>
				<formats>CSV</formats>
				<formats>PDF</formats>
			</export>
		</pluginsConfig>
	</ini>
	
	  <searchlist version="1.0">
        <dataroot>$</dataroot>
        <searchitem name="cities" description="City">
            <layer type="shape" name="cities10000eu">
                <field type="s" name="NAME" description="City"  wildcard="0" />
            </layer>
        </searchitem>
        <searchitem name="countries" description="Country">
            <layer type="shape" name="countries">
                <field type="s" name="ISO2_CODE" description="Country" wildcard="2">
                    <definition type="options" connectiontype="ms" sort="asc" firstoption="*">
                        <mslayer encoding="ISO-8859-1" keyfield="ISO2_CODE" showfield="NAME"/>
                    </definition>
                </field>
            </layer>
        </searchitem>
        <!-- Sample for suggest function -->
        <searchitem name="cities_suggest_ms" description="Cities Suggest MS">
            <layer type="shape" name="cities10000eu">
                <field type="s" name="NAME" description="City" wildcard="2">
                    <definition type="suggest" connectiontype="ms" minlength="1" startleft="1" sort="asc">
                        <mslayer encoding="UTF-8"/>
                    </definition>
                </field> 
            </layer>
        </searchitem>
    </searchlist>
</pmapper>

Attachment: pmapper_demo.map
Description: Binary data

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to