Here are 2 interesting docs concerning migration from MS 5 to MS 6:
- http://www.mapserver.org/trunk/mapscript/php/migration_guide.html (and
particularly
http://www.mapserver.org/trunk/mapscript/php/migration_guide.html#class-methods
and
http://www.mapserver.org/trunk/mapscript/php/migration_gu
don't do it too quickly: I think this "bug" shouldn't appear with the
other calls that you removed for MS 6... Or most of them...
The SHP export is very particular:
- create the shapeFileObj
(- create the DBF)
- zip files
- PHP destroy the shapeFileObj
But the changes are committed in shapeFileO
Thomas
in my reckless thinking I replaced all free() calls, not noticing that
in MS 6 some were still existing. Probably they kept the ones that are
really needed and had an effect (the ones I tested with long running
loops did not increase any memory).
I will check which of the replaced free(
Hello Thomas,
I can confirm that with this small change everything works normally! I can also
confirm that this way is already possible to export PostGIS layers to SHP!
Excellent job!! Thank you very much Thomas!!
Best regards,
Pedro
- Original Message -
From: Thomas RAFFIN
Well,
Well, Pedro you're right: something is different in my development
version...
I've just committed the few changes. If you need a quick update, just
change the line in plugins/export/export.shp.php :
PMCommon::freeMsObj($shpFile);
with this one:
$shpFile->free();unset($shpFile);
Le 30/08/2011 08
Hi,
I've already use MS 6 and pmapper 4.2 or dev version, and it's fine for
me. I will try to find with the official pmapper 4.2
Thomas
Le 29/08/2011 20:34, Pedro Venâncio a écrit :
> Hello everyone,
>
> Has anyone managed to get the plugin exporting to SHP with Mapserver 6 and
> pMapper 4.2.0
Hello everyone,
Has anyone managed to get the plugin exporting to SHP with Mapserver 6 and
pMapper 4.2.0?
I see that there were some changes to the export plugin from 4.1.1 to 4.2.0, to
support Mapserver 6 and PostGIS layers, however, in my tests on a Ubuntu
machine it is not working properly,
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 op