Skip to content

Commit

Permalink
append: Minor fixes. (#5741)
Browse files Browse the repository at this point in the history
* Minor fixes.

refs: #5740

* Copyright fix

refs: #5740

* update pg key

---------

Co-authored-by: olearytd <[email protected]>
  • Loading branch information
mattjdnv and olearytd authored Jan 16, 2024
1 parent a43b5cc commit d256573
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
5 changes: 4 additions & 1 deletion hoot-core/src/main/cpp/hoot/core/io/OgrWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* This will properly maintain the copyright information. Maxar
* copyrights will be updated automatically.
*
* @copyright Copyright (C) 2015-2023 Maxar (http://www.maxar.com/)
* @copyright Copyright (C) 2015-2024 Maxar (http://www.maxar.com/)
*/
#include "OgrWriter.h"

Expand Down Expand Up @@ -654,7 +654,10 @@ void OgrWriter::_addFeature(OGRLayer* layer, const std::shared_ptr<Feature>& f,

// If the field DOESN'T exist in the output layer, skip it.
if (poFeature->GetFieldIndex(ba.constData()) == -1)
{
LOG_DEBUG("Field " << ba.constData() << " does not exist. Skipping");
continue;
}

switch (v.type())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* This will properly maintain the copyright information. Maxar
* copyrights will be updated automatically.
*
* @copyright Copyright (C) 2016-2023 Maxar (http://www.maxar.com/)
* @copyright Copyright (C) 2016-2024 Maxar (http://www.maxar.com/)
*/
package hoot.services.controllers.export;

Expand Down Expand Up @@ -88,7 +88,6 @@ class ExportCommand extends ExternalCommand {

//Appends data to a blank fgdb. The template is either stored with translation or with the "local" ones.
private void appendToFGDB() {

// Split the translation string: "translations/TDSv71.js"
String[] tTrans = params.getTranslation().split("/");
String templateName = tTrans[1].replace(".js",".tgz");
Expand Down Expand Up @@ -116,6 +115,10 @@ private void appendToFGDB() {
ExternalCommand untarFileCommand = new UnTARFileCommand(exportTemplate, outputDir, this.getClass());
untarFileCommand.execute();
}
else {
params.setAppend(false);
}

}

List<String> getCommonExportHootOptions() {
Expand Down
4 changes: 2 additions & 2 deletions scripts/schema/hootLibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#* This will properly maintain the copyright information. Maxar
#* copyrights will be updated automatically.
#*
#* @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Maxar (http://www.maxar.com/)
#* @copyright Copyright (C) 2015-2024 Maxar (http://www.maxar.com/)

#*/

Expand Down Expand Up @@ -98,7 +98,7 @@ def printCopyright():
* This will properly maintain the copyright information. Maxar
* copyrights will be updated automatically.
*
* @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019, 2020, 2021 2022 2023 Maxar (http://www.maxar.com/)
* @copyright Copyright (C) 2015-2024 Maxar (http://www.maxar.com/)
*/
////
Expand Down
6 changes: 3 additions & 3 deletions translations/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -1559,9 +1559,9 @@ translate = {
// addSingleO2sFeature - Add a single o2s feature to a schema
addSingleO2sFeature: function(schema)
{
schema.push({ name:'o2s_A',desc:'o2s',geom:'Area',columns:[ {name:'tag1',desc:'Tag List',type:'String'/*,length:'8192'*/}] });
schema.push({ name:'o2s_L',desc:'o2s',geom:'Line',columns:[ {name:'tag1',desc:'Tag List',type:'String'/*,length:'8192'*/}] });
schema.push({ name:'o2s_P',desc:'o2s',geom:'Point',columns:[ {name:'tag1',desc:'Tag List',type:'String'/*,length:'8192'*/}] });
schema.push({ name:'o2s_A',desc:'o2s',geom:'Area',columns:[ {name:'tag1',desc:'Tag List',type:'String',length:'8192'}] });
schema.push({ name:'o2s_L',desc:'o2s',geom:'Line',columns:[ {name:'tag1',desc:'Tag List',type:'String',length:'8192'}] });
schema.push({ name:'o2s_P',desc:'o2s',geom:'Point',columns:[ {name:'tag1',desc:'Tag List',type:'String',length:'8192'}] });

return schema;
}, // End addSingleO2sFeature
Expand Down

0 comments on commit d256573

Please sign in to comment.