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

"error while reading: UnexpectedEOF" reading MultiLineString #6

Closed
pka opened this issue May 16, 2016 · 2 comments
Closed

"error while reading: UnexpectedEOF" reading MultiLineString #6

pka opened this issue May 16, 2016 · 2 comments

Comments

@pka
Copy link
Collaborator

pka commented May 16, 2016

I get this exception for MultiLineString (and also MultiPolygon) when reading any data in EPSG:3857.

println!(">>>>>> {:#?}", row.get::<_, postgis::MultiLineString<postgis::Point<EPSG_3857>>>("wkb_geometry"));

->
thread 'datasource::postgis::test_from_geom_fields' panicked at 'called "Result::unwrap()" on an "Err" value: Read("error while reading: UnexpectedEOF")', ../src/libcore/result.rs:688

Here's a failing MultiLineString:
'0105000020110F000001000000010200000004000000A149950DA3BB564189DF62973DC35C4165CD9E8413C6564189DF62973DC35C410C6A639A84C856413CC52F806BC25C4159E55A3637CD5641D6FD917DC6BE5C41'::geometry
SRID=3857;MULTILINESTRING((5959308.21223679 7539958.36540974,5969998.07219252 7539958.36540974,5972498.41231776 7539118.00291568,5977308.84929784 7535385.96203562))

@andelf
Copy link
Owner

andelf commented May 17, 2016

Thanks for your reporting. Before this to be fix, try have a look at https://github.com/georust .:)

@pka
Copy link
Collaborator Author

pka commented Oct 26, 2016

Fixed with PR #9

@pka pka closed this as completed Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants