Changes between Version 1 and Version 2 of CodeSamples/PHP/GeneralTasks


Ignore:
Timestamp:
Feb 25, 2009, 10:01:28 AM (15 years ago)
Author:
amorsell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodeSamples/PHP/GeneralTasks

    v1 v2  
    1 Place Holder
     1[[PageOutline]]
     2
     3This page is one of the !MapGuide Community CodeSamples.  Visit the CodeSamples page to view more!
     4
     5== General Tasks Example ==
     6The attached zip file contains the source code for the General Tasks example that can be seen on the MGOS example sites page: [http://data.mapguide.com/mapguide/gt/index.php]
     7
     8== From the included setup.txt file  ==
     9In order to setup the application, you will need to:
     10
     11 1. extract the gt.zip file in the www folder
     12 2. check the gtconstants.php file to validate the server path(s)
     13 3. load the Redding.mgp package
     14 4. create a user called Markup (password: markup) that has authoring priviledges
     15        OR
     16    create your own user with an Author role and edit the source code accordingly
     17 5. the generic task commands are invoke URL calls
     18
     19-- Additional Notes from Steve G on the MGOS discussion list --
     20
     21Here are my full instructions on how to get the shareable markups to work
     22using MG 2.0.2.
     23
     241. Extract GT.zip to folder called Markup in C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions\www
     25
     26There are some extra files that you don’t need specifically for shareable
     27markup tool (other tools in the GT sample application), but it won’t hurt to
     28extract all the files here.
     29
     302. Place gtconstants.php in C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions\www\phpviewersample
     31
     32
     333. Edit gtconstants: $INSTALL_DIR = 'C:\\Program Files\\MapGuideOpenSource\\';
     34
     35to
     36
     37$INSTALL_DIR = 'C:\\Program Files\\MapGuideOpenSource2.0\\';
     38
     39If you installed MG to another directory or if the default directory name
     40changes, you will need to update this.
     41
     424. Make sure that your coordinate system is set in your map.  If not, you will get an error that says this:
     43
     44Argument is null.
     45Argument is null. Exception occurred in method MgCoordinateSystemCache.Get
     46at line 120 in file
     47d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\common\geometry\CoordinateSystem/CoordinateSystemCache.cpp
     48 
     49
     50== Other Downloads ==
     51The Redding dataset that is already configured to use GT is available here.  It is approximately a 15 MB download.  Copy the file to your MGOS server packages folder and load the package via the Administration interface.  View the web layout definition in your MGOS authoring tool of choice to see the custom commands already configured for the General Tasks.
     52[http://www.spatialgis.com/Redding.mgp]
     53
     54