|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
RpfTocEntry case insensitive series codeI have been playing around with RPF data by printing the A.TOC file
details. I want to see all the product series included in the data set. So I'm displaying data from RpfProductInfo in the RpfTocEntry. The problem is the RpfProductInfo can be set to RpfConstants.UK. The RpfProductInfo is set after reading a filename from the A.TOC file. Some of my A.TOC files include lowercase filenames. I understand the specification says everything should be uppercase, but the OpenMap library appears it can handle lowercase filenames. So, I've debugged it and found where an toUpperCase() on a String could fix the problem. See the attached patch file. Thanks, Kevin -- Kevin Pfarr Senior Software Engineer kevin.pfarr@... Asynchrony Solutions, Inc. 1701 Washington Avenue Saint Louis, Missouri 63103 www.asolutions.com [RpfTocEntry-uppercase.patch] ### Eclipse Workspace Patch 1.0 #P openmap Index: src/openmap/com/bbn/openmap/layer/rpf/RpfTocEntry.java =================================================================== --- src/openmap/com/bbn/openmap/layer/rpf/RpfTocEntry.java (revision 2263) +++ src/openmap/com/bbn/openmap/layer/rpf/RpfTocEntry.java (working copy) @@ -75,7 +75,7 @@ } public void setInfo(String seriesCode) { - info = (RpfProductInfo) RpfProductInfo.getCatalog().get(seriesCode); + info = (RpfProductInfo) RpfProductInfo.getCatalog().get(seriesCode.toUpperCase()); if (info != null) { if (info.dataType.equalsIgnoreCase("CIB")) Cib = true; |
|
|
Re: RpfTocEntry case insensitive series codeHi Kevin,
That's a nice fix, thanks for sending it in. It'll be in the next version of OpenMap. Thanks again, Don - Don =-=-=-=-=-=-=-=-= Don Dietrick @dfdietrick =-=-=-=-=-=-=-=-= On Thursday, April 5, 2012 at 8:50 PM, Kevin Pfarr wrote:
|
| Free embeddable forum powered by Nabble | Forum Help |