Aller au contenu principal

Configure fields for export to xlsx, csv and shp

Terminée

Commentaires

5 commentaires

  • Cam Barnard

    I think what you are ultimately trying to accomplish is possible today, but not nearly as 'easy' as it could be.


    I suspect we'd need to provide you some examples, but the underlying viewer operation results.convert-to-csv supports a number of arguments for customizing the .CSV output. We may need to put up a forum post with some examples of how you'd customize the JSON command chain so you can visualize how to use the arguments.


    https://developers.geocortex.com/docs/web/api-commands-operations-events#definition-ToCsvConversionArgs

    0
  • Peter Jackson

    Thanks Cam, I'd certainly like to see some examples of how to customize the csv/xls output. I can see that I can choose to include selected attributes using the outFields argument but the Geometry column and ObjectID columns appear to be included by default. ObjectID isn't a problem but when exporting attributes associated with complex geometries I'd prefer to remove the Geometry column to prevent Excel giving warnings to users and then telling them that it has repaired the Geometry field by truncating it.


    My ideal would be to be able to exclude Geometry in all cases if possible. The user scenario is

    1. Use Rectangle or Polygon Identify to find features associated with a specific area
    2. Export the attributes of those features to Excel for further analysis.


    The extent of each polygon is valuable info but not the locations of each node.

    2
  • Adrian Marian

    The ability to configure which fields are exported to xlsx, csv or shp would be beneficial for users who need to export data from the web product into spreadsheets or other formats for use in other applications. It would allow users to select the fields relevant to their use case and make the output format more easily readable and actionable. Additionally, it would reduce the risk of data corruption due to an excessive number of characters in Excel.

    1
  • Martin Wingett

    Cam Barnard We've been trying the configure the export to csv to exclude the geometry and object_id.

    Were examples ever created to demonstrate this functionality as we've not been able to achieve it?

    Our use case is similar to Peter Jackson 

    Cheers.

     

    1
  • Dan Huerter

    With the help of Lance Bolton I modified the export to xlsx to be:

    [

      {

        "name": "results.convert-to-xlsx",

        "arguments": {

          "geometryFormat": "NONE"

        }

      },

      "system.download-file"

    ]

    This also works for export to csv.

    2

Vous devez vous connecter pour laisser un commentaire.