question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

uid not showing up in exported features

See original GitHub issue

I was testing osmium (3.0.0) objects and had 2 questions about this case:

import osmium

fields = osmium.osm.mutable.OSMObject(
    id=123, version=2, visible=True, uid=123, changeset=3212312, timestamp="2015-03-16T04:45:49Z", tags={"maxspeed": "50"}
)

way = osmium.osm.mutable.Way(fields, [])
writer = osmium.SimpleWriter('./output.pbf')
writer.add_way(way)
writer.close()

Converting the PBF file back into OPL yields

<?xml version='1.0' encoding='UTF-8'?>
<osm version="0.6" generator="osmconvert 0.8.10">
	<way id="123" version="2" timestamp="2015-03-16T04:45:49Z" changeset="3212312">
		<tag k="maxspeed" v="50"/>
	</way>
</osm>
  • Why is the uid not showing up in the way feature?
  • The constructor for mutable objects doesn’t take the user, is that because this can be changed easily (but uid doesn’t)? Is there a way to get the user passed in the OSMObject? (I did notice it exists in the osmium.osm.OSMObject)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lonviacommented, Jul 17, 2020

I have planned to do a release in the next days anyway. It will contain the fix.

0reactions
l-rcommented, Jul 17, 2020

@lonvia what is the release process after a small fix like this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Polygon features do not appear when printing or exporting a ...
When printing or exporting a map in ArcMap with a rotated data frame, some polygon features may not appear on the output.
Read more >
export UID="$(id -u)" cannot be used since UID is read only ...
The instructions says export UID="$(id -u)" Which on Centos 7 at least results in: -bash: UID: readonly variable and then docker-compose ...
Read more >
Attempted import error: 'uuid' does not contain a default export ...
Because the uuid package has not default export, as the error clearly states. (it used to exist, but has been removed).
Read more >
Issue ID and User ID exported auto. - Atlassian Community
On Excel, on the Home tab, click on "Get Jira Data", and on the "Fields" tab you can select the fields that you...
Read more >
FeatureClassToFeatureClass_co...
What I'm looking for is the arcpy equivalent of the export data feature in ArcMap, which does not delete the OBJECTID field (FID...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found