Exam 4 (Mod 9-11) Flashcards
What are the 5 key node folders (express framework)?
bin, public, views, node_modules, and routes
What folder in the express framework is responsible for the startup (contains core software)?
app.js
Which node folder holds the www file containing the startup script for the webserver?
bin
Which node folder contains all front-end content?
Public -> holds front-end js librarys, css files, static files, favicon.ico,
Which node folder does the require() function look for libraries?
node_modules
Where are node pug files kept within the node folder structure?
views
What are 6 common node packages for geospatial (list and describe their purpose)
1) Proj -> provides coordinate system transformations
2) Leaflet -> Js web mapping client
3) OpenLayers -> Js web mapping client
4) Pg -> connect and SQL w/ postgresSQL
5) Proj4leaflet -> to reproject for leaflet
6) Express-session -> back-end framework
What is NodeJs and what are its 7 components and their role?
NodeJs is an open-source, cross platform JavaScript runtime environment.
Below is a list of its 7 components:
1) crypto -> encryption
2) DNS -> domain name system
3) Event Loop -> for non-blocking IO
4) node bindings -> http, socket, file system
5) node Standard lib -> ~ 35 Js files
6) thread pool -> where all the long-running operations are performed in the background
7) V8 Engine -> interprets the JS
What are the 6 components of node express?
1) node
2) express
3) router
4) Pug What is it?
5) method
6) npm What is it?
What are the main characteristics of Pug?
- shorthand HTML with no closing tags (mix of Js & HTML)
- variables that usually contain JSON from server
- indentation sensitive
What are the 9 key files in a node Javascript App?
app.js
user.js
index.js
gist7132.js
error.pug
index.pug
layout.pug
styles.css
gist7132.css
Name 7 current webstorm projects.
Angualar
Bootstrap
Dart
Empty
HTML5 BP
Node Express
Phonegap
What are the 12 possible geometry types?
CIRCULARSTRING
CURVEPOLYGON
GEOMETRYCOLLECTION
LINESTRING
MULTILINESTRING
MULTIPOINT
MULTIPOLYGON
POINT
POLYGON
POLYHEDRAL SURFACE
TIN
TRIANGLE
What are 8 spatial file formats?
What are 12 Google chart style options?
Area
Bar
Bubble
Candlestick
Column
Donut
Gantt
Geo
Map
Pie
Table
Trendlines
What are 8 characters that might be used when parsing?
Braces
Brackets
Comma
Equal
Parentheses
Semicolon
Space
Colon
List 10 functions related to JSON.
row_to_json
array_to_json
to_json
json_array_length
json_each
json_object_keys
json_agg
st_geomfromgeojson
st_asgeojson
st_astopojson
What are 10 functions used to create geometry?
ST_Envelope
ST_Buffer
ST_ConvexHull
ST_Difference
ST_Union
ST_Intersection
ST_SymDifference
ST_Area
ST_Extent
ST_3DExtent
What are 10 input or output file formats that can be used with Postgis?
ewkb
ewkt
geoJSON
gml
JDBC-native
kml
shapefile
svg
wkb
wkt
What are 10 functions that inspect geometry?
ST_X
ST_Y
ST_Length
ST_EndPoint
ST_StartPoint
ST_PointN
ST_NumPoints
ST_Area
ST_ExteriorRing
ST_InteriorRingN
ST_NumInteriorRings
ST_NumGeometries
ST_GeometryN
List the SRID’s and the Projections or Coordinate Systems they are associated with. This card will be used as a reference for further SRID questions.
SRID—Name—-Type—-Comment
3005—MELP—AblersPlanar—The best ever!
3161—NAD83 / Ontario MNR Lambert—Planar—They think they are the best but there are not
3401—Alberta 10-TM—Planar—Wide like their roads
3857—Web Mercator—Planar—Google Maps, Bing, OSM, OL, Leaflet
3978—NAD83 / Canada Atlas Lambert—Planar—Canada’s projection according to the feds
3979—Canada Atlas Lambert—Planar—Web Services at geogratis (federal data)
4267—NAD 27—Polar—We are in Kansas
4326—WGS 84—Polar—YOUR phone!
26907—UTM zone 7N nad83—Planar—BC - Tatshenshini
26908—UTM zone 8N nad83—Planar—BC - Masset
26909—UTM zone 9N nad83—Planar—BC - Port Hardy
26910—UTM zone 10N nad83—Planar—BC - Lower Mainland
26911—UTM zone 11N nad83—Planar—BC - Cranbrook
What is the SRID for Alberta?
3401—Alberta 10-TM—Planar—Wide like their roads
What is are the SRID’s for the two most common coordinate systems WGS 84 and NAD 1927
4326—WGS 84—Polar—YOUR phone!
4267—NAD 27—Polar—We are in Kansas