Ok, I just reread your original post, and 1gb is a pretty large shapefile! I strongly recocommend working through the entire workflow with a cut out of maybe 50 features from that shapefile. It's very time-consuming to make mistakes when processing such large files.
On Monday, July 1, 2019 at 1:02:43 PM UTC-5, Adam Cox wrote: > > Hi Brett, if your ultimate goal is a "selectable layer" as we have > documented here: > https://arches.readthedocs.io/en/stable/creating-new-map-layers/#making-selectable-vector-layers, > > I see that one of the recommended sources for that selectable layer is > "...a tile server layer serving vector features from PostGIS". To do this, > you would basically prepare your shapefile as described in those docs (add > the geojson field, etc.) and then load it into postgres/postgis as it's own > new table. > > There are a couple of ways to load a shapefile into postgres/postgis, so > it will depend on what you are most comfortable with. For example, you can > use QGIS to connection to your postgres database, and then load the > shapefile in from there (QGIS makes this quite straightforward, I believe > you need to use the DB manager panel). Alternatively, you could use the > command line tool shp2pgsql which comes with postgis (you should already > have it). > > Once you have loaded the shapefile into postgres/postgis, you can just > follow along the "rivers" example in the arches4 geo examples repo to make > a layer from your table. > > You'll be stringing together a few complex operations, so I'd recommend > taking good notes along the way, and be ready to start back at the > beginning if you get to a point where you realize something went wrong a > few steps back. > > Looking forward to hearing how it goes! > > Adam > > On Wednesday, June 19, 2019 at 10:49:47 AM UTC-5, Brett Ferguson wrote: >> >> I'm struggling to make an ESRI Shapefile available as vector layer >> (eventually selectable). I was hoping to make it available from the .shp >> file itself on the server, but at this point I'd be happy to get it in any >> way possible as a TileStash overlay. It is a fairly large file (1GB). I >> feel like I've fallen into a documentation hole between Arches and >> TileStash to get the configuration right. >> >> I've seen the arches4-geo-examples but the only tileserver shapefile >> example I can see uses mapnik which we haven't installed (if that is the >> recommended way we can). Does anyone have an example of this, or have a >> suggestion w/ examples of a better way to do it (via geojson, etc)? >> >> Thanks! >> > -- -- To post, send email to [email protected]. To unsubscribe, send email to [email protected]. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups "Arches Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/4bc5d7d5-4694-4d96-bf42-5674ce143dc0%40googlegroups.com.
