RE: [mapguide-users] physical files

2007-11-19 Thread Mark Pendergraft
I was able to export the package from my production server and import it
into my testing server with no problem.  Now all of my layers and data
are the same.

Thank you very much for all of your help.

-Mark Pendergraft

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Birch
Sent: Saturday, November 17, 2007 11:34 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] physical files

 

Hmm, that's interesting (about the different standalone php.exe).  I
don't believe that it has the MapGuide extensions loaded, as all it's
doing is interacting with DBXML.  You'll want to run this script using
the php.exe that's in the main WebServerExtensions/php directory.

 

You shouldn't need constants.php; the only constant you should need is
the ResourceType, which I've hard-coded.

 

What version of MapGuide are you running?  I coded this against 1.2.0.
There have been some changes between MapGuide 1.0 and 1.2 so if you are
not using 1.2 you may need to use MgSite instead of MgSiteConnection.
You may also run into problems with the XML stuff; I'm not sure if it
was supported in PHP 5.0 (earlier versions of MapGuide came with this
instead of 5.2)

 

Jason

 



From: Zac Spitzer
Subject: Re: [mapguide-users] physical files

nice job... i got stuck trying to run this in C:\Program
Files\MapGuideOpenSource\Server\RepositoryAdmin 

it's got a different standalone php.exe there

i changed
// Define the path to your webconfig file if it's somewhere else 
define(MG_WEB_CONFIG_FILE,'../../WebServerExtensions/www/webconfig.ini
');

and got

C:\Program Files\MapGuideOpenSource\Server\RepositoryAdminPHP
cli_listfiles.php Admin

Fatal error: Call to undefined function MgInitializeWebTier() in
C:\Program
Files\MapGuideOpenSource\Server\RepositoryAdmin\cli_listfiles.ph 
p on line 46

so i added (scuz my php knowledge)
with include '../../WebServerExtensions/www/mapadmin/constants.php';

and got

C:\Program Files\MapGuideOpenSource\Server\RepositoryAdminPHP
cli_listfiles.php Admin 

Fatal error: Cannot redeclare class mgservicetype in C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\mapadmin\constants.php
on l
ine 192

any idea?

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] physical files

2007-11-17 Thread Jason Birch
Zac Spitzer wrote:
-
it would be nice to add a text file listing the unmanaged resources referenced 
as part of the repository backup process
-
 
Well, that was fun :)
 
I've just written a little utility that will get you about 95% of the way there:
 
http://tinyurl.com/2qy5f8 http://tinyurl.com/2qy5f8 
 
Jason
winmail.dat___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] physical files

2007-11-17 Thread Jason Birch
Hmm, that's interesting (about the different standalone php.exe).  I don't 
believe that it has the MapGuide extensions loaded, as all it's doing is 
interacting with DBXML.  You'll want to run this script using the php.exe 
that's in the main WebServerExtensions/php directory.
 
You shouldn't need constants.php; the only constant you should need is the 
ResourceType, which I've hard-coded.
 
What version of MapGuide are you running?  I coded this against 1.2.0.  There 
have been some changes between MapGuide 1.0 and 1.2 so if you are not using 1.2 
you may need to use MgSite instead of MgSiteConnection.  You may also run into 
problems with the XML stuff; I'm not sure if it was supported in PHP 5.0 
(earlier versions of MapGuide came with this instead of 5.2)
 
Jason



From: Zac Spitzer
Subject: Re: [mapguide-users] physical files


nice job... i got stuck trying to run this in C:\Program 
Files\MapGuideOpenSource\Server\RepositoryAdmin 

it's got a different standalone php.exe there

i changed
// Define the path to your webconfig file if it's somewhere else 
define(MG_WEB_CONFIG_FILE,'../../WebServerExtensions/www/webconfig.ini');

and got

C:\Program Files\MapGuideOpenSource\Server\RepositoryAdminPHP 
cli_listfiles.php Admin

Fatal error: Call to undefined function MgInitializeWebTier() in C:\Program 
Files\MapGuideOpenSource\Server\RepositoryAdmin\cli_listfiles.ph 
p on line 46

so i added (scuz my php knowledge)
with include '../../WebServerExtensions/www/mapadmin/constants.php';

and got

C:\Program Files\MapGuideOpenSource\Server\RepositoryAdminPHP 
cli_listfiles.php Admin 

Fatal error: Cannot redeclare class mgservicetype in C:\Program 
Files\MapGuideOpenSource\WebServerExtensions\www\mapadmin\constants.php on l
ine 192

any idea?

winmail.dat___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] physical files

2007-11-16 Thread Jason Birch
You might want to look at package management functions in the MapAdmin area.  
These will allow you to create .mgp files from portions of your repository 
which can then be loaded into your test site.
 
There is a 2GB limit on package files, so you may need to break it down into 
smaller chunks to get everything out.  This is one of the reasons I like using 
unmanaged data sources; it allows me to use standard filesystem backups for the 
data, and an automated export script for the packages.
 
I haven't tried this, but you may also be able to use the RepositoryAdmin 
scripts to back up your production repository and then restore it to your test 
site.  I believe that these are included in the server install; this is what 
they look like:
 
http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Server/RepositoryAdmin
 
This would be a good topic for a how-to if anyone is interested in hacking on 
the MapGuide Trac wiki...
 
Jason



From: Mark Pendergraft
Subject: [mapguide-users] physical files


I have 2 mapguide servers running in my office.  One for testing/developing (my 
computer) and one that hosts the final application.  The server hosting the 
final map has extra layers, and more features then my testing server.  I would 
like to copy the entire repository containing the features over to my testing 
server in order to update my testing machine so that it is in-sync with the 
final application server.

 

I know where to find the SDF feature sources, but how do I copy over layer 
definitions, map definitions, and the web layouts?  Are these even physical 
files?  If so, where can they be found?

 

winmail.dat___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] physical files

2007-11-16 Thread Andy Morsell
Rather than copying the entire repository, you can also make a package of
any folder within the repository.  Go into Site Administrator and take a
look at the Manage Packages section.  Because we have the capability to
export from the folder level, I organize all of my projects with a top-level
folder which makes it easy to export from development and import into
production on a project by project basis.  
 

Andy Morsell, P.E. 
Spatial Integrators, Inc. 
http://www.SpatialGIS.com 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan Northcott
Sent: Friday, November 16, 2007 8:08 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] physical files


Hello,
 
I had to migrate to a new server earlier this year, and I didn't want to
lose everyhting I had published (or re-do the work.
 
look in the folder: C:\Program Files\MapGuideOpenSource\Server\Repositories
There are 4 folders.
 
what I copied were the Library and Site folders.
 
I didn't have any tiled data in mine.
 
if you look in the Library\DataFiles  folder youwill see key codes (look
like registry keys)
eg. 1fc79998--1000-8000-0019d111a9a6
 
these are the unique identifiers for your layers, etc. if you open one of
these folders up you'll see your loaded SDF file, etc.
 
I hope that gets you in the right starting spot
 
-Ryan
 
 
 
On Nov 16, 2007 7:32 PM, Mark Pendergraft [EMAIL PROTECTED] wrote:


I have 2 mapguide servers running in my office.  One for testing/developing
(my computer) and one that hosts the final application.  The server hosting
the final map has extra layers, and more features then my testing server.  I
would like to copy the entire repository containing the features over to my
testing server in order to update my testing machine so that it is in-sync
with the final application server. 

I know where to find the SDF feature sources, but how do I copy over layer
definitions, map definitions, and the web layouts?  Are these even physical
files?  If so, where can they be found?

 

Thanks!

 

cid:image001.jpg@01C7185E.D0B84C40

Ph: (425) 486-1252  Fx: (425) 486-6108   http://www.meadgilman.com/
www.meadgilman.com 

 


___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users




image003.jpg___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] physical files

2007-11-16 Thread Zac Spitzer
it would be nice to add a text file listing the unmanaged resources
referenced as part of the repository backup process

On Nov 17, 2007 3:44 PM, Jason Birch [EMAIL PROTECTED] wrote:

 You might want to look at package management functions in the MapAdmin
 area.  These will allow you to create .mgp files from portions of your
 repository which can then be loaded into your test site.

 There is a 2GB limit on package files, so you may need to break it down
 into smaller chunks to get everything out.  This is one of the reasons I
 like using unmanaged data sources; it allows me to use standard filesystem
 backups for the data, and an automated export script for the packages.

 I haven't tried this, but you may also be able to use the RepositoryAdmin
 scripts to back up your production repository and then restore it to your
 test site.  I believe that these are included in the server install; this is
 what they look like:

 http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Server/RepositoryAdmin

 This would be a good topic for a how-to if anyone is interested in hacking
 on the MapGuide Trac wiki...

 Jason

 

 From: Mark Pendergraft
 Subject: [mapguide-users] physical files


 I have 2 mapguide servers running in my office.  One for
 testing/developing (my computer) and one that hosts the final application.
  The server hosting the final map has extra layers, and more features then
 my testing server.  I would like to copy the entire repository containing
 the features over to my testing server in order to update my testing machine
 so that it is in-sync with the final application server.



 I know where to find the SDF feature sources, but how do I copy over layer
 definitions, map definitions, and the web layouts?  Are these even physical
 files?  If so, where can they be found?




 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users




-- 
Zac Spitzer
http://zacster.blogspot.com/
+61 405 847 168 (aussie moible)
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users