GithubHelp home page GithubHelp logo

Dumb query about farmview HOT 10 CLOSED

stlim0730 avatar stlim0730 commented on July 30, 2024
Dumb query

from farmview.

Comments (10)

stlim0730 avatar stlim0730 commented on July 30, 2024

@calo1, I think I solved the SQL join issue. More updates to come, but it seems that I found a way to do joins.

Minor issues and details related to it:

  • I'm constructing the map layers from the scratch. The app won't simply import vizjson from CartoDB, but it will rely more on the code I'll write and more configuration data on admin panel. The settings on CartoDB should go to the admin panel. This requires a little chores that we should copy the cartocss for all the layers on CartoDB and paste it on the admin panel.
  • For the same reason, my local copy of the app doesn't have interactivity including infowindow and so on. I should build those features using the app data mentioned above. One advantage of this is that we can improve the infowindow (e.g., display human readable values, etc).
  • I'm trying to remove polygonaspoints layer in doing this process. I understand what you want from it, so I'm going to have data_polygon layer satisfies the requirement.
  • Existing bugs on query UIs are gone.

from farmview.

stlim0730 avatar stlim0730 commented on July 30, 2024

Currently, parcel-only queries and survey-only queries are working like a charm with join operations across the layers.

A semantic issue, I believe not technical, is that queries that involve both parcel and survey data (queries where all the three tables are involved) will hardly display results due to sparseness of the dataset; the more filters applied, the less results displayed. Do we want to somehow apply "union" for this type of queries, in order to increase the chance that we see some results (this might also help development and debugging process)? If we do, how?

I'm still working on this type of queries, but I want to make sure how we want to deal with it.

@calo1, what do you think?

from farmview.

stlim0730 avatar stlim0730 commented on July 30, 2024

I pushed my updates and deployed the latest version to the production sever. Good to see the app with the fully functioning query feature.

I'll keep this issue open for a few days so that @calo1 can test it. Any comments are welcomed.

from farmview.

stlim0730 avatar stlim0730 commented on July 30, 2024

Just note that the map lost interactivity of infowindow becuase the app doesn't import vizjson data from Carto. I'll create another issue on getting back the basic on-map interactivity.

from farmview.

calo1 avatar calo1 commented on July 30, 2024

@stlim0730 Query works well, I tested it sufficiently. That is a big milestone! But I'm a little worried about how to manage changes in map styling and data ... If I make new layers or new CartoDB visualizations ... How will the application reflect the changes? The vizjson was the Adam-proof way of getting those styling in the app.

I have CartoCSS files for each layer. Should I drop them here?

from farmview.

stlim0730 avatar stlim0730 commented on July 30, 2024

@calo1, good point. The settings are hard-coded in the source for now. The settings can be (and must be) modeled and configured on the admin panel later. This will be everyone-proof way. I think you should copy and paste some settings and code snippets from Carto (there's no CartoDB now!) to the admin panel, at most. Or, if I can come up with good enough design within the code, the copy and paste might not be even needed. We'll found out what we want to configure or not.

Showing a warning message is a good idea that also addresses other general needs, such as Carto errors. I'll work on it with low-to-med priority on on-map-interaction branch.

Did you notice the basemap changed? Take a look at Mapbox (https://www.mapbox.com) and let me know your preferred map tile. Map tile configuration will be also part of the admin configuration later.

Map interactivity:
I don't think you should. I'll build the feature from the scratch by pulling the data from Carto. I'll let you know when I need further information on your Carto account and settings.

One minor error I found was that the app fails to query the unique no_land_available datapoint in data_point table. The reason is that the geoprocessing code has a typo; no_land_availalble. I hope @sohyeonlee can fix it on her branch that will be eventually merged into master.

from farmview.

calo1 avatar calo1 commented on July 30, 2024

@stlim0730 Also: A general goal is that Farmview can be a suit of tools to replicate in other agricultural counties. Severing the link to 'carto' means that technical expertise will be needed as more visualizations are changed or added.

from farmview.

stlim0730 avatar stlim0730 commented on July 30, 2024

@calo1, I understand your concern. Let me try to find the optimal way that doesn't really compromise the accessibility through Carto.

Improving Django admin panel's usability might be an option.

from farmview.

calo1 avatar calo1 commented on July 30, 2024

@stlim0730 small note: The legend is also defined with html via Carto

from farmview.

stlim0730 avatar stlim0730 commented on July 30, 2024

Now query works fine, so I'm closing this issue.
I'll create a new issue to address the concern raised in conversation on this thread.

from farmview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.