CSS all pages

V2I Hub 3.1 ISD input patch

  • gbaumgardner
  • gbaumgardner's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
11 months 1 week ago #381 by gbaumgardner
gbaumgardner created the topic: V2I Hub 3.1 ISD input patch
There are two bugs in the V2I Hub 3.1 system that prevent use of an ISD input to the MapPlugin.
1. The ISD is not parsed. Fix is in the MapPlugin code.
2. .json files are not allowed as upload files. Fix is in the V2I Hub web portal.

Instructions to patch:

$ cd v2i-hub

Copy the

File Attachment:

File Name: v2i-hub-is...atch.tgz
File Size:1 KB
file there

$ tar xvfz v2i-hub-isd-map-fix.patch.tgz
$ patch -t -p1 < v2i-hub-isd-map-fix.patch
$ make MapPlugin
Use the install instructions to remake the MapPlugin 3.1.1 ZIP file and use it to update V2I Hub

$ cd ../v2i-webportal

Copy the

File Attachment:

File Name: v2i-webpor...atch.tgz
File Size:1 KB
file there

$ tar xvfz v2i-webportal-json-upload.patch.tgz
$ patch -t -p1 < v2i-webportal-json-upload.patch

Update your web portal location.

Now, you should be able to upload the .json ISD file, and set it as your Map input file for the MapPlugin
Attachments:

Please Log in or Create an account to join the conversation.

More
10 months 3 weeks ago #394 by BEWamsley
BEWamsley replied the topic: V2I Hub 3.1 ISD input patch
I tried to download the files you provided in your post to fix the Map plugin issues, however when I click on them I get a 403 Forbidden error with the full error message being:

"You don't have permission to access /media/kunena/attachments/1584/v2i-hub-isd-map-fix.patch.tgz on this server."

This happens when I click on the link inside the post, and the links included in the "Attachments" section beneath the post.

Please Log in or Create an account to join the conversation.

More
10 months 3 weeks ago #395 by gibbsw
gibbsw replied the topic: V2I Hub 3.1 ISD input patch
We are looking at the issue and hope to have a solution soon.

Please Log in or Create an account to join the conversation.

  • gbaumgardner
  • gbaumgardner's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
10 months 3 weeks ago #396 by gbaumgardner
gbaumgardner replied the topic: V2I Hub 3.1 ISD input patch
Apparently there are no rights to download included in the discussion forum. Kind of a strange restriction, if you ask me. I will post the patch files as text. You will have to copy and save the text to the appropriate .patch file, then follow the rest of the procedure

Please Log in or Create an account to join the conversation.

  • gbaumgardner
  • gbaumgardner's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
10 months 3 weeks ago #397 by gbaumgardner
gbaumgardner replied the topic: v2i-hub-isd-map-fix.patch
From a011c64db77e98645c82e2b0cdaf31244e9de800 Mon Sep 17 00:00:00 2001
From: Greg Baumgardner <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Date: Tue, 17 Jul 2018 14:44:43 -0400
Subject: [PATCH 1/2] XML tag is wrong

---
MapPlugin/src/inputs/isd/ISDToJ2735r41.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MapPlugin/src/inputs/isd/ISDToJ2735r41.cpp b/MapPlugin/src/inputs/isd/ISDToJ2735r41.cpp
index 5dd0e38..5fd6c6d 100644
--- a/MapPlugin/src/inputs/isd/ISDToJ2735r41.cpp
+++ b/MapPlugin/src/inputs/isd/ISDToJ2735r41.cpp
@@ -247,7 +247,7 @@ MapData *ISDToJ2735r41::to_map() {
map->msgIssueRevision = 0;

// Layer type from string
- decodeEnumFromString(map->layerType, asn_DEF_LayerType, adaptor.get_layerType(), "layerType");
+ decodeEnumFromString(map->layerType, asn_DEF_LayerType, adaptor.get_layerType(), asn_DEF_LayerType.xml_tag);
if (!map->layerType)
return map;

--
2.7.4


From efd8e27a2b8554a6d8855d44ae0288c36a439a4d Mon Sep 17 00:00:00 2001
From: William Gibbs <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Date: Tue, 17 Jul 2018 15:32:21 -0400
Subject: [PATCH 2/2] Updated Version

---
MapPlugin/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MapPlugin/CMakeLists.txt b/MapPlugin/CMakeLists.txt
index 8f91197..d052850 100644
--- a/MapPlugin/CMakeLists.txt
+++ b/MapPlugin/CMakeLists.txt
@@ -1,4 +1,4 @@
-PROJECT ( MapPlugin VERSION 3.1.0 LANGUAGES CXX )
+PROJECT ( MapPlugin VERSION 3.1.1 LANGUAGES CXX )

SET (TMX_PLUGIN_NAME "MAP")

--
2.7.4

Please Log in or Create an account to join the conversation.

  • gbaumgardner
  • gbaumgardner's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
10 months 3 weeks ago #398 by gbaumgardner
gbaumgardner replied the topic: v2i-webportal-json-upload.patch
From 79dc4f32d993c7faf3989b24258cc9c710657854 Mon Sep 17 00:00:00 2001
From: William Gibbs <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Date: Tue, 17 Jul 2018 12:08:02 -0400
Subject: [PATCH] Added .json to acceptable file types for maps

---
js/tmx.fileUpload.library.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/js/tmx.fileUpload.library.js b/js/tmx.fileUpload.library.js
index d284cd4..f35952c 100644
--- a/js/tmx.fileUpload.library.js
+++ b/js/tmx.fileUpload.library.js
@@ -88,10 +88,10 @@ function createFileUploadDialog(accessLevel) {

if (accessLevel == "2") {
$("#fileButtonOptions > button[data-type=\"plugin\"]").on("mousedown", function () { setFileTypesForAndOpenFileUploadForm("plugin", accessLevel, ".deb,.zip,.tar.gz,.tgz") });
- $("#fileButtonOptions > button[data-type=\"map\"]").on("mousedown", function () { setFileTypesForAndOpenFileUploadForm("map", accessLevel, ".xml") });
+ $("#fileButtonOptions > button[data-type=\"map\"]").on("mousedown", function () { setFileTypesForAndOpenFileUploadForm("map", accessLevel, ".xml,.json") });
} else if (accessLevel == "3") {
$("#fileButtonOptions > button[data-type=\"plugin\"]").on("mousedown", function () { setFileTypesForAndOpenFileUploadForm("plugin", accessLevel, ".deb,.zip,.tar.gz,.tgz") });
- $("#fileButtonOptions > button[data-type=\"map\"]").on("mousedown", function () { setFileTypesForAndOpenFileUploadForm("map", accessLevel, ".xml") });
+ $("#fileButtonOptions > button[data-type=\"map\"]").on("mousedown", function () { setFileTypesForAndOpenFileUploadForm("map", accessLevel, ".xml,.json") });
$("#fileButtonOptions > button[data-type=\"other\"]").on("mousedown", function () { setFileTypesForAndOpenFileUploadForm("other", accessLevel, null) });
}
}
--
2.7.4

Please Log in or Create an account to join the conversation.

Time to create page: 0.041 seconds
Powered by Kunena Forum