Create a new CSA Project: Unterschied zwischen den Versionen

Aus OCAD 11 Wiki - Deutsch
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
 
(37 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
==Connect Database==
[[Category:Client Server Architecture]][[File:Ent40px.PNG|This function is only available in the OCAD 11 Enterprise Edition.|link=https://www.ocad.com/en/products/ocad-for-cartography]]
After the basic database setup you can connect to the database. You have to enter the
information in the below shown mask.


[[File:ServerClient_NewConnection.png|500px]]
''Diese Funktion ist in OCAD 11 nur in Englisch verfügbar.''


For the first connection you have to provide the database protocol – currently only
==Connect to the Server==
Postgres is supported. For a connection although the host, the database name, the port
After the '''[[Installation of the Client Server Architecture|Installation und dem Setup der Client Server Architektur (CSA)]]''', a connection to the server can be made. Click the [[File:Icon_ConnectDisconnect.PNG]] '''Connect/Disconnect''' icon in the '''Client Server''' toolbar to build up a new connection. The '''New Connection''' dialog is shown.
and the port must be provided. The user name for the database currently must be ocad11
as mentioned in the setup selection and a Password.


For the project user you must provide the data as inserted during the installation for the
The upper left side shows the connection data to the PostgreSQL server. It should be preconfigured by your administrator. The upper right side provides a login form in order to gain access to your projects. This login is personal for each user. Click the '''Connect''' button when you have entered all relevant data. If the login succeeds, a table is shown in the middle of the dialog with an overview of all available projects on the server.  
user name and the password. When you are connected the currently database projects
get loaded and your userident. In the current development stage none of the provided settings are
saved! The hard coded default settings shown above. The database password is ocaddb.


The '''auto reload changes''' re-fetches all loaded objects when they changed in the db.
[[File:NewConnectionDialog.PNG]]


In the lower part of the '''New Connection''' dialog there are several buttons and options:


==Create new Project==
* '''Import mode''': The '''Import mode''' option allows to import local OCAD data into a CSA-Project. Read the '''[[Create a New CSA Project#Import_Map|Import Map]]''' article for more information.
After the basic setup you can create a new map project in the database. To do so click in
* '''Autoreload changes (5 seconds)''': With a checked '''Autoreload changes''' option, changes made by other users on the loaded CSA-Project are updated automatically every fifth second. The update happens in the background and does not become visible until the screen is refreshed.
the connection window on new project. The following information have to be provided for
* '''Load selected project''': Click this button to load the selected project.
the project creation.
* '''Clear selected project''': Click this button to clear all entries made in the database on the server.
* '''Delete selected project''': Click this button to delete the selected projects completely (The whole database is deleted).
* '''Create new project''': Click this button to create a new CSA-Project.
* '''User manager''': Click this button to manage the '''[[Rights Management]]'''.
* '''Show project information''': Click this button to show all available information for the selected CSA-Project.


[[File:ServerClient_CreateNewProject.PNG]]
==Create a New Project==
To create a new CSA-Project, you must have the necessary '''[[Rights Management|Rights]]''' to do so. A server administrator can manage all the rights. More information can be found on the '''[[Rights Management]]''' page.


A project name and a unique project ident must be supplied.
# Click the '''Create new project button'''. The '''Create New Project''' dialog appears.
When you enter a project name a project ident will be created of the name by default but
#: [[File:CreateNewProjectDialog.PNG]]
you can change it the way you like. A map scale and a grid distance should be provided all
# Enter a project name in the '''Name''' field. In the '''Ident''' field an identifier is automatically derived from the project name but can be manually adjusted, too.
other parameters are optional. When clicking on the '''Create''' button the new project will be
# Choose a project type in the '''Type''' dropdown list.
created and should shown up in the database window.
# Adjust the '''Map settings''' ('''[[Create a New Map#Massstab und Koordinatensystem|Set Scale and Coordinate System]]''') as you are used to from local OCAD projects.


If an existing geo-referenced OCAD-File is imported ('''[[Create a New CSA Project#Import_Map|Import Map]]''') later, you can leave the '''Map settings''' blank and import them with the OCAD-File.


==Draw with database connection==
The '''Use a base project''' option can be enabled if you want to use another CSA-Project as a template. The '''Map settings''' part of the dialog disappears and instead of that, you can choose a '''Base project''' from the dropdown list.


To draw objects directly into the database you have to create a database project first. As
[[File:CreateNewProjectBaseProject.PNG]]
next step load a file with a symbol set. Now the database project can be associated with
the file. Therefore open the database window, select a project from the projects grid and
click '''OK'''.


Every new drawn object is now immediately saved into the database project. The objects
The new CSA-Project takes all map settings ('''[[Create a New Map#Massstab und Koordinatensystem|Set Scale and Coordinate System]]'''), symbols and colors from the chosen project. They are copied once and are not updated if you change anything in the base project. In this case an update must be done manually.
get automatically checked out too for future editing.


All objects checked out can be edited all others only can be viewed.
Click the '''Create new project''' button when finished.


Every object inserted or changed is saved as undo in the database. You can click '''Undo'''
A new CSA-Project is created and appears in the table of the '''New Connection''' dialog. The project can be loaded by selecting it and clicking the '''Load selected project''' button.
button in the database toolbar to revise the last change or insert and click on '''Redo''' to redo
Unless you have used a base project, symbols and colors have to be defined, which can happen either manually or by importing ('''[[Create a New CSA Project#Import Map|Import Map]]''') them from another project.
the last change.


==Import Map==
A new created CSA-Project is still empty. To import a local OCAD map, follow these steps:
# Make sure that the CSA-Project is closed.
# Open the local OCAD-Project with the '''[[File#Öffnen|Open]]''' function in the '''[[File]]''' menu.
# When the local map is loaded click the [[File:Icon_ConnectDisconnect.PNG]] '''Connect/Disconnect''' icon in the '''Client Server''' toolbar.
# The '''New Connection''' dialog appears.
# Select the SC-Project in the table in the middle of the dialog.
# Check the '''Import mode''' option.
# Click the '''Load selected project''' button.
# The map opens but it is not added to the server yet. You have the option to [[File:Icon_GenerateMapPreview.PNG]] '''[[Working on a CSA Project#Generate Map Preview|Generate a Map Preview]]''' by clicking the corresponding icon in the '''Client Server''' toolbar. This will later help to handle big projects faster and to navigate easier through the map.
# To import the map click the [[File:Icon_ImportMap.PNG]] '''Import Map''' icon in the '''Client Server''' toolbar.
# The '''Import Map''' dialog opens with the following import options:
#: [[File:ImportMapDialog.PNG]]
## '''Import all objects''': If this option is checked, all objects are imported. Otherwise only '''[[Symbol|Symbols]]''', '''[[Colors]]''', '''[[Define Spot Colors|Spot Colors]]''' and '''[[Create a New Map#Massstab_und_Koordinatensystem|Map Settings]]''' are imported.
## '''Replace all symbols''': If this option is checked, all '''[[Symbol|Symbols]]''' in the existing CSA-Project are replaced with those in the local OCAD-Project.
## '''Replace all colors''': If this option is checked, all '''[[Colors]]''' in the existing CSA-Project are replaced with those in the local OCAD-Project.
## '''Replace all spot colors''': If this option is checked, all '''[[Define Spot Colors|Spot Colors]]''' in the existing CSA-Project are replaced with those in the local OCAD-Project.
## '''Replace scale and view parameter''': If this option is checked, the '''[[Create a New Map#Massstab_und_Koordinatensystem|Set Scale and Coordinate System]]''' in the existing CSA-Project is replaced with the one in the local OCAD-Project.
# Click the '''Import''' button. The objects are copied to the server. This can take some time depending on the number of objects imported. The progress can be seen in the '''[[Graphical User Interface#Statusleiste|Status Bar]]'''.
[[File:Hint.jpg]] All with an object connected '''[[Database|Database Links]]''' are imported, too.


==Add objects to the database==
==Get Objects==
After a CSA-Project was successfully created and some data (at least '''[[Symbol|Symbols]]''' and '''[[Colors]]''') exist, you are able to start working. Close all opened projects and then click the [[File:Icon_ConnectDisconnect.PNG]] '''Connect/Disconnect''' icon. The '''New Connection''' dialog opens. Select the CSA-Project, uncheck the '''Import mode''' option and click the '''Load Selected Project''' button. If you have created a '''[[Working on a CSA Project#Generate Map Preview|Map Preview]]''' during the import of a map, you will see it in the project (see picture). Otherwise the project is blank.


Add objects to the database is only needed to import objects. For importing one or more
[[File:GetObjects.PNG]]
selected objects the following steps needs to be done.
# load the file with the objects
# associate the file with a project from the projects grid
# select one or more objects
# click the '''Add objects to the database''' button
# the objects will be added to the database
All objects associated with the database will only be saved in the database. The same
applies for object changes too.


If a '''[[Working on a CSA Project#Generate Map Preview|Map Preview]]''' was generated, the loaded project shows a raster preview of the map which is handled as a normal raster background map and also can be hidden with the '''F10''' key or managed with the '''Manage''' command in the '''[[Background Map]]''' menu. To load objects of a certain area from the server move the map to the desired position and click the  [[File:Icon_GetObjectsFromCurrentView.PNG]] '''Get Objects from Current View''' icon in the '''Client Server''' toolbar. All objects which are in the current view are loaded from the server. If the '''Alt''' key is pressed when the [[File:Icon_GetObjectsFromCurrentView.PNG]] '''Get Objects from Current View''' icon is clicked, the '''Show Objects in Database''' dialog appears with advanced options. This dialog provides a table with all objects listed which are stored on the server.


==Add all objects to the database==
[[File:ShowObjectsInDatabase.PNG]]


To import all objects from a file into the database the following steps needs to be done:
* Click the '''Get all''' button to load the objects of the entire map. The number in brackets indicates the number of objects to be loaded.
# load the file with the objects
* Click the '''Get objects from current view''' button to load all objects of the current view which has the same effect as a simple click on the [[File:Icon_GetObjectsFromCurrentView.PNG]] '''Get Objects from Current View''' icon in the '''Client Server''' toolbar.
# associated the file with a project from the projects grid
* Click the '''Get selected object''' button to load the object which is selected in the table of the dialog.
# hold down the shift+alt key and click on the '''Add objects''' button
* Click the '''Load Objects from Symbol Tree''' button to load all objects with symbols which are together in a group in the symbol tree. This is especially useful if you want to load and edit for example only the roads:
# all objects from the file with the status normal or hidden will be imported in the
: 1. The '''Load Objects from Symbol Tree''' dialog opens.
database now.
:: [[File:LoadObjectsFromSymbolTree.PNG]]
All objects from the file are imported in the database now. For now all changes will only be
: 2. Select a group of the symbol tree (for example the group with symbols for roads) or select multiple groups with the '''Ctrl''' key pressed.
saved in the database.
: 3. The selection of the groups can be saved. Enter a name in the '''Selection''' field on top of the dialog and click the '''Save''' button. If there are already selections saved, select it in the drop down list and click the '''Load''' button. With the '''Delete''' button the selection can be deleted.
: 4. Click the '''OK''' button when finished. The desired objects are loaded.
* Click the '''Reload database''' button to update the table of objects.


 
----
==Add symbol descriptions to the database==
Next page: '''[[Working on a CSA Project]]'''<br />
 
Back to the '''[[Client Server Architecture]]''' page.<br />
To import the symbol descriptions into the database the following steps needs be done:
An overview about all pages dealing with the '''[[Client Server Architecture]]''' can be found in the corresponding category (see below for the link).
# load the file with the objects
# associated the file with a project from the projects grid
# hold down the alt key and click on the '''Add objects''' button
# all symbol descriptions from the file will be imported into the database
 
[[File:Hint.jpg]] '''Important note''': In the current implementation the symbol description depends on the
symbol number. Only '''ONE''' Symbol table is used no duplicate symbol numbers are
prevented and failure will occur if you try to import duplicate symbol numbers!
 
 
==Remove objects from the Database==
 
[[File:DeleteObjectInDatabase.PNG]]
To remove objects from the database not simple delete them with the delete key. By hitting
the delete key the object is only removed from the current view. Loading the project again
the object will show up as before. To remove an object from the database the object must
be checked out. After a successful checkout objects can be remove from the database
with a click.+
 
==Get all from current view==
 
[[File:GetObjectsFromCurrentView.PNG]]
To get all objects from the current loaded view click on the button. To get the objects
window hold down the alt – key and click on the button.
 
==Check out element(s)==
 
[[File:CheckOutSelectedObjects.PNG]]
To check out elements for editing from the database select the objects to be check out and
click on the button. If no problem occurs during the check out nothing seems to be done.
On any error a message will appear describing the error.
 
 
==Check in element(s)==
 
[[File:CheckInSelectedObjects.PNG]]
To check in elements you finished editing with select them and click on the '''Check in'''  
button. Now other users are able to check the elements out and edit them. To check in all
your objects checked out click on the '''show objects checked out''' button and there click
the '''Check in all''' button all.
 
==Objects dialog==
 
Hold down the alt key and Click on the '''get objects from current view''' button to get the
objects window.
 
[[File:ServerClient_ViewObjectInDB.PNG]]
 
All objects saved in the database. Here can be
chosen to '''Load all objects''', '''Get all from the current view''' of the work sheet or to '''get a
selected object'''. It is possible that not all objects are shown therefore click the '''Reload'''
button. All objects from the database are re-fetch. To get all objects from the database click
on the '''Get all''' button. Depending on how many objects are save in the database this may
takes a long time. The objects count is show in braces in the '''Get all''' button.
 
==Show checked out dialog==
 
With this dialog you can show all objects checked out by any user of the project. Only the
objects you have currently loaded are shown in the list.
 
[[File:ServerClient_ServerShowsCheckedOut.PNG]]
 
You can leave the window open an you will see all check in and check out by any user
working with the project. By clicking on of the rows in the list OCAD will jump to the
selected object in the current project. If you deselect the reload functionality you can click
the '''Reload''' button to reload the window manually otherwise the reload takes place every 3
seconds. The description column show you the symbol description of the object is drawn
with. The button '''Check in all''' checks in all your objects you have checked out for editing.
 
==Generate Project Preview==
 
With this functionality a raster map preview can be created.
 
[[File:ServerClient_GeneratePreview.PNG|200px]]
 
To generate a raster map preview the project must be drawn with real world coordinates.
As next step you have to set the pixel size per meter for the preview. By clicking '''OK''' the
generation process will start. First all objects from the database will be loaded into the
current worksheet. This step may take a longer time depends how many objects are in the
project. Afterwards the preview is generated and saved into the database. Now every time
you load the project from the database the preview will be loaded first. This may help you
to find the correct view in the file and you have to load only the objects you need to work
with.
 
 
 
Back to [[Server Client]]

Aktuelle Version vom 26. Juni 2013, 12:02 Uhr

This function is only available in the OCAD 11 Enterprise Edition.

Diese Funktion ist in OCAD 11 nur in Englisch verfügbar.

Connect to the Server

After the Installation und dem Setup der Client Server Architektur (CSA), a connection to the server can be made. Click the Icon ConnectDisconnect.PNG Connect/Disconnect icon in the Client Server toolbar to build up a new connection. The New Connection dialog is shown.

The upper left side shows the connection data to the PostgreSQL server. It should be preconfigured by your administrator. The upper right side provides a login form in order to gain access to your projects. This login is personal for each user. Click the Connect button when you have entered all relevant data. If the login succeeds, a table is shown in the middle of the dialog with an overview of all available projects on the server.

NewConnectionDialog.PNG

In the lower part of the New Connection dialog there are several buttons and options:

  • Import mode: The Import mode option allows to import local OCAD data into a CSA-Project. Read the Import Map article for more information.
  • Autoreload changes (5 seconds): With a checked Autoreload changes option, changes made by other users on the loaded CSA-Project are updated automatically every fifth second. The update happens in the background and does not become visible until the screen is refreshed.
  • Load selected project: Click this button to load the selected project.
  • Clear selected project: Click this button to clear all entries made in the database on the server.
  • Delete selected project: Click this button to delete the selected projects completely (The whole database is deleted).
  • Create new project: Click this button to create a new CSA-Project.
  • User manager: Click this button to manage the Rights Management.
  • Show project information: Click this button to show all available information for the selected CSA-Project.

Create a New Project

To create a new CSA-Project, you must have the necessary Rights to do so. A server administrator can manage all the rights. More information can be found on the Rights Management page.

  1. Click the Create new project button. The Create New Project dialog appears.
    CreateNewProjectDialog.PNG
  2. Enter a project name in the Name field. In the Ident field an identifier is automatically derived from the project name but can be manually adjusted, too.
  3. Choose a project type in the Type dropdown list.
  4. Adjust the Map settings (Set Scale and Coordinate System) as you are used to from local OCAD projects.

If an existing geo-referenced OCAD-File is imported (Import Map) later, you can leave the Map settings blank and import them with the OCAD-File.

The Use a base project option can be enabled if you want to use another CSA-Project as a template. The Map settings part of the dialog disappears and instead of that, you can choose a Base project from the dropdown list.

CreateNewProjectBaseProject.PNG

The new CSA-Project takes all map settings (Set Scale and Coordinate System), symbols and colors from the chosen project. They are copied once and are not updated if you change anything in the base project. In this case an update must be done manually.

Click the Create new project button when finished.

A new CSA-Project is created and appears in the table of the New Connection dialog. The project can be loaded by selecting it and clicking the Load selected project button. Unless you have used a base project, symbols and colors have to be defined, which can happen either manually or by importing (Import Map) them from another project.

Import Map

A new created CSA-Project is still empty. To import a local OCAD map, follow these steps:

  1. Make sure that the CSA-Project is closed.
  2. Open the local OCAD-Project with the Open function in the File menu.
  3. When the local map is loaded click the Icon ConnectDisconnect.PNG Connect/Disconnect icon in the Client Server toolbar.
  4. The New Connection dialog appears.
  5. Select the SC-Project in the table in the middle of the dialog.
  6. Check the Import mode option.
  7. Click the Load selected project button.
  8. The map opens but it is not added to the server yet. You have the option to Icon GenerateMapPreview.PNG Generate a Map Preview by clicking the corresponding icon in the Client Server toolbar. This will later help to handle big projects faster and to navigate easier through the map.
  9. To import the map click the Icon ImportMap.PNG Import Map icon in the Client Server toolbar.
  10. The Import Map dialog opens with the following import options:
    ImportMapDialog.PNG
    1. Import all objects: If this option is checked, all objects are imported. Otherwise only Symbols, Colors, Spot Colors and Map Settings are imported.
    2. Replace all symbols: If this option is checked, all Symbols in the existing CSA-Project are replaced with those in the local OCAD-Project.
    3. Replace all colors: If this option is checked, all Colors in the existing CSA-Project are replaced with those in the local OCAD-Project.
    4. Replace all spot colors: If this option is checked, all Spot Colors in the existing CSA-Project are replaced with those in the local OCAD-Project.
    5. Replace scale and view parameter: If this option is checked, the Set Scale and Coordinate System in the existing CSA-Project is replaced with the one in the local OCAD-Project.
  11. Click the Import button. The objects are copied to the server. This can take some time depending on the number of objects imported. The progress can be seen in the Status Bar.

Hint.jpg All with an object connected Database Links are imported, too.

Get Objects

After a CSA-Project was successfully created and some data (at least Symbols and Colors) exist, you are able to start working. Close all opened projects and then click the Icon ConnectDisconnect.PNG Connect/Disconnect icon. The New Connection dialog opens. Select the CSA-Project, uncheck the Import mode option and click the Load Selected Project button. If you have created a Map Preview during the import of a map, you will see it in the project (see picture). Otherwise the project is blank.

GetObjects.PNG

If a Map Preview was generated, the loaded project shows a raster preview of the map which is handled as a normal raster background map and also can be hidden with the F10 key or managed with the Manage command in the Background Map menu. To load objects of a certain area from the server move the map to the desired position and click the Icon GetObjectsFromCurrentView.PNG Get Objects from Current View icon in the Client Server toolbar. All objects which are in the current view are loaded from the server. If the Alt key is pressed when the Icon GetObjectsFromCurrentView.PNG Get Objects from Current View icon is clicked, the Show Objects in Database dialog appears with advanced options. This dialog provides a table with all objects listed which are stored on the server.

ShowObjectsInDatabase.PNG

  • Click the Get all button to load the objects of the entire map. The number in brackets indicates the number of objects to be loaded.
  • Click the Get objects from current view button to load all objects of the current view which has the same effect as a simple click on the Icon GetObjectsFromCurrentView.PNG Get Objects from Current View icon in the Client Server toolbar.
  • Click the Get selected object button to load the object which is selected in the table of the dialog.
  • Click the Load Objects from Symbol Tree button to load all objects with symbols which are together in a group in the symbol tree. This is especially useful if you want to load and edit for example only the roads:
1. The Load Objects from Symbol Tree dialog opens.
LoadObjectsFromSymbolTree.PNG
2. Select a group of the symbol tree (for example the group with symbols for roads) or select multiple groups with the Ctrl key pressed.
3. The selection of the groups can be saved. Enter a name in the Selection field on top of the dialog and click the Save button. If there are already selections saved, select it in the drop down list and click the Load button. With the Delete button the selection can be deleted.
4. Click the OK button when finished. The desired objects are loaded.
  • Click the Reload database button to update the table of objects.

Next page: Working on a CSA Project
Back to the Client Server Architecture page.
An overview about all pages dealing with the Client Server Architecture can be found in the corresponding category (see below for the link).