-
-
Notifications
You must be signed in to change notification settings - Fork 472
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
Flex - Error with LineString and MultiLineString data #1386
Comments
The "wrapping" of a non-multi geometry in a multi geometry currently only works for polygons. I don't remember off the top of my head whether this was just because I didn't think of adding this to the linestrings or whether there was some reason I couldn't add this. The geometry code in osm2pgsql is somewhat weird, so it might be easy to do or not, I have to take a look. But, yes, for consistency I believe it should behave the same way as for the polygons. |
Same problem here. I need to load relations with multiple ways and single ways to the same table without splitting relations. Automatic type conversion would solve this fine, but even better to have a function for controlling this conversion from lua script. |
I believe this is fixed in |
It's working for me. Thank you! |
I am running into an error attempting to combine
linestring
andmultilinestring
data with the Flex output.Additional links to the specific commits where I encountered this are tracked here.
The previous version of the Lua script below did not handle relations, it worked fine. I added the relation handling for the polygons without issue (apparently dealing with polygon/multipolygon w/out problem). The error happens when I attempt adding the line processing into the relations. The original table definition had the
place_line
table set aslinestring
. Updating the table definition tomultilinestring
to allow relations to be added causes the error:Based on the osm2pgsql docs and how the polygon data has worked I expect the LineString data to automatically be converted to MultiLineString.
Version
place.lua
The text was updated successfully, but these errors were encountered: