Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException when encoding tiles #160

Open
blacha opened this issue Jun 16, 2024 · 1 comment
Open

ClassCastException when encoding tiles #160

blacha opened this issue Jun 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@blacha
Copy link

blacha commented Jun 16, 2024

I have two tiles with two diffrent class cast exceptions

nz-parcels_10_1009_630.pbf.gz

java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Long (java.lang.String and java.lang.Long are in module java.base of loader 'bootstrap')
        at com.mlt.converter.encodings.PropertyEncoder.encodeInt64Column(PropertyEncoder.java:316)
        at com.mlt.converter.encodings.PropertyEncoder.encodeScalarPropertyColumn(PropertyEncoder.java:149)
        at com.mlt.converter.encodings.PropertyEncoder.encodePropertyColumns(PropertyEncoder.java:38)
        at com.mlt.converter.MltConverter.convertMvt(MltConverter.java:207)
        at com.mlt.tools.Encode.main(Encode.java:221)

and
nz-parcels_10_1009_628.pbf.gz

java.lang.ClassCastException: class java.lang.Double cannot be cast to class java.lang.Long (java.lang.Double and java.lang.Long are in module java.base of loader 'bootstrap')
        at com.mlt.converter.encodings.PropertyEncoder.encodeInt64Column(PropertyEncoder.java:316)
        at com.mlt.converter.encodings.PropertyEncoder.encodeScalarPropertyColumn(PropertyEncoder.java:149)
        at com.mlt.converter.encodings.PropertyEncoder.encodePropertyColumns(PropertyEncoder.java:38)
        at com.mlt.converter.MltConverter.convertMvt(MltConverter.java:207)
        at com.mlt.tools.Encode.main(Encode.java:221)

Theses errors are from the current main 7f0d690

with a

just clean
just test-java-cli

then java -jar ./build/libs/encode.jar -mvt nz-parcels_10_1009_628.pbf

@springmeyer springmeyer added the bug Something isn't working label Jun 21, 2024
@springmeyer
Copy link
Collaborator

@blacha thanks for ticketing this. It should be an easy fix, I hope to find time to take a look late next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants