Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Issues when configuring the offline synchronization

NOTE: I'm posting in on behalf of one of the dvelopers' as there were some problems with the community.

 

I get an "Unable to initialize app error" on startup.
 
What am I doing wrong? I am following the example from bitbucket. 
 
{
    "schema":"http://www.hexagongeospatial.com/webgis/jsonSchema/v1.0",
    "appName":"Webgis Application",
    "startingWorkspaceId":"WORKSPACE",
    "clientConfiguration":"7FFB78FD-5F9E-4B0C-819F-4CE8633B32A3",
    "configurations":[
       {
          "id":"7FFB78FD-5F9E-4B0C-819F-4CE8633B32A3",
          "use3d":false,
          "fallback":true,
          "useProxy":false,
          "mapConfiguration":{
             "id":"customMapConfiguration",
             "minHeight":50,
             "maxHeight":300000000
          }
       }
    ],
    "workspaces":[
       {
          "id":"WORKSPACE",
          "name":"BING",
          "legends":[
             "dbbf386a-88a1-490c-b48d-3bc00383ea26"
          ],
          "cameraPositions":[
             "9dc7dcfc-2485-4692-a8e0-7dfc13da9478"
          ],
          "mapCompositions":[
             "6ea7f590-f44c-4135-b112-c582c5d415bc"
          ],
          "activeLegends":{
             "main":"dbbf386a-88a1-490c-b48d-3bc00383ea26"
          },
          "activeCameraPositions":{
             "main":"9dc7dcfc-2485-4692-a8e0-7dfc13da9478"
          }
       }
    ],
    "mapCompositions":[
       {
          "id":"6ea7f590-f44c-4135-b112-c582c5d415bc",
          "name":"USA",
          "legend":"dbbf386a-88a1-490c-b48d-3bc00383ea26",
          "cameraPosition":"9dc7dcfc-2485-4692-a8e0-7dfc13da9478"
       }
    ],
    "legends":[
       {
          "id":"dbbf386a-88a1-490c-b48d-3bc00383ea26",
          "name":"USA",
          "entries":[
             {
                "id":"dbc4183a-e628-448c-85f3-43ae45185d80",
                "dataset":"9f4cecf6-5e51-94ce-596e-f1dd53ad44aa"
             },
             {
                "id":"legendEntry_SMUD_WMS_Primary",
                "dataset":"SMUD_WMS_Primary",
                "style":{
                   "image":{
                      "singleTile":true
                   }
                }
             },
             {
                "id":"radar_WMS_TEST",
                "dataset":"TEST_WMS_Dataset",
                "style":{
                   "image":{
                      "singleTile":true
                   }
                }
             }
          ]
       }
    ],
    "searchables":[
       {
          "id":"searchable_points",
          "name":"DA_Points",
          "dataset":"dataset_DAPoints",
          "anyTextSupport":false,
          "anyTextProperties":[
             "Type"
          ]
       }
    ],
    "cameraPositions":[
       {
          "id":"9dc7dcfc-2485-4692-a8e0-7dfc13da9478",
          "name":"USA",
          "displayCRS":"EPSG:3857",
          "geoPosition":{
             "type":"point",
             "crsCode":{
                "base":"EPSG:3857",
                "fixedAxes":"enu"
             },
             "coords":[
                -13502032,
                4676981
             ]
          },
          "pitch":0.0,
          "roll":0.0,
          "yaw":0.0,
          "height":10000
       }
    ],
    "datasets":[
       {
          "id":"9f4cecf6-5e51-94ce-596e-f1dd53ad44aa",
          "sources":[
             "7c5fcf7e-8e3a-41ea-8d53-65fad1cefa33"
          ]
       },
       {
          "id":"dataset_DAAreas",
          "sources":[
             "fsd_DAArea"
          ]
       },
       {
          "id":"dataset_DAPoints",
          "sources":[
             "fsd_DAPoint"
          ]
       },
       {
          "id":"SMUD_WMS_Primary",
          "sources":[
             "fsd_WMS_Primary"
          ]
       },
       {
          "id":"TEST_WMS_Dataset",
          "sources":[
             "fsd_WMS_Test"
          ]
       }
    ],
    "featureSourceDescriptions":[
       {
          "id":"7c5fcf7e-8e3a-41ea-8d53-65fad1cefa33",
          "type":"slippyMapLayer",
          "service":"7073d7f5-7149-44db-9277-664194db3e58"
       },
       {
          "id":"fsd_DAArea",
          "type":"wfsFeatureType",
          "typeName":{
             "localName":"DamageAssessmentAreas",
             "namespace":"http://www.intergraph.com/geomedia/gml"
          },
          "service":"service_DA",
          "primaryKeyFieldName":"DAA_ID",
          "geometryFieldName":"DAA_AREA_GEOMETRY",
		  "featurePrefix": "gmgml",
		  "geometryType": "Area"
		 
		  
       },
       {
          "id":"fsd_DAPoint",
          "type":"wfsFeatureType",
          "typeName":{
             "localName":"DamageAssessmentPoints",
             "namespace":"http://www.intergraph.com/geomedia/gml"
          },
          "service":"service_DA",
          "primaryKeyFieldName":"DAP_ID",
          "geometryFieldName":"DAP_GEOMETRY"
       },
       {
          "id":"fsd_WMS_Primary",
          "type":"wmsLayer",
          "layerName":"SMUDData",
          "service":"WMS_DA"
       },
       {
          "id":"fsd_WMS_Test",
          "type":"wmsLayer",
          "layerName":"nexrad_base_reflect",
          "service":"WMS_TEST"
       },
       {
        "id": "AreaDbFsdId",
        "type": "dbFeatureType",
        "tableName": "DamageAssessmentAreas",
        "geometryColumnName": "geom",
        "localId": "DAA_ID",
        "geometryType": "Area",
        "primaryKeyFieldName": "DAA_ID",
        "service": "service_DA",
        "featureTypeMetadata": {
            "crudPermissions": {
                "isCreatePermitted": true,
                "isUpdatePermitted": true,
                "isDeletePermitted": true
            },
            "attributesMetadata": {
                "DAA_CREATE_DATE": {
                    "title": "DAA_CREATE_DATE",
                    "type": "DATE",
                    "isReadOnly": false
                },
                "DAA_CREATED_BY": {
                    "title": "DAA_CREATED_BY",
                    "type": "TEXT",
                    "isReadOnly": false
                },
                "DAA_AREA_GEOMETRY": {
                  "title": "DAA_AREA_GEOMETRY",
                  "type": "GEOMETRY",
                  "isReadOnly": false
                },
                "DAA_AREA_NAME": {
                  "title": "DAA_AREA_NAME",
                  "type": "TEXT",
                  "isReadOnly": false
                },
                "DAA_ASSIGNED_TO": {
                  "title": "DAA_ASSIGNED_TO",
                  "type": "TEXT",
                  "isReadOnly": false
                },
                "DAA_COMPLETED_STATUS": {
                  "title": "DAA_COMPLETED_STATUS",
                  "type": "TEXT",
                  "isReadOnly": false
                },
                "DAA_LAST_UPDATED": {
                  "title": "DAA_LAST_UPDATED",
                  "type": "DATE",
                  "isReadOnly": false
                },
                "DAA_NOTES": {
                  "title": "DAA_NOTES",
                  "type": "TEXT",
                  "isReadOnly": false
                },
                "DAA_SERVICE_AREA": {
                  "title": "DAA_SERVICE_AREA",
                  "type": "TEXT",
                  "isReadOnly": false
                },
                "DAA_STORM_ID": {
                  "title": "DAA_STROM_ID",
                  "type": "NUMBER",
                  "isReadOnly": false
                }

            }
        }
    }

    ],
    "services":[
       {
          "id":"7073d7f5-7149-44db-9277-664194db3e58",
          "name":"Open Street Map",
          "type":"osmService",
          "url":"http://{a,b,c}.tile.openstreetmap.org"
       },
       {
          "id":"service_DA",
          "name":"Hexagon Geospatial OGC Web Feature Service",
          "type":"wfsService",
          "url":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get",
          "serviceMetadata":"serviceMetadata_DA"
       },
       {
          "id":"WMS_DA",
          "name":"WMS",
          "type":"wmsService",
          "url":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get",
          "serviceMetadata":"serviceMetadata_WMS"
       },
       {
          "id":"WMS_TEST",
          "name":"Radar",
          "type":"wmsService",
          "url":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi",
          "serviceMetadata":"serviceMetadata_TEST"
       },
       {
        "id": "syncServiceId",
        "name": "syncservice",
        "type": "syncService",
        "url": "http://insvmpfdev.ingrnet.com/syncservice"
       }
    ],
    "servicesMetadata":[
       {
          "id":"serviceMetadata_DA",
          "operationsMetadata":{
             "getCapabilities":{
                "endpoints":{
                   "get":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get?",
                   "post":"http://vmdadev.intergraph.com/damagewfs2/service.svc/post"
                }
             },
             "getFeature":{
                "parameters":{
                   "formats":[
                      "text/xml; subtype=gml/3.1.1"
                   ]
                },
                "endpoints":{
                   "post":"http://vmdadev.intergraph.com/damagewfs2/service.svc/post"
                }
             },
             "describeFeatureType":{
                "endpoints":{
                   "get":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get?",
                   "post":"http://vmdadev.intergraph.com/damagewfs2/service.svc/post"
                }
             }
          },
          "featureTypes":[
             {
                "title":"DamageAssessmentAreas",
                "name":{
                   "localName":"DamageAssessmentAreas",
                   "namespace":"http://www.intergraph.com/geomedia/gml"
                },
                "outputFormats":[
                   "text/xml; subtype=gml/3.1.1"
                ],
                "defaultCrs":"EPSG:3857"
             },
             {
                "title":"DamageAssessmentPoints",
                "name":{
                   "localName":"DamageAssessmentPoints",
                   "namespace":"http://www.intergraph.com/geomedia/gml"
                },
                "outputFormats":[
                   "text/xml; subtype=gml/3.1.1"
                ],
                "defaultCrs":"EPSG:3857"
             }
          ],
          "serviceTitle":"Hexagon Geospatial OGC Web Feature Service",
          "version":"1.1.0",
          "type":"wfsServiceMetadata"
       },
       {
          "id":"serviceMetadata_WMS",
          "operationsMetadata":{
             "getCapabilities":{
                "endpoints":{
                   "get":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get?",
                   "post":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/post"
                }
             },
             "getMap":{
                "parameters":{
                   "formats":[
                      "image/png",
                      "image/jpeg",
                      "image/svg+xml"
                   ]
                },
                "endpoints":{
                   "get":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get?",
                   "post":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/post"
                }
             },
             "getFeatureInfo":{
                "parameters":{
                   "formats":[
                      "text/xml",
                      "text/html",
                      "application/gml+xml; version=3.1"
                   ]
                },
                "endpoints":{
                   "get":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get?",
                   "post":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/post"
                }
             }
          },
          "rootLayer":{
             "title":"Hexagon Geospatial OGC Web Map Service",
             "name":"root",
             "crs":[
                "EPSG:3857"
             ],
             "layers":[
                {
                   "title":"SMUDData",
                   "name":"SMUDData"
                }
             ]
          },
          "serviceTitle":"Hexagon Geospatial OGC Web Map Service",
          "version":"1.3.0",
          "type":"wmsServiceMetadata"
       },
       {
          "id":"serviceMetadata_TEST",
          "operationsMetadata":{
             "getCapabilities":{
                "endpoints":{
                   "get":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi"
                }
             },
             "getMap":{
                "parameters":{
                   "formats":[
                      "image/png",
                      "image/jpeg",
                      "image/svg+xml"
                   ]
                },
                "endpoints":{
                   "get":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi"
                }
             },
             "getFeatureInfo":{
                "parameters":{
                   "formats":[
                      "text/plain",
                      "application/vnd.ogc.gml"
                   ]
                },
                "endpoints":{
                   "get":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi"
                }
             }
          },
          "rootLayer":{
             "title":"IEM WMS Service",
             "name":"nexrad_base_reflect",
             "crs":[
                "EPSG:3857"
             ],
             "layers":[
                {
                   "title":"NEXRAD BASE REFLECT",
                   "name":"time_idx"
                },
                {
                   "title":"NEXRAD BASE REFLECT",
                   "name":"nexrad-n0r-wmst"
                }
             ]
          },
          "serviceTitle":"IEM WMS Service",
          "version":"1.3.0",
          "type":"wmsServiceMetadata"
       }
    ],
    "crses":[
       {
          "id":"epsg_4326",
          "name":"WGS 84",
          "code":"EPSG:4326",
          "axes":[
             {
                "direction":0,
                "label":"N"
             },
             {
                "direction":1,
                "label":"E"
             }
          ],
          "wGS84BBox":{
             "north":90,
             "east":180,
             "south":-90,
             "west":-180
          },
          "proj4Config":"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",
          "isGeographic":true,
          "unit":{
             "name":"DMSH",
             "fromMetersRatio":0.0174532925199433
          }
       },
       {
          "id":"epsg_3857",
          "name":"Popular Visualisation CRS / Mercator",
          "code":"EPSG:3857",
          "axes":[
             {
                "direction":1,
                "label":"X"
             },
             {
                "direction":0,
                "label":"Y"
             }
          ],
          "wGS84BBox":{
             "north":85,
             "east":180,
             "south":-85,
             "west":-180
          },
          "proj4Config":"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defss",
          "isGeographic":false,
          "unit":{
             "name":"metre",
             "fromMetersRatio":1
          }
       },
       {
          "id":"epsg_900913",
          "name":"Popular Visualisation CRS / Mercator",
          "code":"EPSG:900913",
          "axes":[
             {
                "direction":1,
                "label":"X"
             },
             {
                "direction":0,
                "label":"Y"
             }
          ],
          "wGS84BBox":{
             "north":85,
             "east":180,
             "south":-85,
             "west":-180
          },
          "proj4Config":"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defss",
          "isGeographic":false,
          "unit":{
             "name":"metre",
             "fromMetersRatio":1
          }
       }
    ],
    "applicationApiCustomConfigurationId":"DamageAssessmentConfig",
    "customConfigurations":[
       {
          "id":"DamageAssessmentConfig",
          "properties":{
             "HandlerPath":"http://insvmpfdev.ingrnet.com/ucspatial/DAServices/",
             "centerOnTap":true
          }
       }
    ],
    "synchronization": [{
        "id": "areasSync",
        "localFsd": "AreaDbFsdId",
        "remoteFsd": "fsd_DAArea",
        "service": "syncServiceId"
    }]
 }
 
Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: Issues when configuring the offline synchronization

I fixed the configuration file


Please use the validation tool http://community.hexagongeospatial.com/t5/Developers-Knowledge-Base/Configuration-file/ta-p/91
This is also helpful https://jsonformatter.curiousconcept.com


Please replace minx,miny in sync options with real values 
featuremetadata wasn't neessary

 

{  
   "schema":"http://www.hexagongeospatial.com/webgis/jsonSchema/v1.0",
   "appName":"Webgis Application",
   "startingWorkspaceId":"WORKSPACE",
   "clientConfiguration":"7FFB78FD-5F9E-4B0C-819F-4CE8633B32A3",
   "configurations":[  
      {  
         "id":"7FFB78FD-5F9E-4B0C-819F-4CE8633B32A3",
         "use3d":false,
         "fallback":true,
         "useProxy":false,
         "mapConfiguration":{  
            "id":"customMapConfiguration",
            "minHeight":50,
            "maxHeight":300000000
         }
      }
   ],
   "workspaces":[  
      {  
         "id":"WORKSPACE",
         "name":"BING",
         "legends":[  
            "dbbf386a-88a1-490c-b48d-3bc00383ea26"
         ],
         "cameraPositions":[  
            "9dc7dcfc-2485-4692-a8e0-7dfc13da9478"
         ],
         "mapCompositions":[  
            "6ea7f590-f44c-4135-b112-c582c5d415bc"
         ],
         "activeLegends":{  
            "main":"dbbf386a-88a1-490c-b48d-3bc00383ea26"
         },
         "activeCameraPositions":{  
            "main":"9dc7dcfc-2485-4692-a8e0-7dfc13da9478"
         }
      }
   ],
   "mapCompositions":[  
      {  
         "id":"6ea7f590-f44c-4135-b112-c582c5d415bc",
         "name":"USA",
         "legend":"dbbf386a-88a1-490c-b48d-3bc00383ea26",
         "cameraPosition":"9dc7dcfc-2485-4692-a8e0-7dfc13da9478"
      }
   ],
   "legends":[  
      {  
         "id":"dbbf386a-88a1-490c-b48d-3bc00383ea26",
         "name":"USA",
         "entries":[  
            {  
               "id":"dbc4183a-e628-448c-85f3-43ae45185d80",
               "dataset":"9f4cecf6-5e51-94ce-596e-f1dd53ad44aa"
            },
            {  
               "id":"legendEntry_SMUD_WMS_Primary",
               "dataset":"SMUD_WMS_Primary",
               "style":{  
                  "image":{  
                     "singleTile":true
                  }
               }
            },
            {  
               "id":"radar_WMS_TEST",
               "dataset":"TEST_WMS_Dataset",
               "style":{  
                  "image":{  
                     "singleTile":true
                  }
               }
            }
         ]
      }
   ],
   "searchables":[  
      {  
         "id":"searchable_points",
         "name":"DA_Points",
         "dataset":"dataset_DAPoints",
         "anyTextSupport":false,
         "anyTextProperties":[  
            "Type"
         ]
      }
   ],
   "cameraPositions":[  
      {  
         "id":"9dc7dcfc-2485-4692-a8e0-7dfc13da9478",
         "name":"USA",
         "displayCRS":"EPSG:3857",
         "geoPosition":{  
            "type":"point",
            "crsCode":{  
               "base":"EPSG:3857",
               "fixedAxes":"enu"
            },
            "coords":[  
               -13502032,
               4676981
            ]
         },
         "pitch":0.0,
         "roll":0.0,
         "yaw":0.0,
         "height":10000
      }
   ],
   "datasets":[  
      {  
         "id":"9f4cecf6-5e51-94ce-596e-f1dd53ad44aa",
         "sources":[  
            "7c5fcf7e-8e3a-41ea-8d53-65fad1cefa33"
         ]
      },
      {  
         "id":"dataset_DAAreas",
         "sources":[  
            "fsd_DAArea"
         ]
      },
      {  
         "id":"dataset_DAPoints",
         "sources":[  
            "fsd_DAPoint"
         ]
      },
      {  
         "id":"SMUD_WMS_Primary",
         "sources":[  
            "fsd_WMS_Primary"
         ]
      },
      {  
         "id":"TEST_WMS_Dataset",
         "sources":[  
            "fsd_WMS_Test"
         ]
      }
   ],
   "featureSourceDescriptions":[  
      {  
         "id":"7c5fcf7e-8e3a-41ea-8d53-65fad1cefa33",
         "type":"slippyMapLayer",
         "service":"7073d7f5-7149-44db-9277-664194db3e58"
      },
      {  
         "id":"fsd_DAArea",
         "type":"wfsFeatureType",
         "typeName":{  
            "localName":"DamageAssessmentAreas",
            "namespace":"http://www.intergraph.com/geomedia/gml"
         },
         "service":"service_DA",
         "primaryKeyFieldName":"DAA_ID",
         "geometryFieldName":"DAA_AREA_GEOMETRY",
         "featurePrefix":"gmgml",
         "geometryType":"Polygon"
      },
      {  
         "id":"fsd_DAPoint",
         "type":"wfsFeatureType",
         "typeName":{  
            "localName":"DamageAssessmentPoints",
            "namespace":"http://www.intergraph.com/geomedia/gml"
         },
         "service":"service_DA",
         "primaryKeyFieldName":"DAP_ID",
         "geometryFieldName":"DAP_GEOMETRY",
         "geometryType":"Point"
      },
      {  
         "id":"fsd_WMS_Primary",
         "type":"wmsLayer",
         "service":"WMS_DA",
         "layerName":"SMUDData"
      },
      {  
         "id":"fsd_WMS_Test",
         "type":"wmsLayer",
         "layerName":"nexrad_base_reflect",
         "service":"WMS_TEST"
      },
      {  
         "id":"AreaDbFsdId",
         "type":"dbFeatureType",
         "tableName":"DamageAssessmentAreas",
         "geometryColumnName":"geom",
         "geometryType":"Polygon",
         "primaryKeyFieldName":"DAA_ID",
         "service":"service_DA"
      }
   ],
   "services":[  
      {  
         "id":"7073d7f5-7149-44db-9277-664194db3e58",
         "name":"Open Street Map",
         "type":"osmService",
         "url":"http://{a,b,c}.tile.openstreetmap.org"
      },
      {  
         "id":"service_DA",
         "name":"Hexagon Geospatial OGC Web Feature Service",
         "type":"wfsService",
         "url":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get",
         "serviceMetadata":"serviceMetadata_DA"
      },
      {  
         "id":"WMS_DA",
         "name":"WMS",
         "type":"wmsService",
         "url":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get",
         "serviceMetadata":"serviceMetadata_WMS"
      },
      {  
         "id":"WMS_TEST",
         "name":"Radar",
         "type":"wmsService",
         "url":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi",
         "serviceMetadata":"serviceMetadata_TEST"
      },
      {  
         "id":"syncServiceId",
         "name":"syncservice",
         "type":"syncService",
         "url":"http://insvmpfdev.ingrnet.com/syncservice"
      }
   ],
   "servicesMetadata":[  
      {  
         "id":"serviceMetadata_DA",
         "operationsMetadata":{  
            "getCapabilities":{  
               "endpoints":{  
                  "get":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get?",
                  "post":"http://vmdadev.intergraph.com/damagewfs2/service.svc/post"
               }
            },
            "getFeature":{  
               "parameters":{  
                  "formats":[  
                     "text/xml; subtype=gml/3.1.1"
                  ]
               },
               "endpoints":{  
                  "post":"http://vmdadev.intergraph.com/damagewfs2/service.svc/post"
               }
            },
            "describeFeatureType":{  
               "endpoints":{  
                  "get":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get?",
                  "post":"http://vmdadev.intergraph.com/damagewfs2/service.svc/post"
               }
            }
         },
         "featureTypes":[  
            {  
               "title":"DamageAssessmentAreas",
               "name":{  
                  "localName":"DamageAssessmentAreas",
                  "namespace":"http://www.intergraph.com/geomedia/gml"
               },
               "outputFormats":[  
                  "text/xml; subtype=gml/3.1.1"
               ],
               "defaultCrs":"EPSG:3857"
            },
            {  
               "title":"DamageAssessmentPoints",
               "name":{  
                  "localName":"DamageAssessmentPoints",
                  "namespace":"http://www.intergraph.com/geomedia/gml"
               },
               "outputFormats":[  
                  "text/xml; subtype=gml/3.1.1"
               ],
               "defaultCrs":"EPSG:3857"
            }
         ],
         "serviceTitle":"Hexagon Geospatial OGC Web Feature Service",
         "version":"1.1.0",
         "type":"wfsServiceMetadata"
      },
      {  
         "id":"serviceMetadata_WMS",
         "operationsMetadata":{  
            "getCapabilities":{  
               "endpoints":{  
                  "get":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get?",
                  "post":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/post"
               }
            },
            "getMap":{  
               "parameters":{  
                  "formats":[  
                     "image/png",
                     "image/jpeg",
                     "image/svg+xml"
                  ]
               },
               "endpoints":{  
                  "get":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get?",
                  "post":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/post"
               }
            },
            "getFeatureInfo":{  
               "parameters":{  
                  "formats":[  
                     "text/xml",
                     "text/html",
                     "application/gml+xml; version=3.1"
                  ]
               },
               "endpoints":{  
                  "get":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get?",
                  "post":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/post"
               }
            }
         },
         "rootLayer":{  
            "title":"Hexagon Geospatial OGC Web Map Service",
            "name":"root",
            "crs":[  
               "EPSG:3857"
            ],
            "layers":[  
               {  
                  "title":"SMUDData",
                  "name":"SMUDData"
               }
            ]
         },
         "serviceTitle":"Hexagon Geospatial OGC Web Map Service",
         "version":"1.3.0",
         "type":"wmsServiceMetadata"
      },
      {  
         "id":"serviceMetadata_TEST",
         "operationsMetadata":{  
            "getCapabilities":{  
               "endpoints":{  
                  "get":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi"
               }
            },
            "getMap":{  
               "parameters":{  
                  "formats":[  
                     "image/png",
                     "image/jpeg",
                     "image/svg+xml"
                  ]
               },
               "endpoints":{  
                  "get":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi"
               }
            },
            "getFeatureInfo":{  
               "parameters":{  
                  "formats":[  
                     "text/plain",
                     "application/vnd.ogc.gml"
                  ]
               },
               "endpoints":{  
                  "get":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi"
               }
            }
         },
         "rootLayer":{  
            "title":"IEM WMS Service",
            "name":"nexrad_base_reflect",
            "crs":[  
               "EPSG:3857"
            ],
            "layers":[  
               {  
                  "title":"NEXRAD BASE REFLECT",
                  "name":"time_idx"
               },
               {  
                  "title":"NEXRAD BASE REFLECT",
                  "name":"nexrad-n0r-wmst"
               }
            ]
         },
         "serviceTitle":"IEM WMS Service",
         "version":"1.3.0",
         "type":"wmsServiceMetadata"
      }
   ],
   "crses":[  
      {  
         "id":"epsg_4326",
         "name":"WGS 84",
         "code":"EPSG:4326",
         "axes":[  
            {  
               "direction":0,
               "label":"N"
            },
            {  
               "direction":1,
               "label":"E"
            }
         ],
         "wGS84BBox":{  
            "north":90,
            "east":180,
            "south":-90,
            "west":-180
         },
         "proj4Config":"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",
         "isGeographic":true,
         "unit":{  
            "name":"DMSH",
            "fromMetersRatio":0.0174532925199433
         }
      },
      {  
         "id":"epsg_3857",
         "name":"Popular Visualisation CRS / Mercator",
         "code":"EPSG:3857",
         "axes":[  
            {  
               "direction":1,
               "label":"X"
            },
            {  
               "direction":0,
               "label":"Y"
            }
         ],
         "wGS84BBox":{  
            "north":85,
            "east":180,
            "south":-85,
            "west":-180
         },
         "proj4Config":"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defss",
         "isGeographic":false,
         "unit":{  
            "name":"metre",
            "fromMetersRatio":1
         }
      },
      {  
         "id":"epsg_900913",
         "name":"Popular Visualisation CRS / Mercator",
         "code":"EPSG:900913",
         "axes":[  
            {  
               "direction":1,
               "label":"X"
            },
            {  
               "direction":0,
               "label":"Y"
            }
         ],
         "wGS84BBox":{  
            "north":85,
            "east":180,
            "south":-85,
            "west":-180
         },
         "proj4Config":"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defss",
         "isGeographic":false,
         "unit":{  
            "name":"metre",
            "fromMetersRatio":1
         }
      }
   ],
   "applicationApiCustomConfigurationId":"DamageAssessmentConfig",
   "customConfigurations":[  
      {  
         "id":"DamageAssessmentConfig",
         "properties":{  
            "HandlerPath":"http://insvmpfdev.ingrnet.com/ucspatial/DAServices/",
            "centerOnTap":true
         }
      }
   ],
   "synchronization":[  
      {  
         "id":"areasSync",
         "localFsd":"AreaDbFsdId",
         "remoteFsd":"fsd_DAArea",
         "service":"syncServiceId",
         "options":{  
            "outputCrs":"EPSG:3857",
            "bbox":[  
               "minx",
               "miny",
               "maxx",
               "maxy"
            ],
            "zoomLevel":"16"
         }
      }
   ]
}
Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: Issues when configuring the offline synchronization

The app starts up. But How can I add a sync, or a download button as described here 

http://community.hexagongeospatial.com/t5/Developers-Knowledge-Base/On-demand-synchronization/ta-p/1...

Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: Issues when configuring the offline synchronization

I fixed only the syntax issues.

I see that there are some semantic issues too.

 

You configured the "dbFeatureType" feature source. Id is AreaDbFsdId. It points to a WFS service with id service_DA.

It is incorrect it should point to a db service.

Take a look at: https://bitbucket.org/HGDN/hgdn_mobile/src/c00bd41a5e11c3f3e7db499b4ecd7d08835e5bd7/mmw/common/confi... and the entry with hcwaDbVectorServiceId id.

Occasional Contributor
Posts: 7
Registered: ‎09-08-2017

Re: Issues when configuring the offline synchronization

Does that mean I need to configure and deploy a geopackage database? or is that already done for me? 

Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: Issues when configuring the offline synchronization

Geopackage feature source description must be configure. You don't need to deploy the geopackage, it is already done for you.   If there is the synchronization configuration section present (it is), a  "Syncrhonize data" button appears. When user taps the synchronization button, a request is sent to the server, a geopackage is generated on the server and it is sent back to the device,.
Occasional Contributor
Posts: 7
Registered: ‎09-08-2017

Re: Issues when configuring the offline synchronization

Would I need a section in the

"servicesMetadata"

for the db service? 

 

 

Occasional Contributor
Posts: 7
Registered: ‎09-08-2017

Re: Issues when configuring the offline synchronization

So here is what the file looks like now: 

 

{  
    "schema":"http://www.hexagongeospatial.com/webgis/jsonSchema/v1.0",
    "appName":"Webgis Application",
    "startingWorkspaceId":"WORKSPACE",
    "clientConfiguration":"7FFB78FD-5F9E-4B0C-819F-4CE8633B32A3",
    "configurations":[  
       {  
          "id":"7FFB78FD-5F9E-4B0C-819F-4CE8633B32A3",
          "use3d":false,
          "fallback":true,
          "useProxy":false,
          "mapConfiguration":{  
             "id":"customMapConfiguration",
             "minHeight":50,
             "maxHeight":300000000
          }
       }
    ],
    "workspaces":[  
       {  
          "id":"WORKSPACE",
          "name":"BING",
          "legends":[  
             "dbbf386a-88a1-490c-b48d-3bc00383ea26"
          ],
          "cameraPositions":[  
             "9dc7dcfc-2485-4692-a8e0-7dfc13da9478"
          ],
          "mapCompositions":[  
             "6ea7f590-f44c-4135-b112-c582c5d415bc"
          ],
          "activeLegends":{  
             "main":"dbbf386a-88a1-490c-b48d-3bc00383ea26"
          },
          "activeCameraPositions":{  
             "main":"9dc7dcfc-2485-4692-a8e0-7dfc13da9478"
          }
       }
    ],
    "mapCompositions":[  
       {  
          "id":"6ea7f590-f44c-4135-b112-c582c5d415bc",
          "name":"USA",
          "legend":"dbbf386a-88a1-490c-b48d-3bc00383ea26",
          "cameraPosition":"9dc7dcfc-2485-4692-a8e0-7dfc13da9478"
       }
    ],
    "legends":[  
       {  
          "id":"dbbf386a-88a1-490c-b48d-3bc00383ea26",
          "name":"USA",
          "entries":[  
             {  
                "id":"dbc4183a-e628-448c-85f3-43ae45185d80",
                "dataset":"9f4cecf6-5e51-94ce-596e-f1dd53ad44aa"
             },
             {  
                "id":"legendEntry_SMUD_WMS_Primary",
                "dataset":"SMUD_WMS_Primary",
                "style":{  
                   "image":{  
                      "singleTile":true
                   }
                }
             },
             {  
                "id":"radar_WMS_TEST",
                "dataset":"TEST_WMS_Dataset",
                "style":{  
                   "image":{  
                      "singleTile":true
                   }
                }
             }
          ]
       }
    ],
    "searchables":[  
       {  
          "id":"searchable_points",
          "name":"DA_Points",
          "dataset":"dataset_DAPoints",
          "anyTextSupport":false,
          "anyTextProperties":[  
             "Type"
          ]
       }
    ],
    "cameraPositions":[  
       {  
          "id":"9dc7dcfc-2485-4692-a8e0-7dfc13da9478",
          "name":"USA",
          "displayCRS":"EPSG:3857",
          "geoPosition":{  
             "type":"point",
             "crsCode":{  
                "base":"EPSG:3857",
                "fixedAxes":"enu"
             },
             "coords":[  
                -13502032,
                4676981
             ]
          },
          "pitch":0.0,
          "roll":0.0,
          "yaw":0.0,
          "height":10000
       }
    ],
    "datasets":[  
       {  
          "id":"9f4cecf6-5e51-94ce-596e-f1dd53ad44aa",
          "sources":[  
             "7c5fcf7e-8e3a-41ea-8d53-65fad1cefa33"
          ]
       },
       {  
          "id":"dataset_DAAreas",
          "sources":[  
             "fsd_DAArea"
          ]
       },
       {  
          "id":"dataset_DAPoints",
          "sources":[  
             "fsd_DAPoint"
          ]
       },
       {  
          "id":"SMUD_WMS_Primary",
          "sources":[  
             "fsd_WMS_Primary"
          ]
       },
       {  
          "id":"TEST_WMS_Dataset",
          "sources":[  
             "fsd_WMS_Test"
          ]
       }
    ],
    "featureSourceDescriptions":[  
       {  
          "id":"7c5fcf7e-8e3a-41ea-8d53-65fad1cefa33",
          "type":"slippyMapLayer",
          "service":"7073d7f5-7149-44db-9277-664194db3e58"
       },
       {  
          "id":"fsd_DAArea",
          "type":"wfsFeatureType",
          "typeName":{  
             "localName":"DamageAssessmentAreas",
             "namespace":"http://www.intergraph.com/geomedia/gml"
          },
          "service":"service_DA",
          "primaryKeyFieldName":"DAA_ID",
          "geometryFieldName":"DAA_AREA_GEOMETRY",
          "featurePrefix":"gmgml",
          "geometryType":"Polygon"
       },
       {  
          "id":"fsd_DAPoint",
          "type":"wfsFeatureType",
          "typeName":{  
             "localName":"DamageAssessmentPoints",
             "namespace":"http://www.intergraph.com/geomedia/gml"
          },
          "service":"service_DA",
          "primaryKeyFieldName":"DAP_ID",
          "geometryFieldName":"DAP_GEOMETRY",
          "geometryType":"Point"
       },
       {  
          "id":"fsd_WMS_Primary",
          "type":"wmsLayer",
          "service":"WMS_DA",
          "layerName":"SMUDData"
       },
       {  
          "id":"fsd_WMS_Test",
          "type":"wmsLayer",
          "layerName":"nexrad_base_reflect",
          "service":"WMS_TEST"
       },
       {  
          "id":"AreaDbFsdId",
          "type":"dbFeatureType",
          "tableName":"DamageAssessmentAreas",
          "geometryColumnName":"geom",
          "geometryType":"Polygon",
          "primaryKeyFieldName":"DAA_ID",
          "service":"damageAreaDbServiceId"
       }
    ],
    "services":[  
       {  
          "id":"7073d7f5-7149-44db-9277-664194db3e58",
          "name":"Open Street Map",
          "type":"osmService",
          "url":"http://{a,b,c}.tile.openstreetmap.org"
       },
       {  
          "id":"service_DA",
          "name":"Hexagon Geospatial OGC Web Feature Service",
          "type":"wfsService",
          "url":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get",
          "serviceMetadata":"serviceMetadata_DA"
       },
       {  
          "id":"WMS_DA",
          "name":"WMS",
          "type":"wmsService",
          "url":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get",
          "serviceMetadata":"serviceMetadata_WMS"
       },
       {  
          "id":"WMS_TEST",
          "name":"Radar",
          "type":"wmsService",
          "url":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi",
          "serviceMetadata":"serviceMetadata_TEST"
       },
       {  
          "id":"syncServiceId",
          "name":"syncservice",
          "type":"syncService",
          "url":"http://insvmpfdev.ingrnet.com/syncservice"
       },
       {
        "id": "damageAreaDbServiceId",
        "name": "AREA",
        "type": "db",
        "dbType": "gpkg",
        "connectionString": "offline/AreaVector.gpkg",
        "serviceMetadata": "damageAreaDbServiceMetadataId"
      }
    ],
    "servicesMetadata":[
        {
            "id": "damageAreaDbServiceMetadataId",
            "contents": [{
                "name": "AREA",
                "supportedCrses": [
                    "EPSG:3857"
                ]
            }],
            "type": "gpkgServiceMetadata"
       }, 
       {  
          "id":"serviceMetadata_DA",
          "operationsMetadata":{  
             "getCapabilities":{  
                "endpoints":{  
                   "get":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get?",
                   "post":"http://vmdadev.intergraph.com/damagewfs2/service.svc/post"
                }
             },
             "getFeature":{  
                "parameters":{  
                   "formats":[  
                      "text/xml; subtype=gml/3.1.1"
                   ]
                },
                "endpoints":{  
                   "post":"http://vmdadev.intergraph.com/damagewfs2/service.svc/post"
                }
             },
             "describeFeatureType":{  
                "endpoints":{  
                   "get":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get?",
                   "post":"http://vmdadev.intergraph.com/damagewfs2/service.svc/post"
                }
             }
          },
          "featureTypes":[  
             {  
                "title":"DamageAssessmentAreas",
                "name":{  
                   "localName":"DamageAssessmentAreas",
                   "namespace":"http://www.intergraph.com/geomedia/gml"
                },
                "outputFormats":[  
                   "text/xml; subtype=gml/3.1.1"
                ],
                "defaultCrs":"EPSG:3857"
             },
             {  
                "title":"DamageAssessmentPoints",
                "name":{  
                   "localName":"DamageAssessmentPoints",
                   "namespace":"http://www.intergraph.com/geomedia/gml"
                },
                "outputFormats":[  
                   "text/xml; subtype=gml/3.1.1"
                ],
                "defaultCrs":"EPSG:3857"
             }
          ],
          "serviceTitle":"Hexagon Geospatial OGC Web Feature Service",
          "version":"1.1.0",
          "type":"wfsServiceMetadata"
       },
       {  
          "id":"serviceMetadata_WMS",
          "operationsMetadata":{  
             "getCapabilities":{  
                "endpoints":{  
                   "get":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get?",
                   "post":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/post"
                }
             },
             "getMap":{  
                "parameters":{  
                   "formats":[  
                      "image/png",
                      "image/jpeg",
                      "image/svg+xml"
                   ]
                },
                "endpoints":{  
                   "get":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get?",
                   "post":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/post"
                }
             },
             "getFeatureInfo":{  
                "parameters":{  
                   "formats":[  
                      "text/xml",
                      "text/html",
                      "application/gml+xml; version=3.1"
                   ]
                },
                "endpoints":{  
                   "get":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get?",
                   "post":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/post"
                }
             }
          },
          "rootLayer":{  
             "title":"Hexagon Geospatial OGC Web Map Service",
             "name":"root",
             "crs":[  
                "EPSG:3857"
             ],
             "layers":[  
                {  
                   "title":"SMUDData",
                   "name":"SMUDData"
                }
             ]
          },
          "serviceTitle":"Hexagon Geospatial OGC Web Map Service",
          "version":"1.3.0",
          "type":"wmsServiceMetadata"
       },
       {  
          "id":"serviceMetadata_TEST",
          "operationsMetadata":{  
             "getCapabilities":{  
                "endpoints":{  
                   "get":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi"
                }
             },
             "getMap":{  
                "parameters":{  
                   "formats":[  
                      "image/png",
                      "image/jpeg",
                      "image/svg+xml"
                   ]
                },
                "endpoints":{  
                   "get":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi"
                }
             },
             "getFeatureInfo":{  
                "parameters":{  
                   "formats":[  
                      "text/plain",
                      "application/vnd.ogc.gml"
                   ]
                },
                "endpoints":{  
                   "get":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi"
                }
             }
          },
          "rootLayer":{  
             "title":"IEM WMS Service",
             "name":"nexrad_base_reflect",
             "crs":[  
                "EPSG:3857"
             ],
             "layers":[  
                {  
                   "title":"NEXRAD BASE REFLECT",
                   "name":"time_idx"
                },
                {  
                   "title":"NEXRAD BASE REFLECT",
                   "name":"nexrad-n0r-wmst"
                }
             ]
          },
          "serviceTitle":"IEM WMS Service",
          "version":"1.3.0",
          "type":"wmsServiceMetadata"
       }
    ],
    "crses":[  
       {  
          "id":"epsg_4326",
          "name":"WGS 84",
          "code":"EPSG:4326",
          "axes":[  
             {  
                "direction":0,
                "label":"N"
             },
             {  
                "direction":1,
                "label":"E"
             }
          ],
          "wGS84BBox":{  
             "north":90,
             "east":180,
             "south":-90,
             "west":-180
          },
          "proj4Config":"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",
          "isGeographic":true,
          "unit":{  
             "name":"DMSH",
             "fromMetersRatio":0.0174532925199433
          }
       },
       {  
          "id":"epsg_3857",
          "name":"Popular Visualisation CRS / Mercator",
          "code":"EPSG:3857",
          "axes":[  
             {  
                "direction":1,
                "label":"X"
             },
             {  
                "direction":0,
                "label":"Y"
             }
          ],
          "wGS84BBox":{  
             "north":85,
             "east":180,
             "south":-85,
             "west":-180
          },
          "proj4Config":"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defss",
          "isGeographic":false,
          "unit":{  
             "name":"metre",
             "fromMetersRatio":1
          }
       },
       {  
          "id":"epsg_900913",
          "name":"Popular Visualisation CRS / Mercator",
          "code":"EPSG:900913",
          "axes":[  
             {  
                "direction":1,
                "label":"X"
             },
             {  
                "direction":0,
                "label":"Y"
             }
          ],
          "wGS84BBox":{  
             "north":85,
             "east":180,
             "south":-85,
             "west":-180
          },
          "proj4Config":"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defss",
          "isGeographic":false,
          "unit":{  
             "name":"metre",
             "fromMetersRatio":1
          }
       }
    ],
    "applicationApiCustomConfigurationId":"DamageAssessmentConfig",
    "customConfigurations":[  
       {  
          "id":"DamageAssessmentConfig",
          "properties":{  
             "HandlerPath":"http://insvmpfdev.ingrnet.com/ucspatial/DAServices/",
             "centerOnTap":true
          }
       }
    ],
    "synchronization":[  
       {  
          "id":"areasSync",
          "localFsd":"AreaDbFsdId",
          "remoteFsd":"fsd_DAArea",
          "service":"syncServiceId",
          "options":{  
             "outputCrs":"EPSG:3857",
             "bbox":[  
                "-9368962.993942337",
                "3955864.6340997987",
                "-9367355.427691216",
                "3957598.799179017"
             ],
             "zoomLevel":"16"
          }
       }
    ]
 }

I still do not see the sync buttons. I feel like there is some naming structure I do not understand, please help. 

 

Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: Issues when configuring the offline synchronization

When I use your configuration, I get the sync button displayed.

 

Do you have the latest SDK?

If yes, did you overwirte the index.html with the old version, or did you merged the changes?

 

When I tried to synchronize the changes I got an error, that GetFeature Get endpoint is not defined.

You forgot to add: "get":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get", in line 266.

 

After this fix I get an error from your SyncService, about the invalid typename.

The typename isn't correct. DamageAssesmentAreas -> DamageAreas

The geometryField name isn't correct DAA_AREA_GEOMETRY -> DA_GEOMETRY

 

In the sync service web.config, please delete the following entry lt;ogcSmiley TongueropertyName>Geometry</ogcSmiley TongueropertyName>, in line 115.

It shouldn't be the service's default, we will remove it and in the next release it won't be present.

 

After the fixes synchronization passes, but in the configured are there aren't any features.

 

The fixed configuraiton file:

 

 

{  
    "schema":"http://www.hexagongeospatial.com/webgis/jsonSchema/v1.0",
    "appName":"Webgis Application",
    "startingWorkspaceId":"WORKSPACE",
    "clientConfiguration":"7FFB78FD-5F9E-4B0C-819F-4CE8633B32A3",
    "configurations":[  
       {  
          "id":"7FFB78FD-5F9E-4B0C-819F-4CE8633B32A3",
          "use3d":false,
          "fallback":true,
          "useProxy":false,
          "mapConfiguration":{  
             "id":"customMapConfiguration",
             "minHeight":50,
             "maxHeight":300000000
          }
       }
    ],
    "workspaces":[  
       {  
          "id":"WORKSPACE",
          "name":"BING",
          "legends":[  
             "dbbf386a-88a1-490c-b48d-3bc00383ea26"
          ],
          "cameraPositions":[  
             "9dc7dcfc-2485-4692-a8e0-7dfc13da9478"
          ],
          "mapCompositions":[  
             "6ea7f590-f44c-4135-b112-c582c5d415bc"
          ],
          "activeLegends":{  
             "main":"dbbf386a-88a1-490c-b48d-3bc00383ea26"
          },
          "activeCameraPositions":{  
             "main":"9dc7dcfc-2485-4692-a8e0-7dfc13da9478"
          }
       }
    ],
    "mapCompositions":[  
       {  
          "id":"6ea7f590-f44c-4135-b112-c582c5d415bc",
          "name":"USA",
          "legend":"dbbf386a-88a1-490c-b48d-3bc00383ea26",
          "cameraPosition":"9dc7dcfc-2485-4692-a8e0-7dfc13da9478"
       }
    ],
    "legends":[  
       {  
          "id":"dbbf386a-88a1-490c-b48d-3bc00383ea26",
          "name":"USA",
          "entries":[  
             {  
                "id":"dbc4183a-e628-448c-85f3-43ae45185d80",
                "dataset":"9f4cecf6-5e51-94ce-596e-f1dd53ad44aa"
             },
             {  
                "id":"legendEntry_SMUD_WMS_Primary",
                "dataset":"SMUD_WMS_Primary",
                "style":{  
                   "image":{  
                      "singleTile":true
                   }
                }
             },
             {  
                "id":"radar_WMS_TEST",
                "dataset":"TEST_WMS_Dataset",
                "style":{  
                   "image":{  
                      "singleTile":true
                   }
                }
             }
          ]
       }
    ],
    "searchables":[  
       {  
          "id":"searchable_points",
          "name":"DA_Points",
          "dataset":"dataset_DAPoints",
          "anyTextSupport":false,
          "anyTextProperties":[  
             "Type"
          ]
       }
    ],
    "cameraPositions":[  
       {  
          "id":"9dc7dcfc-2485-4692-a8e0-7dfc13da9478",
          "name":"USA",
          "displayCRS":"EPSG:3857",
          "geoPosition":{  
             "type":"point",
             "crsCode":{  
                "base":"EPSG:3857",
                "fixedAxes":"enu"
             },
             "coords":[  
                -13502032,
                4676981
             ]
          },
          "pitch":0.0,
          "roll":0.0,
          "yaw":0.0,
          "height":10000
       }
    ],
    "datasets":[  
       {  
          "id":"9f4cecf6-5e51-94ce-596e-f1dd53ad44aa",
          "sources":[  
             "7c5fcf7e-8e3a-41ea-8d53-65fad1cefa33"
          ]
       },
       {  
          "id":"dataset_DAAreas",
          "sources":[  
             "fsd_DAArea"
          ]
       },
       {  
          "id":"dataset_DAPoints",
          "sources":[  
             "fsd_DAPoint"
          ]
       },
       {  
          "id":"SMUD_WMS_Primary",
          "sources":[  
             "fsd_WMS_Primary"
          ]
       },
       {  
          "id":"TEST_WMS_Dataset",
          "sources":[  
             "fsd_WMS_Test"
          ]
       }
    ],
    "featureSourceDescriptions":[  
       {  
          "id":"7c5fcf7e-8e3a-41ea-8d53-65fad1cefa33",
          "type":"slippyMapLayer",
          "service":"7073d7f5-7149-44db-9277-664194db3e58"
       },
       {  
          "id":"fsd_DAArea",
          "type":"wfsFeatureType",
          "typeName":{  
             "localName":"DamageAreas",
             "namespace":"http://www.intergraph.com/geomedia/gml"
          },
          "service":"service_DA",
          "primaryKeyFieldName":"DAA_ID",
          "geometryFieldName":"DA_GEOMETRY",
          "featurePrefix":"gmgml",
          "geometryType":"Polygon"
       },
       {  
          "id":"fsd_DAPoint",
          "type":"wfsFeatureType",
          "typeName":{  
             "localName":"DamageAssessmentPoints",
             "namespace":"http://www.intergraph.com/geomedia/gml"
          },
          "service":"service_DA",
          "primaryKeyFieldName":"DAP_ID",
          "geometryFieldName":"DAP_GEOMETRY",
          "geometryType":"Point"
       },
       {  
          "id":"fsd_WMS_Primary",
          "type":"wmsLayer",
          "service":"WMS_DA",
          "layerName":"SMUDData"
       },
       {  
          "id":"fsd_WMS_Test",
          "type":"wmsLayer",
          "layerName":"nexrad_base_reflect",
          "service":"WMS_TEST"
       },
       {  
          "id":"AreaDbFsdId",
          "type":"dbFeatureType",
          "tableName":"DamageAreas",
          "geometryColumnName":"geom",
          "geometryType":"Polygon",
          "primaryKeyFieldName":"DAA_ID",
          "service":"damageAreaDbServiceId"
       }
    ],
    "services":[  
       {  
          "id":"7073d7f5-7149-44db-9277-664194db3e58",
          "name":"Open Street Map",
          "type":"osmService",
          "url":"http://{a,b,c}.tile.openstreetmap.org"
       },
       {  
          "id":"service_DA",
          "name":"Hexagon Geospatial OGC Web Feature Service",
          "type":"wfsService",
          "url":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get",
          "serviceMetadata":"serviceMetadata_DA"
       },
       {  
          "id":"WMS_DA",
          "name":"WMS",
          "type":"wmsService",
          "url":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get",
          "serviceMetadata":"serviceMetadata_WMS"
       },
       {  
          "id":"WMS_TEST",
          "name":"Radar",
          "type":"wmsService",
          "url":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi",
          "serviceMetadata":"serviceMetadata_TEST"
       },
       {  
          "id":"syncServiceId",
          "name":"syncservice",
          "type":"syncService",
          "url":"http://insvmpfdev.ingrnet.com/syncservice"
       },
       {
        "id": "damageAreaDbServiceId",
        "name": "AREA",
        "type": "db",
        "dbType": "gpkg",
        "connectionString": "offline/AreaVector.gpkg",
        "serviceMetadata": "damageAreaDbServiceMetadataId"
      }
    ],
    "servicesMetadata":[
        {
            "id": "damageAreaDbServiceMetadataId",
            "contents": [{
                "name": "AREA",
                "supportedCrses": [
                    "EPSG:3857"
                ]
            }],
            "type": "gpkgServiceMetadata"
       }, 
       {  
          "id":"serviceMetadata_DA",
          "operationsMetadata":{  
             "getCapabilities":{  
                "endpoints":{  
                   "get":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get",
                   "post":"http://vmdadev.intergraph.com/damagewfs2/service.svc/post"
                }
             },
             "getFeature":{  
                "parameters":{  
                   "formats":[  
                      "text/xml; subtype=gml/3.1.1"
                   ]
                },
                "endpoints":{ 
                   "get":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get",
                   "post":"http://vmdadev.intergraph.com/damagewfs2/service.svc/post"
                }
             },
             "describeFeatureType":{  
                "endpoints":{  
                   "get":"http://vmdadev.intergraph.com/damagewfs2/service.svc/get",
                   "post":"http://vmdadev.intergraph.com/damagewfs2/service.svc/post"
                }
             }
          },
          "featureTypes":[  
             {  
                "title":"DamageAreas",
                "name":{  
                   "localName":"DamageAreas",
                   "namespace":"http://www.intergraph.com/geomedia/gml"
                },
                "outputFormats":[  
                   "text/xml; subtype=gml/3.1.1"
                ],
                "defaultCrs":"EPSG:3857"
             },
             {  
                "title":"DamageAssessmentPoints",
                "name":{  
                   "localName":"DamageAssessmentPoints",
                   "namespace":"http://www.intergraph.com/geomedia/gml"
                },
                "outputFormats":[  
                   "text/xml; subtype=gml/3.1.1"
                ],
                "defaultCrs":"EPSG:3857"
             }
          ],
          "serviceTitle":"Hexagon Geospatial OGC Web Feature Service",
          "version":"1.1.0",
          "type":"wfsServiceMetadata"
       },
       {  
          "id":"serviceMetadata_WMS",
          "operationsMetadata":{  
             "getCapabilities":{  
                "endpoints":{  
                   "get":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get?",
                   "post":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/post"
                }
             },
             "getMap":{  
                "parameters":{  
                   "formats":[  
                      "image/png",
                      "image/jpeg",
                      "image/svg+xml"
                   ]
                },
                "endpoints":{  
                   "get":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get?",
                   "post":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/post"
                }
             },
             "getFeatureInfo":{  
                "parameters":{  
                   "formats":[  
                      "text/xml",
                      "text/html",
                      "application/gml+xml; version=3.1"
                   ]
                },
                "endpoints":{  
                   "get":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/get?",
                   "post":"http://vmdadev.intergraph.com/SMUDWMS10/service.svc/post"
                }
             }
          },
          "rootLayer":{  
             "title":"Hexagon Geospatial OGC Web Map Service",
             "name":"root",
             "crs":[  
                "EPSG:3857"
             ],
             "layers":[  
                {  
                   "title":"SMUDData",
                   "name":"SMUDData"
                }
             ]
          },
          "serviceTitle":"Hexagon Geospatial OGC Web Map Service",
          "version":"1.3.0",
          "type":"wmsServiceMetadata"
       },
       {  
          "id":"serviceMetadata_TEST",
          "operationsMetadata":{  
             "getCapabilities":{  
                "endpoints":{  
                   "get":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi"
                }
             },
             "getMap":{  
                "parameters":{  
                   "formats":[  
                      "image/png",
                      "image/jpeg",
                      "image/svg+xml"
                   ]
                },
                "endpoints":{  
                   "get":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi"
                }
             },
             "getFeatureInfo":{  
                "parameters":{  
                   "formats":[  
                      "text/plain",
                      "application/vnd.ogc.gml"
                   ]
                },
                "endpoints":{  
                   "get":"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi"
                }
             }
          },
          "rootLayer":{  
             "title":"IEM WMS Service",
             "name":"nexrad_base_reflect",
             "crs":[  
                "EPSG:3857"
             ],
             "layers":[  
                {  
                   "title":"NEXRAD BASE REFLECT",
                   "name":"time_idx"
                },
                {  
                   "title":"NEXRAD BASE REFLECT",
                   "name":"nexrad-n0r-wmst"
                }
             ]
          },
          "serviceTitle":"IEM WMS Service",
          "version":"1.3.0",
          "type":"wmsServiceMetadata"
       }
    ],
    "crses":[  
       {  
          "id":"epsg_4326",
          "name":"WGS 84",
          "code":"EPSG:4326",
          "axes":[  
             {  
                "direction":0,
                "label":"N"
             },
             {  
                "direction":1,
                "label":"E"
             }
          ],
          "wGS84BBox":{  
             "north":90,
             "east":180,
             "south":-90,
             "west":-180
          },
          "proj4Config":"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",
          "isGeographic":true,
          "unit":{  
             "name":"DMSH",
             "fromMetersRatio":0.0174532925199433
          }
       },
       {  
          "id":"epsg_3857",
          "name":"Popular Visualisation CRS / Mercator",
          "code":"EPSG:3857",
          "axes":[  
             {  
                "direction":1,
                "label":"X"
             },
             {  
                "direction":0,
                "label":"Y"
             }
          ],
          "wGS84BBox":{  
             "north":85,
             "east":180,
             "south":-85,
             "west":-180
          },
          "proj4Config":"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defss",
          "isGeographic":false,
          "unit":{  
             "name":"metre",
             "fromMetersRatio":1
          }
       },
       {  
          "id":"epsg_900913",
          "name":"Popular Visualisation CRS / Mercator",
          "code":"EPSG:900913",
          "axes":[  
             {  
                "direction":1,
                "label":"X"
             },
             {  
                "direction":0,
                "label":"Y"
             }
          ],
          "wGS84BBox":{  
             "north":85,
             "east":180,
             "south":-85,
             "west":-180
          },
          "proj4Config":"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defss",
          "isGeographic":false,
          "unit":{  
             "name":"metre",
             "fromMetersRatio":1
          }
       }
    ],
    "applicationApiCustomConfigurationId":"DamageAssessmentConfig",
    "customConfigurations":[  
       {  
          "id":"DamageAssessmentConfig",
          "properties":{  
             "HandlerPath":"http://insvmpfdev.ingrnet.com/ucspatial/DAServices/",
             "centerOnTap":true
          }
       }
    ],
    "synchronization":[  
       {  
          "id":"areasSync",
          "localFsd":"AreaDbFsdId",
          "remoteFsd":"fsd_DAArea",
          "service":"syncServiceId",
          "options":{  
             "outputCrs":"EPSG:3857",
             "bbox":[  
                "-9368962.993942337",
                "3955864.6340997987",
                "-9367355.427691216",
                "3957598.799179017"
             ],
             "zoomLevel":"16"
          }
       }
    ]
 }

 

Occasional Contributor
Posts: 7
Registered: ‎09-08-2017

Re: Issues when configuring the offline synchronization

Okay, the index.html was merged, not replaced. 

 

I tried everything you mentioned, I still do not see a sync button. 

 

 

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.