Class GeopaparazziDatabaseProperties

    • Field Detail

      • PROPERTIESTABLE_FIELDS_LIST

        public static List<String> PROPERTIESTABLE_FIELDS_LIST
        The complete list of fields in the properties table.
    • Constructor Detail

      • GeopaparazziDatabaseProperties

        public GeopaparazziDatabaseProperties()
    • Method Detail

      • createPropertiesTable

        public static void createPropertiesTable​(ASpatialDb database)
                                          throws Exception
        Create the properties table.
        Parameters:
        database - the db to use.
        Throws:
        Exception
      • createDefaultPropertiesForTable

        public static BasicStyle createDefaultPropertiesForTable​(ASpatialDb database,
                                                                 String spatialTableUniqueName,
                                                                 String spatialTableLabelField)
                                                          throws Exception
        Create a default properties table for a spatial table.
        Parameters:
        database - the db to use. If null, the style is not inserted in the db.
        spatialTableUniqueName - the spatial table's unique name to create the property record for.
        Returns:
        Throws:
        Exception - if something goes wrong.
      • updateStyle

        public static void updateStyle​(ASpatialDb database,
                                       BasicStyle style)
                                throws Exception
        Update a style definition.
        Parameters:
        database - the db to use.
        style - the BasicStyle to set.
        Throws:
        Exception - if something goes wrong.