Giter Club home page Giter Club logo

musa-620-week-6's People

Contributors

galkamax avatar

Watchers

 avatar  avatar

musa-620-week-6's Issues

Join the accident data to the Philly road network

Hi!
When I ran my code for the 3rd step, I got the error "syntax error at or near "FROM""!
See my code below.
Is anyone else having an issue?
Sincerely,
Laura

SELECT accidents_philadelphia_street_id.street_id, accidents_philadelphia_street_id.distance, SUM(accidents_philadelphia_street_id.* ) as num_accidents, ???
FROM accidents_philadelphia_street_id, streets
LEFT JOIN accidents_philadelphia_street_id ON streets.id = accidents_philadelphia_street_id.street_id
GROUP BY streets.id

ERROR: Schema 'ST' does not exist

When I try to run the second query with ST.Distance in my SELECT DISTINCT ON statement, I get an error saying schema ST does not exist. This is the code that I am trying to run -

SELECT DISTINCT ON (philly_accidents.id) philly_accidents.latitude, philly_accidents.longitud, streets.id, ST.Distance(philly_accidents.geom, streets.geom) as distance

FROM philly_accidents, streets

ORDER BY philly_accidents.id, ST.Distance (philly_accidents.geom, streets.geom)

Thanks for the help!

MUSA 620: Spatial Query Assignment

@MUSA-620-Fall-2017/musa-620 In preparation for next class, you should have two items installed.

  1. Postgres / PostGIS. Most of you should already have this set up from last class.

  2. Qgis (an open source alternative to ArcGIS). We will be using Qgis to import the data into our database. You can download it here: http://www.qgis.org/en/site/

The next required assignment is posted here: https://github.com/MUSA-620-Fall-2017/MUSA-620-Week-6

It is not due until the first class after break (March 15th), but it is a challenging one, so I recommend not waiting until the last minute to get started.

Max

Unable to open querying features in DB manager

@galkamax I recently reopened my qgis project and can no longer open the querying features in DB manager. PgAdmin is open and connected, and I wasn't having this issue before. Any idea as to why this is happening?

screen shot 2017-03-14 at 4 59 50 pm

screen shot 2017-03-14 at 5 00 37 pm

** RESOLVED**
Apparently I manually turned off the querying feature. If this happens to anyone else, in the database window, click "database", and then click "SQL window"

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.