[
https://issues.apache.org/jira/browse/LUCENE-7918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16115482#comment-16115482
]
Karl Wright commented on LUCENE-7918:
-------------------------------------
I'm also seeing build warnings compiling this code, e.g.:
{code}
[javac]
C:\wipgit\lucene4\lucene-solr\lucene\spatial3d\src\test\org\apache\lucene\spatial3d\geom\GeoPolygonTest.java:978:
warning: [cast] redundant cast to
GeoPolygon
[javac] GeoPolygon polygon = (GeoPolygon)((GeoCompositePolygon)GeoPolygo
nFactory.makeGeoPolygon(PlanetModel.SPHERE, points)).shapes.get(0);
[javac] ^
[javac]
C:\wipgit\lucene4\lucene-solr\lucene\spatial3d\src\test\org\apache\lucene\spatial3d\geom\GeoPolygonTest.java:997:
warning: [cast] redundant cast to GeoPolygon
[javac] GeoPolygon polygon =
(GeoPolygon)((GeoCompositePolygon)GeoPolygonFactory.makeGeoPolygon(PlanetModel.SPHERE,
points,Collections.singletonList(hole))).shapes.get(0);
[javac] ^
[javac] C:\wipgit\lucene4\lucene-solr\lucene\spatial3d\src\test\org\apache\l
ucene\spatial3d\geom\GeoPolygonTest.java:1009: warning: [cast] redundant cast to
GeoPolygon
[javac] GeoPolygon polygon =
(GeoPolygon)((GeoCompositePolygon)GeoPolygonFactory.makeGeoPolygon(PlanetModel.SPHERE,
points)).shapes.get(0);
[javac] ^
[javac]
C:\wipgit\lucene4\lucene-solr\lucene\spatial3d\src\test\org\apache\lucene\spatial3d\geom\GeoPolygonTest.java:1028:
warning: [cast] redundant cast to GeoPolygon
[javac] GeoPolygon polygon =
(GeoPolygon)((GeoCompositePolygon)GeoPolygonFactory.makeGeoPolygon(PlanetModel.SPHERE,
points,Collections.singletonList(hole))).shapes.get(0);
[javac] ^
[javac] 4 warnings
{code}
I'll fix those if it passes precommit.
> Give access to members of a composite shape
> -------------------------------------------
>
> Key: LUCENE-7918
> URL: https://issues.apache.org/jira/browse/LUCENE-7918
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/spatial3d
> Reporter: Ignacio Vera
> Assignee: Karl Wright
> Attachments: LUCENE-7918.patch
>
>
> Hi [~daddywri],
> I hope this is my last point in my wish list. In order to serialize objects I
> need to access the members of a composite geoshape. This is currently not
> possible so I was wondering if it is possible to add to more methods to the
> class GeoCompositeMembershipShape:
> public int size()
> public GeoMembershipShape getShape(int index)
> Thanks,
> Ignacio
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]