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

children of field areas not appearing in map #143

Open
miguelcleon opened this issue Jun 27, 2017 · 6 comments
Open

children of field areas not appearing in map #143

miguelcleon opened this issue Jun 27, 2017 · 6 comments
Labels

Comments

@miguelcleon
Copy link
Member

http://dev-odm2admin.cuahsi.org/LCZO/mapdata.html

I’m not certain why my field areas aren’t showing children. I thought maybe it was because their children didn’t have IGSNs, not all of the relationships between field areas and excavations are in the database (yet). So I used field area because they represent a catena over which 9 soil pits were dug.

COOX-3 should has one child with an IGSN at the moment and 3 without. This is at about lat 18.3100, lon -65.8185

Don, I added a ‘Is part of’ relationship between COOX-3 (samping feature id=659) and COOX-3-P55 Ridge (sampling feature id=405)

405 is part of 659

@lsetiawan
Copy link
Member

lsetiawan commented Jun 27, 2017

@miguelcleon I don't think I have added Is part of relationship yet. Only Is child of since that was the case for CZIMEA. Thanks.

@lsetiawan
Copy link
Member

@miguelcleon
Copy link
Member Author

but I'm only using is part of I'm confused 😕

@miguelcleon
Copy link
Member Author

I don't understand how the ecological land classifications are working they have is part of relationships. I changed COOX-3 to use is child of instead but it is still not showing children.

@lsetiawan
Copy link
Member

Hmm... okay. Must be doing some sort of weird behavior. I will look into this in a bit.

@lsetiawan
Copy link
Member

So, I think the things aren't showing up because they do not have igsn's. See https://github.com/miguelcleon/ODM2-Admin/blob/master/odm2admin/views.py#L683 I use Samplingfeatureexternalidentifiers to gather list of Children. Same with Siblings and Parents.

https://github.com/miguelcleon/ODM2-Admin/blob/master/odm2admin/views.py#L654 and https://github.com/miguelcleon/ODM2-Admin/blob/master/odm2admin/views.py#L655 I forgot to specify the relationship type that's why Is part of is working. I did specify this in https://github.com/miguelcleon/ODM2-Admin/blob/master/odm2admin/views.py#L660

I was really focused on getting CZIMEA Dataset to work at the time. Now that I have your database, more sophistication improvement is needed to parse out relationships between samplingfeatures. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants