Smart M.App discussions

Looking for answers in regards to M.Apps, M.App Exchange or M.App Studio? Smart M.App Tech Discussion board is where you can search, ask your questions and assist others by sharing your knowledge. Join the conversation, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Occasional Contributor
Posts: 5
Registered: ‎07-15-2016

Publishing and/or previewing Shapefiles in M.App Chest

I uploaded the following files to M.App Chest:

parcelas2015.dbf
parcelas2015.prj
parcelas2015.shp
parcelas2015.shx
parcelas2015.tol

And they get interpreted as a SHP file (I can see the thumbnail through the M.App Chest interface).

Even though I can see the thumbnail, M.App Chest doesn't let me "publish" it, nor "preview" it.

Is this normal ? Am I doing something wrong?

Highlighted
Frequent Contributor
Posts: 102
Registered: ‎01-20-2016

Re: Publishing and/or previewing Shapefiles in M.App Chest

Hi,

vector data cannot be published, this is normal behaviour.

 

Please have a look at relating discussions here:

Displaying-a-shapefile-in-a-smart-M-App

Send-a-shapefile-to-BI-Panel

 

Not sure about the preview, it neither works with my raster data.

Regards,

Ruth

Highlighted
Occasional Contributor
Posts: 5
Registered: ‎07-15-2016

Re: Publishing and/or previewing Shapefiles in M.App Chest

We are developping using Incident Analyzer techique, so we are programming out of Studio.  So what could be the best way to do it?. Shapefiles area a very common asset on other GIS tools (we are not so familiar with Hexagon products).

Thanks.

Highlighted
Technical Evangelist
Posts: 1,273
Registered: ‎09-11-2015

Re: Publishing and/or previewing Shapefiles in M.App Chest

For Incident Analyzer it should be enough to provide a link to the GeoJSON file that gets generated once you upload ShapeFiles to M.App Chest. This is the workflow that was suggested to me byt a developer. I don't know the IA internal specifics in much details though.

 

  1. Get the catalog ID for the boundary layer
    1.jpg
  2. With IA running, and debug console open, make IA the active window
    2.png
  3. Run this command: HxGN.catalog.getDownloadLinkById("<YOUR CATALOG ID>", function (resp) { console.log(resp); });
  4. Paste the result into the online file section of the boundary layer.
  5. Or - use this command to automatically configure IA
HxGN.catalog.getDownloadLinkById("<YOUR CATALOG ID>", function (resp) {
  M.app.state.configurationModel.dataSetConfiguration.boundaryMenuConfig.setMenuId(2);
  M.app.state.configurationModel.dataSetConfiguration.directLink.setData("boundaryDataUrl", resp);
});

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial