Hello Pedro and Armin

Many thanks for the aswers.

We implemented the procedures that Pedro described, but the problem
persist anyway.

I installed FireBug, the Firefox plugin, and realized that there's
something wrong with the index of the fields of the shapefile. 
In red are the names of the fields of the shapefiles. The same message
appears in the PHP log.

The zip file whit the shapefile is created correctly (including fields)
and the temporary directory is removed also without problems.

Does this messages ring any bells to you?



[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
69
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
101
[24-Aug-2011 09:51:18] PHP Notice:  Undefined index:  NUTS2_COD in
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
110
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
69
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
101
[24-Aug-2011 09:51:18] PHP Notice:  Undefined index:  NUTS2_02DS in
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
110
[24-Aug-2011 09:51:18] PHP Notice:  Undefined variable: str in
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
167
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
69
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
101
[24-Aug-2011 09:51:18] PHP Notice:  Undefined index:  RESIDENT_T in
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
110
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
69
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
101
[24-Aug-2011 09:51:18] PHP Notice:  Undefined index:  RESIDENT_H in
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
110
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
69
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
101
[24-Aug-2011 09:51:18] PHP Notice:  Undefined index:  RESIDENT_M in
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
110
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
69
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
101
[24-Aug-2011 09:51:18] PHP Notice:  Undefined index:  PRESENTE_T in
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
110
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
69
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
101
[24-Aug-2011 09:51:18] PHP Notice:  Undefined index:  PRESENTE_H in
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
110
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
69
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
101
[24-Aug-2011 09:51:18] PHP Notice:  Undefined index:  PRESENTE_M in
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
110
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
69
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
101
[24-Aug-2011 09:51:18] PHP Notice:  Undefined index:  FAMILIAS in
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
110
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
69
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
101
[24-Aug-2011 09:51:18] PHP Notice:  Undefined index:  ALOJAMENTO in
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
110
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
69
[24-Aug-2011 09:51:18] PHP Notice:  Trying to get property of non-object
in /ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
101
[24-Aug-2011 09:51:18] PHP Notice:  Undefined index:  EDIFICIOS in
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php on line
110
[24-Aug-2011 09:51:18] PHP Warning:  Cannot modify header information -
headers already sent by (output started at
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/export.shp.php:101) in
/ms4w/apps/pmapper/pmapper-4.1.1/plugins/export/x_export.php on line 43

Regards
Francisco

Francisco Caldeira
Serviço de GeoInformação
I.N.E. - Instituto Nacional de Estatística
Avenida António José de Almeida
1078 Lisboa Codex
Portugal
francisco.calde...@ine.pt
(351) - 21 8426100
Ext. 1438


-----Original Message-----
From: Pedro Venâncio [mailto:pedrongvenan...@yahoo.com] 
Sent: terça-feira, 23 de Agosto de 2011 11:19
To: pMapper Mailing List
Cc: Francisco Caldeira
Subject: Re: [pmapper-users] Export to shapefile

Hello Francisco and Armin,

I have an application running on Ubuntu (pMapper Mapserver 5.6 and 4.0)
with the Export to SHP working.

I added the dbase extension via PECL repository, running the command: 
$ sudo pecl install dbase channel://pecl.php.net/dbase-5.0.1

After, I added the path on the file /../php5/apache2/php.ini

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

extension=/usr/lib/php5/20090626+lfs/php_mapscript.so
extension=/usr/lib/php5/20090626+lfs/dbase.so


And on the file /../../config_default.xml

        <pluginsConfig>
            <export>
                <formats>CSV</formats>
                <formats>PDF</formats>
                <formats>SHP</formats>
            </export>
            
            
Works, however it only works for files already in SHP as a data source
(does not work for PostGIS data). I do not know if this is an imposition
of the plugin.

On the other hand, I have a strange behavior... If I select some
features, eg from a road network layer, and export to shp, it works fine.
Then, if I refresh the map and select another features from a different
layer, are exported the features of this new layer and the former (road
network selection). Why is this happening?

Best regards,
Pedro Venâncio





----- Original Message -----
From: Armin Burger 

you need to check the PHP error log (could be an error of deletion of 
the tmp dir with the shape), and Javascript errors in a JS console or in 
Firebug. The FAQ's contain a debugging how-to.

armin

On 22/08/2011 16:25, Francisco Caldeira wrote:
> Hi,
>
> As anyone tested the export to shapefile option on Linux with success?
> Works fine for me in Windows, but in Linux CentOS the button Download
is
> never visible, although the zip file with the shapefile is created on
the
> webserver…
>
> Regards
> Francisco
>
> Francisco Caldeira
> Serviço de GeoInformação
> I.N.E. - Instituto Nacional de Estatística
> Avenida António José de Almeida
> 1078 Lisboa Codex
> Portugal
> francisco.calde...@ine.pt
> (351) - 21 8426100
> Ext. 1438
>
>
>
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users

-------------------------------------------------------------------------
-----
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion
and 
the tools developers use with it. Learn more about uberSVN and get a free

download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


-------------------------------------------------------------------------
-----
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


"Confidencialidade: Esta mensagem (e eventuais ficheiros anexos) � destinada 
exclusivamente �s pessoas nela indicadas e tem natureza confidencial. Se 
receber esta mensagem por engano, por favor contacte o remetente e elimine a 
mensagem e ficheiros, sem tomar conhecimento do respectivo conte�do e sem 
reproduzi-la ou divulg�-la.

Confidentiality Warning: This e-mail message (and any attached files) is 
confidential and is intended solely for the use of the individual or entity to 
whom it is addressed. lf you are not the intended recipient of this message 
please notify the sender and delete and destroy all copies immediately."

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to