Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostGIS includes Tiger/LINE data #1

Open
lukehutch opened this issue Jan 2, 2024 · 4 comments
Open

PostGIS includes Tiger/LINE data #1

lukehutch opened this issue Jan 2, 2024 · 4 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@lukehutch
Copy link

Hi, I see you made some effort to reduce the layer size in your Docker image. However, you are depending upon the postgis image, not the postgres image. The postgis image includes the Tiger/LINE data, which is large. Wouldn't it be better to base your image on postgres, and just install the postgis extension?

@lukehutch lukehutch added the bug Something isn't working label Jan 2, 2024
@joshuasundance-swca
Copy link
Owner

Great point! Thank you for pointing this out. I will check it out this week-- or you could submit a pull request. 😀

Thanks again.

@joshuasundance-swca joshuasundance-swca added the enhancement New feature or request label Jan 2, 2024
@lukehutch
Copy link
Author

Thanks -- in the end I decided to go with a different Docker image though, because your image is based on Postgres 13, and I was looking for a Docker image based on Postgres 16.

However, in case it helps, here are the tables that are set up by the postgis/postgis image that your image is based on:

# \dt
                   List of relations
  Schema  |           Name           | Type  |  Owner   
----------+--------------------------+-------+----------
 public   | spatial_ref_sys          | table | postgres
 tiger    | addr                     | table | postgres
 tiger    | addrfeat                 | table | postgres
 tiger    | bg                       | table | postgres
 tiger    | county                   | table | postgres
 tiger    | county_lookup            | table | postgres
 tiger    | countysub_lookup         | table | postgres
 tiger    | cousub                   | table | postgres
 tiger    | direction_lookup         | table | postgres
 tiger    | edges                    | table | postgres
 tiger    | faces                    | table | postgres
 tiger    | featnames                | table | postgres
 tiger    | geocode_settings         | table | postgres
 tiger    | geocode_settings_default | table | postgres
 tiger    | loader_lookuptables      | table | postgres
 tiger    | loader_platform          | table | postgres
 tiger    | loader_variables         | table | postgres
 tiger    | pagc_gaz                 | table | postgres
 tiger    | pagc_lex                 | table | postgres
 tiger    | pagc_rules               | table | postgres
 tiger    | place                    | table | postgres
 tiger    | place_lookup             | table | postgres
 tiger    | secondary_unit_lookup    | table | postgres
 tiger    | state                    | table | postgres
 tiger    | state_lookup             | table | postgres
 tiger    | street_type_lookup       | table | postgres
 tiger    | tabblock                 | table | postgres
 tiger    | tabblock20               | table | postgres
 tiger    | tract                    | table | postgres
 tiger    | zcta5                    | table | postgres
 tiger    | zip_lookup               | table | postgres
 tiger    | zip_lookup_all           | table | postgres
 tiger    | zip_lookup_base          | table | postgres
 tiger    | zip_state                | table | postgres
 tiger    | zip_state_loc            | table | postgres
 topology | layer                    | table | postgres
 topology | topology                 | table | postgres
(37 rows)
```console

@lukehutch
Copy link
Author

Oh, I just looked in these tables and they are empty! I thought it was a complete release of Tiger/LINE (which is a lot of data). These are just placeholders. Probably one of the postgis extensions needs these, but I doubt postgis itself needs them. Anyway, this is not such a big deal if the data is not installed in the default database.

@joshuasundance-swca
Copy link
Owner

I don't remember exactly why I used postgres 13. I think it may have been because that's what the pgvector installation notes said to use... or something like that. There was definitely a reason. 😅

I like the idea of updating it though. I'll see if I can get it all fixed up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants