I need to create 2 tables with distinct geometry.
One needs to be a table that has point information. The other needs to be a table that has line information.
They do not need to be populated as this is just a test. They just need to have the geometry column.
The code so far is:
CREATE TABLE point
CREATE TABLE line
How to add the geometry into the code?
Best Answer
The simple answer is:
Then inserts look like this:
You probably want to build indexes if you want to have some lookups on them. Also a primary key may be beneficial.