{"action":"created","comment":{"url":"https://api.github.com/repos/USGS-CIDA/DSASweb/pulls/comments/43560101","id":43560101,"diff_hunk":"@@ -92,30 +122,48 @@ public String importToDatabase(File shorelineFile, Map<String, String> columns,\n \t\t\t\t\tshorelineId = shorelineDateToIdMap.get(shorelineDate);\n \t\t\t\t}\n \n+\t\t\t\tint segmentId = Integer.valueOf(point[0]);\n \t\t\t\tDouble originalX = Double.valueOf(point[1]);\n \t\t\t\tDouble originalY = Double.valueOf(point[2]);\n-\t\t\t\tCoordinateReferenceSystem sourceCRS = CRS.decode(EPSGCode);\n-\t\t\t\tCoordinateReferenceSystem targetCRS = CRS.decode(\"EPSG:4326\");\n-\t\t\t\tMathTransform transform = CRS.findMathTransform(sourceCRS, targetCRS, false);\n-\t\t\t\tGeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n-\t\t\t\tWKTReader reader = new WKTReader(geometryFactory);\n+\t\t\t\tDouble uncy = Double.valueOf(point[3]);\n+\t\t\t\t\n \t\t\t\tPoint pt;\n \t\t\t\ttry {\n \t\t\t\t\tpt = (Point) reader.read(\"POINT (\" + originalX + \" \" + originalY + \")\");\n \t\t\t\t} catch (com.vividsolutions.jts.io.ParseException ex) {\n \t\t\t\t\tthrow new TransformException(ex.getMessage());\n \t\t\t\t}\n-\t\t\t\tcom.vividsolutions.jts.geom.Geometry transformedPt = JTS.transform(pt, transform);\n+\t\t\t\tGeometry transformedPt = JTS.transform(pt, transform);\n \t\t\t\tDouble reprojectedX = transformedPt.getCentroid().getX();\n \t\t\t\tDouble reprojectedY = transformedPt.getCentroid().getY();\n-\n-\t\t\t\tinsertPointIntoShorelinePointsTable(\n+\t\t\t\t// first data row\n+\t\t\t\tif (row == 2) {\n+\t\t\t\t\tprevShorelineId = shorelineId;\n+\t\t\t\t\tprevSegmentId = segmentId;\n+\t\t\t\t}\n+\t\t\t\tif (prevShorelineId == shorelineId && prevSegmentId == segmentId || xyUncies.size() >= BATCH_SIZE) {\n+\t\t\t\t\txyUncies.add(new double[] {reprojectedX, reprojectedY, uncy});","path":"dsas-web-ui/src/main/java/gov/usgs/cida/dsas/dao/shoreline/ShorelineLidarFileDAO.java","position":107,"original_position":107,"commit_id":"84c89fd9819edf6abc0ce6086657701bffdebcc0","original_commit_id":"84c89fd9819edf6abc0ce6086657701bffdebcc0","user":{"login":"isuftin","id":928288,"avatar_url":"https://avatars.githubusercontent.com/u/928288?v=3","gravatar_id":"","url":"https://api.github.com/users/isuftin","html_url":"https://github.com/isuftin","followers_url":"https://api.github.com/users/isuftin/followers","following_url":"https://api.github.com/users/isuftin/following{/other_user}","gists_url":"https://api.github.com/users/isuftin/gists{/gist_id}","starred_url":"https://api.github.com/users/isuftin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isuftin/subscriptions","organizations_url":"https://api.github.com/users/isuftin/orgs","repos_url":"https://api.github.com/users/isuftin/repos","events_url":"https://api.github.com/users/isuftin/events{/privacy}","received_events_url":"https://api.github.com/users/isuftin/received_events","type":"User","site_admin":false},"body":"So if the array's size is equal to or greater than the BATCH_SIZE constant, you add more points to it? Is this correct?","created_at":"2015-10-30T22:46:48Z","updated_at":"2015-10-30T22:46:48Z","html_url":"https://github.com/USGS-CIDA/DSASweb/pull/54#discussion_r43560101","pull_request_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/USGS-CIDA/DSASweb/pulls/comments/43560101"},"html":{"href":"https://github.com/USGS-CIDA/DSASweb/pull/54#discussion_r43560101"},"pull_request":{"href":"https://api.github.com/repos/USGS-CIDA/DSASweb/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/USGS-CIDA/DSASweb/pulls/54","id":49330566,"html_url":"https://github.com/USGS-CIDA/DSASweb/pull/54","diff_url":"https://github.com/USGS-CIDA/DSASweb/pull/54.diff","patch_url":"https://github.com/USGS-CIDA/DSASweb/pull/54.patch","issue_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/issues/54","number":54,"state":"open","locked":false,"title":"Lidar upload fix","user":{"login":"jiwalker-usgs","id":1173041,"avatar_url":"https://avatars.githubusercontent.com/u/1173041?v=3","gravatar_id":"","url":"https://api.github.com/users/jiwalker-usgs","html_url":"https://github.com/jiwalker-usgs","followers_url":"https://api.github.com/users/jiwalker-usgs/followers","following_url":"https://api.github.com/users/jiwalker-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jiwalker-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jiwalker-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiwalker-usgs/subscriptions","organizations_url":"https://api.github.com/users/jiwalker-usgs/orgs","repos_url":"https://api.github.com/users/jiwalker-usgs/repos","events_url":"https://api.github.com/users/jiwalker-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jiwalker-usgs/received_events","type":"User","site_admin":false},"body":"Take a look @isuftin ","created_at":"2015-10-30T22:41:21Z","updated_at":"2015-10-30T22:46:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22d6b1cc8fcca1ec71e5559b1f1394664404f550","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/pulls/54/commits","review_comments_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/pulls/54/comments","review_comment_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/issues/54/comments","statuses_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/statuses/84c89fd9819edf6abc0ce6086657701bffdebcc0","head":{"label":"jiwalker-usgs:master","ref":"master","sha":"84c89fd9819edf6abc0ce6086657701bffdebcc0","user":{"login":"jiwalker-usgs","id":1173041,"avatar_url":"https://avatars.githubusercontent.com/u/1173041?v=3","gravatar_id":"","url":"https://api.github.com/users/jiwalker-usgs","html_url":"https://github.com/jiwalker-usgs","followers_url":"https://api.github.com/users/jiwalker-usgs/followers","following_url":"https://api.github.com/users/jiwalker-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jiwalker-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jiwalker-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiwalker-usgs/subscriptions","organizations_url":"https://api.github.com/users/jiwalker-usgs/orgs","repos_url":"https://api.github.com/users/jiwalker-usgs/repos","events_url":"https://api.github.com/users/jiwalker-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jiwalker-usgs/received_events","type":"User","site_admin":false},"repo":{"id":44195801,"name":"DSASweb","full_name":"jiwalker-usgs/DSASweb","owner":{"login":"jiwalker-usgs","id":1173041,"avatar_url":"https://avatars.githubusercontent.com/u/1173041?v=3","gravatar_id":"","url":"https://api.github.com/users/jiwalker-usgs","html_url":"https://github.com/jiwalker-usgs","followers_url":"https://api.github.com/users/jiwalker-usgs/followers","following_url":"https://api.github.com/users/jiwalker-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jiwalker-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jiwalker-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiwalker-usgs/subscriptions","organizations_url":"https://api.github.com/users/jiwalker-usgs/orgs","repos_url":"https://api.github.com/users/jiwalker-usgs/repos","events_url":"https://api.github.com/users/jiwalker-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jiwalker-usgs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jiwalker-usgs/DSASweb","description":"","fork":true,"url":"https://api.github.com/repos/jiwalker-usgs/DSASweb","forks_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/forks","keys_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/teams","hooks_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/hooks","issue_events_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/issues/events{/number}","events_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/events","assignees_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/assignees{/user}","branches_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/branches{/branch}","tags_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/tags","blobs_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/statuses/{sha}","languages_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/languages","stargazers_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/stargazers","contributors_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/contributors","subscribers_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/subscribers","subscription_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/subscription","commits_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/contents/{+path}","compare_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/merges","archive_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/downloads","issues_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/issues{/number}","pulls_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/pulls{/number}","milestones_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/milestones{/number}","notifications_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/labels{/name}","releases_url":"https://api.github.com/repos/jiwalker-usgs/DSASweb/releases{/id}","created_at":"2015-10-13T18:17:34Z","updated_at":"2015-10-13T18:17:37Z","pushed_at":"2015-10-30T22:40:36Z","git_url":"git://github.com/jiwalker-usgs/DSASweb.git","ssh_url":"git@github.com:jiwalker-usgs/DSASweb.git","clone_url":"https://github.com/jiwalker-usgs/DSASweb.git","svn_url":"https://github.com/jiwalker-usgs/DSASweb","homepage":null,"size":10495,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"USGS-CIDA:master","ref":"master","sha":"23a6b60c7c0f6e3d2a8559e902592e7ec7649fc6","user":{"login":"USGS-CIDA","id":918179,"avatar_url":"https://avatars.githubusercontent.com/u/918179?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-CIDA","html_url":"https://github.com/USGS-CIDA","followers_url":"https://api.github.com/users/USGS-CIDA/followers","following_url":"https://api.github.com/users/USGS-CIDA/following{/other_user}","gists_url":"https://api.github.com/users/USGS-CIDA/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-CIDA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-CIDA/subscriptions","organizations_url":"https://api.github.com/users/USGS-CIDA/orgs","repos_url":"https://api.github.com/users/USGS-CIDA/repos","events_url":"https://api.github.com/users/USGS-CIDA/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-CIDA/received_events","type":"Organization","site_admin":false},"repo":{"id":43599749,"name":"DSASweb","full_name":"USGS-CIDA/DSASweb","owner":{"login":"USGS-CIDA","id":918179,"avatar_url":"https://avatars.githubusercontent.com/u/918179?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-CIDA","html_url":"https://github.com/USGS-CIDA","followers_url":"https://api.github.com/users/USGS-CIDA/followers","following_url":"https://api.github.com/users/USGS-CIDA/following{/other_user}","gists_url":"https://api.github.com/users/USGS-CIDA/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-CIDA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-CIDA/subscriptions","organizations_url":"https://api.github.com/users/USGS-CIDA/orgs","repos_url":"https://api.github.com/users/USGS-CIDA/repos","events_url":"https://api.github.com/users/USGS-CIDA/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-CIDA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/USGS-CIDA/DSASweb","description":"","fork":false,"url":"https://api.github.com/repos/USGS-CIDA/DSASweb","forks_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/forks","keys_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/teams","hooks_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/hooks","issue_events_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/events","assignees_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/tags","blobs_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/languages","stargazers_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/stargazers","contributors_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/contributors","subscribers_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/subscribers","subscription_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/subscription","commits_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/merges","archive_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/downloads","issues_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/labels{/name}","releases_url":"https://api.github.com/repos/USGS-CIDA/DSASweb/releases{/id}","created_at":"2015-10-03T13:22:46Z","updated_at":"2015-10-13T15:52:55Z","pushed_at":"2015-10-30T22:41:21Z","git_url":"git://github.com/USGS-CIDA/DSASweb.git","ssh_url":"git@github.com:USGS-CIDA/DSASweb.git","clone_url":"https://github.com/USGS-CIDA/DSASweb.git","svn_url":"https://github.com/USGS-CIDA/DSASweb","homepage":null,"size":10884,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/USGS-CIDA/DSASweb/pulls/54"},"html":{"href":"https://github.com/USGS-CIDA/DSASweb/pull/54"},"issue":{"href":"https://api.github.com/repos/USGS-CIDA/DSASweb/issues/54"},"comments":{"href":"https://api.github.com/repos/USGS-CIDA/DSASweb/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/USGS-CIDA/DSASweb/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/USGS-CIDA/DSASweb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/USGS-CIDA/DSASweb/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/USGS-CIDA/DSASweb/statuses/84c89fd9819edf6abc0ce6086657701bffdebcc0"}}}}