Changes between Initial Version and Version 1 of maestro/UserGuides/FileFeatureSource


Ignore:
Timestamp:
Oct 1, 2008, 5:43:48 AM (16 years ago)
Author:
ksgeograf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • maestro/UserGuides/FileFeatureSource

    v1 v1  
     1== !MapGuide Maestro User Guides ==
     2This page contains instructions for [wiki:maestro MapGuide Maestro] usage.
     3
     4== Using file based data ==
     5Many applications produce files with data, such as a spreadsheet, ESRI Shape files or MapInfo TAB files.
     6!MapGuide has its own spatial file format, named SDF. SDF is based on SQLite, but not compatible with
     7a SQLite tools. !MapGuide also supports SQLite databases with spatial data, using an FDO provider.
     8
     9== Updating FDO providers ==
     10When you install !Mapguide, it only has a subset of the avalible FDO providers. This will hopefully be fixed in the future, but for now you can manually upgrade you FDO provider collection. These are the steps required to update your FDO providers:
     11 1. Stop the !MapGuide service
     12 1. Remove the FDO folder (found in C:\Program Files\MapGuideOpenSource2.0\Server\Bin on Windows)
     13 1. Download the latest FDO package for [http://download.osgeo.org/fdo/3.3.1/fdosdk-win32-3.3.1.tar.gz Windows] or [http://download.osgeo.org/fdo/3.3.1/fdosdk-rhel4-3.3.1.tar.gz Linux]
     14 1. Extract the archive, and rename "Bin" to "FDO"
     15 1. Place the "FDO" folder where you erased the other in step 2.
     16 1. Start the !MapGuide service
     17
     18== Creating a feature source ==
     19To create a feature source, simply click on the "Add" button, and select "Dataconnection".
     20You should new see the following dialog:[[BR]]
     21[[Image(http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/Screenshots/Userguide/ProviderSelection.png?format=raw)]]
     22
     23=== Choosing a provider ===
     24If you are missing a provider for your special data type, make sure you have upgraded your FDO providers.
     25If you have data in the SDF format, use the SDF provider. Note that SDF is actually SDF+ or SDF v3, and is not
     26compatible with previous SDF formats, used in !MapGuide 6.5 and older.
     27
     28If you are using ESRI Shape files, you can use the SHP provider, or the OGR provider.
     29
     30If you are using !MapInfo TAB, s57 or a number of other file based data, you can use the OGR provider.
     31I will use the OGR provider below, but the comments apply to the SHP and SDF provider as well.
     32
     33When you have create a new Feature Source, your screen looks like this:[[BR]]
     34[[Image(http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/Screenshots/Userguide/NewOGRDataSource.png?format=raw)]]
     35
     36== Where to store the files ==
     37Usually your file bases data is placed in a folder. In !MapGuide you can choose to use the data from its location, or copy the data into the !MapGuide server. If you use data in a folder outside of !MapGuide, that is called "Unmanged data", and if you store it inside the !MapGuide server,
     38it is called "Managed data".
     39
     40The reason there are two ways of placing data, is that they both have advantages and disadvantages.[[BR]]
     41Managed file advantages:
     42 * Cannot be modified by another program
     43 * Is seperated from the original data
     44 * Is contained in a backup (MGP package)
     45
     46Unmanage file advantages:
     47 * Can be modified or read by another program
     48 * There is only one copy, so the data is the same
     49 * Is not contained in a backup (MGP package), but can be backed up by traditional backup programs.
     50 
     51As you may have noticed, these advantages are the exact oposites. Which one you prefer is entirely up to you.
     52
     53=== Managed data ===
     54If you prefer managed data, you can upload the files required using the "add" button. If your data consists of multiple
     55files, you can either select the primary file and click the "star" button, or use the entire folder as a a repository.
     56If you use the entire folder, the OGR provider will scan it to figure out what data you have placed there.
     57''Note'': Due to a bug in the FDO OGR provider, the "use entire folder" option does not work with FDO version 3.3.1 or older.
     58
     59=== Unmanage data ===
     60If you prefer unmanaged data, you can simply enter the path to the data. Again, you can specify either a folder or
     61a file. If you specify a folder, it must not contain a trailing slash or backslash. The "..." button will allow you to
     62pick the file or folder. To use this feature you must setup one or more Alias folders in the !MapGuide Site Administrator (avalible from the main menu, under "File", "Open Site Administrator..."). Please note that the path is to the file on the machine where !MapGuide is installed, ''NOT'' the machine where !MapGuide Maestro is installed.
     63
     64=== Other OGR options ===
     65OGR supports a very large set of datasources. Some of the datasources it supports are not file based. If you select the desired data type on the list !MapGuide Maestro will show a customized editor for that datasource.
     66
     67=== The generic editor ===
     68If OGR is updated, or the editor show by !MapGuide Maestro does not do what you want, you can use the "Generic" editor. Simply click on the "Generic Editor" tab. The generic editor shows you the raw data that is being passed to the provider. In the generic editor, you can both view and modify the values as you please. For OGR the field "!DataSource" is actually an OGR connection string:[[BR]]
     69[[Image(http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/Screenshots/Userguide/GenericFeatureEditor.png?format=raw)]]
     70
     71For other providers, you must seek information on what the values should be, if they are not obvious.
     72
     73In some rare cases, you may also want to modify files attached to a datasource. If you click the "Show All" button, you may see some previously hidden files. If you are really looking for adventure, you can click the "Edit as Xml..." button on the top to see and edit the underlying Xml. If you click OK, the display will reflect your changes to the Xml.
     74
     75== Extensions ==
     76If you have data in multiple sources, you can [wiki:maestro/UserGuides/Extensions Join datasources with extensions].
     77
     78== Coordinate System Overrides ==
     79If your data does not contain coordinate system information, see [wiki:maestro/UserGuides/CoordinateSystemOverrides Using Coordinate system overrides].
     80
     81----
     82If you have other types of data you can read one of the pages:
     83 * '''[wiki:maestro/UserGuides/RDBMSFeatureSource Using data from a database]'''
     84 * '''[wiki:maestro/UserGuides/RasterFeatureSource Using raster data]'''
     85
     86If you only have file based data, you can read about[[BR]]
     87'''[wiki:maestro/UserGuides/VectorLayerEditor Styling and theming vector data]'''