{"action":"closed","issue":{"url":"https://api.github.com/repos/sryza/aas/issues/117","repository_url":"https://api.github.com/repos/sryza/aas","labels_url":"https://api.github.com/repos/sryza/aas/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/sryza/aas/issues/117/comments","events_url":"https://api.github.com/repos/sryza/aas/issues/117/events","html_url":"https://github.com/sryza/aas/issues/117","id":270861388,"number":117,"title":"[ch-08] At the jupyter notebook Apache Toree - Scala shell, the class RichGeometry is not defined","user":{"login":"jhhan45","id":25781981,"avatar_url":"https://avatars0.githubusercontent.com/u/25781981?v=4","gravatar_id":"","url":"https://api.github.com/users/jhhan45","html_url":"https://github.com/jhhan45","followers_url":"https://api.github.com/users/jhhan45/followers","following_url":"https://api.github.com/users/jhhan45/following{/other_user}","gists_url":"https://api.github.com/users/jhhan45/gists{/gist_id}","starred_url":"https://api.github.com/users/jhhan45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhhan45/subscriptions","organizations_url":"https://api.github.com/users/jhhan45/orgs","repos_url":"https://api.github.com/users/jhhan45/repos","events_url":"https://api.github.com/users/jhhan45/events{/privacy}","received_events_url":"https://api.github.com/users/jhhan45/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-03T02:10:21Z","updated_at":"2018-02-15T13:01:03Z","closed_at":"2018-02-15T13:01:03Z","author_association":"NONE","body":"I used the Spark at the jupyter notebook Apache Toree Scala shell.\r\n\r\nI tried to follow the code in ch08 and I successfully compile the external dependencies and import them. \r\n\r\nBut when I try to define `class RichGeometry` , the Spark shell made errors as follows\r\n\r\n`Name: Compile Error\r\nMessage: <console>:13: error: not found: type Geometry\r\n       class RichGeometry(val geometry: Geometry,\r\n                                        ^\r\n<console>:14: error: not found: type SpatialReference\r\n       val spatialReference: SpatialReference =\r\n                             ^\r\n<console>:15: error: not found: value SpatialReference\r\n       SpatialReference.create(4326)) {\r\n       ^\r\n<console>:17: error: not found: type Geometry\r\n       def contains(other: Geometry): Boolean = {\r\n                           ^\r\n<console>:18: error: not found: value GeometryEngine\r\n       GeometryEngine.contains(geometry, other, spatialReference)\r\n       ^\r\n<console>:20: error: not found: type Geometry\r\n       def distance(other: Geometry): Double = {\r\n                           ^\r\n<console>:21: error: not found: value GeometryEngine\r\n       GeometryEngine.distance(geometry, other, spatialReference)\r\n       ^`\r\n\r\nI successfully import dependencies as follows:\r\n\r\n`import com.esri.core.geometry.Geometry\r\nimport com.esri.core.geometry.GeometryEngine\r\nimport com.esri.core.geometry.SpatialReference`\r\n\r\nSo I don't know why it said that type Geometry, type SpatialReference are not found.\r\n\r\nThanks~~"}}
{"actor":{"display_login":"srowen"}}