22 | | Property Value[[br]] |
23 | | - - - - - - - - - - - - - - - - - - - - - - [[br]] |
24 | | Name --------------- Version[[br]] |
25 | | !LocalizedName ------ Version (English)[[br]] |
26 | | !DefaultValue -------- 1.3.0[[br]] |
27 | | !IsRequired ---------- No[[br]] |
28 | | !IsProtected --------- No[[br]] |
29 | | !IsEnumerable -------- No[[br]] |
30 | | !IsFileName ---------- No[[br]] |
31 | | !IsFilePath ----------- No[[br]] |
32 | | !IsDatastoreName ---- No[[br]] |
| 22 | ||'''Property'''||'''Value'''|| |
| 23 | ||Name||Version|| |
| 24 | ||!LocalizedName||Version (English)|| |
| 25 | ||!DefaultValue||1.3.0|| |
| 26 | ||!IsRequired||No|| |
| 27 | ||!IsProtected||No|| |
| 28 | ||!IsEnumerable||No|| |
| 29 | ||!IsFileName||No|| |
| 30 | ||!IsFilePath||No|| |
| 31 | ||!IsDatastoreName||No|| |
| 32 | |
| 33 | === WMS Version Example Usage === |
| 34 | |
| 35 | The following is an example of how the Version property would be used if included as a part of a user-defined value passed to FdoIConnection::!SetConnectionString. |
| 38 | {{{ |
| 39 | FdoPtr<FdoIConnection> connection = GetConnection (); |
| 40 | FdoStringP connString = |
| 41 | L"FeatureServer=http://www.myserver.com/wms; |
| 42 | Username=guest; |
| 43 | Password=guest; |
| 44 | DefaultImageHeight=400; |
| 45 | Version=1.1.1"); |
| 46 | connection->SetConnectionString(connString); |
| 47 | FdoConnectionState state = connection->Open (); |
| 48 | }}} |
| 49 | |
| 50 | The following is an example of how the Version property would be used if specified using the FdoIConnectionPropertyDictionary. |
| 51 | |
| 52 | {{{ |
| 53 | FdoPtr<FdoIConnection> conn = GetConnection (); |
| 54 | FdoPtr<FdoIConnectionInfo> info = conn->GetConnectionInfo(); |
| 55 | FdoPtr<FdoIConnectionPropertyDictionary> props = info->GetConnectionProperties(); |
| 56 | props->SetProperty(L"FeatureServer", L"http://www.myserver.com/wms"); |
| 57 | props->SetProperty(L"Username", L"guest"); |
| 58 | props->SetProperty(L"Password", L"guest"); |
| 59 | props->SetProperty(L"DefaultImageHeight", L"400"); |
| 60 | props->SetProperty(L"Version", L"1.1.0"); |
| 61 | FdoConnectionState state = connection->Open (); |
| 62 | }}} |
| 63 | |
| 64 | ==== WFS Version Connection Property ==== |
| 65 | |
| 66 | ||'''Property'''||'''Value'''|| |
| 67 | ||Name||Version|| |
| 68 | ||!LocalizedName||Version (English)|| |
| 69 | ||!DefaultValue||1.1.0|| |
| 70 | ||!IsRequired||No|| |
| 71 | ||!IsProtected||No|| |
| 72 | ||!IsEnumerable||No|| |
| 73 | ||!IsFileName||No|| |
| 74 | ||!IsFilePath||No|| |
| 75 | ||!IsDatastoreName||No|| |
| 76 | |
| 77 | ==== WFS Version Example Usage ==== |
| 78 | |
| 79 | The following is an example of how the Version property would be used if included as a part of a user-defined value passed to FdoIConnection::!SetConnectionString. |
| 80 | |
| 81 | {{{ |
| 82 | FdoPtr<FdoIConnection> connection = GetConnection (); |
| 83 | FdoStringP connString = |
| 84 | L"FeatureServer=http://www.myserver.com/wfs; |
| 85 | Username=guest; |
| 86 | Password=guest; |
| 87 | Version=1.1.1"); |
| 88 | connection->SetConnectionString(connString); |
| 89 | FdoConnectionState state = connection->Open (); |
| 90 | }}} |
| 91 | |
| 92 | The following is an example of how the Version property would be used if specified using the FdoIConnectionPropertyDictionary. |
| 93 | |
| 94 | {{{ |
| 95 | FdoPtr<FdoIConnection> conn = GetConnection (); |
| 96 | FdoPtr<FdoIConnectionInfo> info = conn->GetConnectionInfo(); |
| 97 | FdoPtr<FdoIConnectionPropertyDictionary> props = info->GetConnectionProperties(); |
| 98 | props->SetProperty(L"FeatureServer", L"http://www.myserver.com/wfs"); |
| 99 | props->SetProperty(L"Username", L"guest"); |
| 100 | props->SetProperty(L"Password", L"guest"); |
| 101 | props->SetProperty(L"Version", L"1.1.0"); |
| 102 | FdoConnectionState state = connection->Open (); |
| 103 | }}} |
| 104 | |