[pmapper-users] Fw: Export to shapefile

2011-08-24 Thread Pedro Venâncio
Correcting my previous email... 

Opening the DBF in OpenOffice, the attributes appear correctly.

Opening the SHP in QGIS, the attribute table is blank and the geometry does not 
appear. 

In gvSIG appear the data of the attribute table, but not the geometry. 

ArcGIS returns the message:
Error opening feature class
Number of shapes does not match the number of table records

I leave here an example: 
http://dl.dropbox.com/u/5772257/shp_rqa23m4v49sa1mh3dos3gfeto3.zip  

Best regards,
Pedro





- Forwarded Message -

Hello Armin,

I've been testing on a Ubuntu 11.04 clean machine, with Mapserver 6 and pMapper 
4.2, and everything works fine with those steps I have described, however, the 
resulting export shapefiles appear in blank, with no geometry and no 
attributes. The 3 files (SHP, SHX and DBF) are exported, DBF file has the 
correct columns, but with no rows.

ogrinfo gives:

venancio@venancio-VirtualBox:~/shp_8nbahf6vlp13deacbrnh3it3u3$ ogrinfo -al 
localidades.shp
INFO: Open of `localidades.shp'
  using driver `ESRI Shapefile' successful.
Layer name: localidades
Geometry: Point
Feature Count: 0
Extent: (0.00, 0.00) - (0.00, 0.00)
Layer SRS WKT:
(unknown)
GEONAMEID: Integer (7.0)
NAME: String (17.0)
ASCIINAME: String (17.0)
ISO2_CODE: String (8.0)
POPULATION: Integer (6.0)
GTOPO30: Integer (3.0)


Is the problem from Mapserver 6 or pMapper 4.2? Has anyone tried the export to 
shp on these versions?

Best regards,
Pedro




- Original Message -
From: Armin Burger 
To: Francisco Caldeira 
Cc: pmapper-users 
Sent: Wednesday, August 24, 2011 10:13 AM
Subject: Re: [pmapper-users] Export to shapefile

Check your php.ini settings according to the description here:

http://svn.pmapper.net/trac/wiki/DocQuickinstall#PHP.INI

see especially the parts that are marked as "IMPORTANT!!!"

You get a series of "notices" and probably have "display errors" set
to "on", therefore you likely get the last warning message saying that
the headers have already been sent.


armin

--
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


Re: [pmapper-users] Export to shapefile

2011-08-24 Thread Pedro Venâncio
Hello Armin,

I've been testing on a Ubuntu 11.04 clean machine, with Mapserver 6 and pMapper 
4.2, and everything works fine with those steps I have described, however, the 
resulting export shapefiles appear in blank, with no geometry and no 
attributes. The 3 files (SHP, SHX and DBF) are exported, DBF file has the 
correct columns, but with no rows.

ogrinfo gives:

venancio@venancio-VirtualBox:~/shp_8nbahf6vlp13deacbrnh3it3u3$ ogrinfo -al 
localidades.shp
INFO: Open of `localidades.shp'
  using driver `ESRI Shapefile' successful.
Layer name: localidades
Geometry: Point
Feature Count: 0
Extent: (0.00, 0.00) - (0.00, 0.00)
Layer SRS WKT:
(unknown)
GEONAMEID: Integer (7.0)
NAME: String (17.0)
ASCIINAME: String (17.0)
ISO2_CODE: String (8.0)
POPULATION: Integer (6.0)
GTOPO30: Integer (3.0)


Is the problem from Mapserver 6 or pMapper 4.2? Has anyone tried the export to 
shp on these versions?

Best regards,
Pedro




- Original Message -
From: Armin Burger 
To: Francisco Caldeira 
Cc: pmapper-users 
Sent: Wednesday, August 24, 2011 10:13 AM
Subject: Re: [pmapper-users] Export to shapefile

Check your php.ini settings according to the description here:

http://svn.pmapper.net/trac/wiki/DocQuickinstall#PHP.INI

see especially the parts that are marked as "IMPORTANT!!!"

You get a series of "notices" and probably have "display errors" set
to "on", therefore you likely get the last warning message saying that
the headers have already been sent.


armin


--
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


Re: [pmapper-users] Export to shapefile

2011-08-24 Thread Armin Burger
Check your php.ini settings according to the description here:

http://svn.pmapper.net/trac/wiki/DocQuickinstall#PHP.INI

see especially the parts that are marked as "IMPORTANT!!!"

You get a series of "notices" and probably have "display errors" set
to "on", therefore you likely get the last warning message saying that
the headers have already been sent.


armin

On Wed, Aug 24, 2011 at 11:01 AM, Francisco Caldeira
 wrote:
> 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
> [

Re: [pmapper-users] Export to shapefile

2011-08-24 Thread Francisco Caldeira
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]