{"push_id":1152212119,"size":8,"distinct_size":8,"ref":"refs/heads/master","head":"e2cdd1802e7f88a86a80f7131ea24e21f40e664e","before":"b7beabdc9cfca6bce9b71c3aaf302cf73d084c78","commits":[{"sha":"586c5d6efa5fd169090aa0ed23cd53d0844a93d6","author":{"name":"RBerliner","email":"8c437d7e846bd872957e5ed48e3440cfe25a91ca@InstrumentationAssociates.com"},"message":"WIP debugging tiling for charts with non-zero skew.\n\nCoordsPolynomialTranslator.java\nChanged CoordsPolynomialTranslator to accept an AffineTransform in the constructors.\n\nThe coordinates polynomial translators are written in x,y and lat,lon referencing the original chart. For charts with non-zero skew, this presents a problem.\n\nThe affine transform is the one that rotates the chart to North up and translates it so that it fits into a box starting at the upper-left corner of the screen .\n\nModified  public Point getAbsolutePointFromPosition(double lon, double lat) so that it returns the point in the North-up transformed chart.\n\nModified Position getAbsolutePositionFromPoint(Point q) so that it uses the inverse transform and takes a point in the transformed Nurth-up chart, transforms this point to the corresponding point in the original chart and then calculats the position from the polynomial.\n\nAdded logging support and logging statements that printout the transformed and untransformed points.\n\nPosition.java\nAdded a toString method.\n\nMapReference.java\nAdded a toString() method to printout the Point and Position.\n\nKapProcessor.java\nChanged the log method so that it adds the current method to the log message.\n\nChanged public void createTilePyramid(File kapFile, File pyramidPath) to generate the AffineTransform for non-zero skew charts. Reads and saves (as *.png) the chart files.\n\nKAPParser.java\nAdded the AffineTransform as a private field.\nMany changes in loadHeader to add logging statements, to get the BufferedImage from the file and to determine the proper AffineTransform.\n\nAdded explicit ligging of the displayLimits values.\n\nAdded addional comments and logging statements in public Sector extractVisibleSectorFromBounds(Vector<Position> bounds).","distinct":true,"url":"https://api.github.com/repos/SignalK/maptools/commits/586c5d6efa5fd169090aa0ed23cd53d0844a93d6"},{"sha":"6cbad924dbc7746b199ac3954680db036661d226","author":{"name":"RBerliner","email":"8c437d7e846bd872957e5ed48e3440cfe25a91ca@InstrumentationAssociates.com"},"message":"WIP\nlog4j.properties\nChanged the appender format to printout the current method.","distinct":true,"url":"https://api.github.com/repos/SignalK/maptools/commits/6cbad924dbc7746b199ac3954680db036661d226"},{"sha":"0dda62d2efbef34d9fb803e160d6cc14dcc6730e","author":{"name":"RBerliner","email":"8c437d7e846bd872957e5ed48e3440cfe25a91ca@InstrumentationAssociates.com"},"message":"WIP.\nKapProcessor.java\nRemoved code in createTilePyramid that incorrectly transformed and then saved the graphics files as png.\nOther changes are formatting and some additions to logging statements\n\nKAPParser.java\nAdded code in loadHeader after the end of section that generates the AffineTransform for skewed charts. It also saves the untransformed and transformed charts as png.","distinct":true,"url":"https://api.github.com/repos/SignalK/maptools/commits/0dda62d2efbef34d9fb803e160d6cc14dcc6730e"},{"sha":"c13b86478fcf41dddc3b8eccb44f93b5941f94bf","author":{"name":"RBerliner","email":"8c437d7e846bd872957e5ed48e3440cfe25a91ca@InstrumentationAssociates.com"},"message":"WIP. Appears to be working for some of the skewed images but not all.\nChanged KAPParser to get the tiled image by taking a subimage from the image held in the KAPParser instance. This should be faster and if it is a skewed file, holds the rotated, translated image. If not-skewed, holds the original image.\nKAPPArser\nAdded fields rawMapHeightPixels and rawMapWidthPixels\nChanged public synchronized BufferedImage getImage(int aLeft, int aTop, int aWidth, int aHeight)  to use the image held in the KAPPArser instance\nAdded the methods getRawMapWidthPixels() and getRawMapHeightPixels().\nInitialized rawMazpHeightrPixels and rawMapWidthPixels when the KAP header is read.\nChanged the ptotection status of mapHeightPixels and mapWidthPixels to protected.\n\nKAPProcessor\nAdded logging of rawMapHEightPixels and rawMapWidhtPixels to theh method extractImage","distinct":true,"url":"https://api.github.com/repos/SignalK/maptools/commits/c13b86478fcf41dddc3b8eccb44f93b5941f94bf"},{"sha":"e32862407bdc8651329df3d31ee5e9aa81f1d8f7","author":{"name":"RBerliner","email":"8c437d7e846bd872957e5ed48e3440cfe25a91ca@InstrumentationAssociates.com"},"message":"Chart converstion now working for most skewed charts but not all.\n\nCoordsPolynomTransform\nRedid the debugging statements.\n\nKAPParser.java\nAdded a build of the CoordsPolynomGTransform when endOfSection is true\nAdded logger.isDebugEnabled blocks to generate and save the initial, rotated and finally rotated and translated png images.\nIf the program is run with debug level set to info, it will run faster and generate fewer files.\nCorrected the calculation of the translation following rotation.\nAdded a rebuild of the CoordsPolynomTransform at the end so that it has the AffineTransform corresponding to the rotation and translations.\nKAPParser now holds the rotated, translate chart in the BufferedImage image field.\nRewrote the section that calculates the upperLeft and bottomRight bounds of the rotated-translated chart.\n\nKapProcessor.java\nCorrected the log method to select the second element in the stack to get the currently executing method. It was usint the 3rd element which was incorrect.","distinct":true,"url":"https://api.github.com/repos/SignalK/maptools/commits/e32862407bdc8651329df3d31ee5e9aa81f1d8f7"},{"sha":"22e1f8e38a3ba1a03f02a6b5a90c9e4cdc117637","author":{"name":"RBerliner","email":"8c437d7e846bd872957e5ed48e3440cfe25a91ca@InstrumentationAssociates.com"},"message":"Chart conversion is now working.\nChecked on 250 files from NOAA CGD07 and the suite of NC RNCs from NOAA.\n\nStil getting a Raster error but the offending chart converts properly. For the moment, I will ignore the error.\n\nKAPParser.java\nAdded a logging statement to printout the Position vlaues read in teh PLY section of loadHEader()\nChanged the AffineTransform roatation to rotate around the center of the skewed chart. In this way, it cannot be rotated out of the visible screen.\nAdded the method getBounds(Point2D.Double []) to return the bounding Rectangle2D.Double.\n\nKapParser.java\nin createTilePyramid, removed any \"&\" in the title string. If and amperstand is present, you get SAXE parse errors.\nIn createTiles, if the image width or height it <= 0, return. Oterwise getImage will fail.","distinct":true,"url":"https://api.github.com/repos/SignalK/maptools/commits/22e1f8e38a3ba1a03f02a6b5a90c9e4cdc117637"},{"sha":"7957241f4c3504fbf1387b205d64dcc668a918d0","author":{"name":"RBerliner","email":"8c437d7e846bd872957e5ed48e3440cfe25a91ca@InstrumentationAssociates.com"},"message":"Some minor code cleanups.","distinct":true,"url":"https://api.github.com/repos/SignalK/maptools/commits/7957241f4c3504fbf1387b205d64dcc668a918d0"},{"sha":"e2cdd1802e7f88a86a80f7131ea24e21f40e664e","author":{"name":"rob42","email":"b93e48b8445e5b838ee3472c32911ea601bd3bb0@42.co.nz"},"message":"Merge pull request #3 from RBerliner/ronMaster\n\nmaptools now handles skewed charts","distinct":true,"url":"https://api.github.com/repos/SignalK/maptools/commits/e2cdd1802e7f88a86a80f7131ea24e21f40e664e"}]}
{"actor":{"display_login":"rob42"}}