Exam 4 (Mod 9-11) Flashcards

1
Q

What are the 5 key node folders (express framework)?

A

bin, public, views, node_modules, and routes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What folder in the express framework is responsible for the startup (contains core software)?

A

app.js

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which node folder holds the www file containing the startup script for the webserver?

A

bin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which node folder contains all front-end content?

A

Public -> holds front-end js librarys, css files, static files, favicon.ico,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which node folder does the require() function look for libraries?

A

node_modules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where are node pug files kept within the node folder structure?

A

views

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are 6 common node packages for geospatial (list and describe their purpose)

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is NodeJs and what are its 7 components and their role?

A

NodeJs is an open-source, cross platform JavaScript runtime environment.

NodeJs

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the 6 components of node express?

A

1) node
2) express
3) router
4) Pug What is it?
5) method
6) npm What is it?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the main characteristics of Pug?

A
  • shorthand HTML with no closing tags (mix of Js & HTML)
  • variables that usually contain JSON from server
  • indentation sensitive
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the 9 key files in a node Javascript App?

A

app.js

user.js

index.js

gist7132.js

error.pug

index.pug

layout.pug

styles.css

gist7132.css

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Name 7 current webstorm projects.

A

Angualar

Bootstrap

Dart

Empty

HTML5 BP

Node Express

Phonegap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the 12 possible geometry types?

A

CIRCULARSTRING

CURVEPOLYGON

GEOMETRYCOLLECTION

LINESTRING

MULTILINESTRING

MULTIPOINT

MULTIPOLYGON

POINT

POLYGON

POLYHEDRAL SURFACE

TIN

TRIANGLE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are 8 spatial file formats?

A

Extented Well Known Binary (EWKB) > more info

Extented Well Known Text (EWKT) > more info

GeoJSON

Geography Markup Language (GML)

Keyhole Markup Language (KML) > more info

Scalable Vector Graphics (SVG) > more info

Well Known Binary (WKB) > more info

Well Known Text (WKT) > more info

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are 11 options offered through the D3 Javascript library?

What is D3? –> More info at: D3

A

Circle pack with zoom > image
Circle packing > image
Cluster dendrogram > image
Force-directed graph > image
Force-directed states
Hierarchical edge bundling > image
Motion chart
Non-contiguous cartogram
Projections
Voronoi diagram > image
Voronoi tessellation/hover

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are 12 Google chart style options?

A

Area
Bar
Bubble
Candlestick
Column
Donut
Gantt
Geo
Map
Pie
Table
Trendlines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are 8 characters that might be used when parsing?

A

Braces

Brackets

Comma

Equal

Parentheses

Semicolon

Space

Colon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

List 10 functions related to JSON.

A

row_to_json
array_to_json
to_json
json_array_length
json_each
json_object_keys
json_agg
st_geomfromgeojson
st_asgeojson
st_astopojson

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What are 10 functions used to create geometry?

A

ST_Envelope

ST_Buffer

ST_ConvexHull

ST_Difference

ST_Union

ST_Intersection

ST_SymDifference

ST_Area

ST_Extent

ST_3DExtent

20
Q

What are 10 input or output file formats that can be used with Postgis?

A

ewkb
ewkt
geoJSON
gml
JDBC-native
kml
shapefile
svg
wkb
wkt

21
Q

What are 10 functions that inspect geometry?

A

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

22
Q

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.

A

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

23
Q

What is the SRID for Alberta?

A

3401—Alberta 10-TM—Planar—Wide like their roads

24
Q

What is are the SRID’s for the two most common coordinate systems WGS 84 and NAD 1927

A

4326—WGS 84—Polar—YOUR phone!

4267—NAD 27—Polar—We are in Kansas

25
What are 11 types of spatial relationships?
st_disjoint: [link](https://postgis.net/docs/ST_Disjoint.html) st_equals: [link](https://postgis.net/docs/ST_Equals.html) st_intersects: [link](https://postgis.net/docs/ST_Intersects.html) st_crosses: [link](https://postgis.net/docs/ST_Crosses.html) st_overlaps: [link](https://postgis.net/docs/ST_Overlaps.html) st_touches: [link](https://postgis.net/docs/ST_Touches.html) st_covers: [link](https://postgis.net/docs/ST_Covers.html) st_coversby: [link](https://postgis.net/docs/ST_CoveredBy.html) st_within: [link](https://postgis.net/docs/ST_Within.html) st_contains: [link](https://postgis.net/docs/ST_Contains.html) st_dwithin: [link](https://postgis.net/docs/ST_DWithin.html)
26
Name 5 spatial extentions for PostgreSQL.
topology tiger pointcloud pointcloud_postgis pg_routing
27
What are 8 Postgis components?
POSTGIS GEOS PROJ GDAL LIBXML LIBJSON RASTER SFCGAL
28
What are 5 Metadata tables and views.
public.spatial_ref_sys public.geometry_columns public.geography_columns public.raster_columns punlic.raster_overviews
29
What is Webstorm?
Webstorm is an Itegrated Development Environment for Javascript [Webstorm](https://www.jetbrains.com/webstorm/)
30
What is VSCode?
VSCode is a multi language code Integrated Development Environment. [VSCode](https://code.visualstudio.com/docs/setup/setup-overview)
31
List some common webserver methods.
OPTIONS GET HEAD POST PUT DELETE TRACE CONNECT PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK VERSION-CONTROL REPORT CHECKOUT CHECKIN UNCHECKOUT MKWORKSPACE UPDATE LABEL MERGE BASELINE-CONTROL MKACTIVITY ORDERPATCH ACL PATCH SEARCH
32
What is 3NECBH ™?
Node Never Ending Nested CallBack Hell
33
What are the various JS coding styles?
- Old school functions (KISS-style) - New school objects (WAR-style) FLATTEN EVERYTHING! - JSON - way too many colons when there should be none! - 3NECBH ™ - Node Never Ending Nested CallBack Hell - Promises, Promises
34
What web-browser is Fetch incompatible with?
Internet Explorer
35
What are the two core components of AJAX?
a XMLHttp request (can also be JSON or plain HTML) and a callback function responsible for the UI unpdating
36
What is the main purpose of AJAX and Fetch?
reactive webpages -> updating content without needing to refresh the entire webpage
37
What is the core component/paradigm of the Fetch API?
Promise chain
38
is a translator library for raster and vector geospatial data formats as a core dependency of the postgis extension
GDAL
39
and are both a C/C++ library for computational geometry with a focus on algorithms used in geographic information systems (GIS) software as a core dependency of the PostGIS extension
GEOS and SFCGAL
40
is a generic coordinate transformation software that transforms geospatial coordinates from one coordinate reference system (CRS) to another. This includes cartographic projections as well as geodetic transformations. It is a core dependency of the PostGIS extension
proj
41
What's the difference between WKT and WKTE?
WKTE is Well know text but with knowledge of SRIDs
42
what is GML?
Geography Markup Language (GML) is an XML grammar for expressing geographical Features
43
What are the OGC geometry types supported by PostGIS?
POINT, LINESTRING, POLYGON MULTIPOINT, MULTILINESTRING, MULTIPOLYGON GEOMETRY COLLECTION *Also supports Z and M versions and SRID
44
what is the general syntax for the PostGIS geometry constructor?
geometry(type,srid)
45
What functionality does the tiger extension provide?
geocoding
46
what is the role of the; 1) Space 2) Comma 3) Paraenthises 4) Semicolon 5) Equal signs in WKT and EWKT syntax
1) separates X Y Z and M values 2) separates coordinates/ordinates 3) group and separate coordinate pairs 4) separates the SRID from the geometry 5) assigns the SRID value