![]() I personally tend to take an existing SLD and edit it by hand to match the current data. ![]() ![]() However, the Geoserver documentation has a far gentler introduction to styling that includes some useful recipes. The Open Geospatial Consortium promulgates the standards, which include the current SLD specification and the description of filter encoding that is an essential component for what we do. GeoServer uses Styled Layer Descriptors or SLDs to govern how data looks when it's presented. This is the most time consuming part of the process, especially if we're trying to re-create the look of an existing map. Alternatively, you could copy catalog.xml, featureTypes/ and styles/ from the geoserver/data directory on SDS7 to another server and reload GeoServer from the Tomcat manager. This process has to be repeated for each instance of GeoServer. Go to the Map Preview page and click on the OpenLayers preview map for the new feature type to verify that it works.Click the Save button on the top left of the page.Click the Apply button on the top left of the page.Click the Submit button at the bottom of the page.Leave all other fields at their default value.Enter coordinates for the bounding box.Select a default style: line, point, or polygon.Select the feature type from the drop down menu, in this case, thl:::bellezza.From the GeoServer main page, click on Config.A reasonably recent installation of Quantum GIS comes with the SPIT plugin, the Shapefile to PostGIS Import Tool, which can accomplish the same thing. There are other options for importing the SHP file that might be easier for the GUI-centric. The geometry column is called "the_geom" by default.Īlso see additional information from the specific case of importing SHP files for Dbus monasteries Delete the SHP files and bellezza.sql on SDS7.Īt this point there is a table in PostGIS on SDS2 with one field for each column in the SHP file database.Psql -h -U postgres -d thdl_places_production Psql -h -U postgres -f bellezza.sql -d thdl_places_production Shp2pgsql -s 4326 bellezza.shp bellezza > bellezza.sql Import the SHP files to PostGIS with the following commands at a command prompt on SDS7:.I am assuming that the SRID is 4326 (WGS84, lat/lon coordinates), and that may not always be a safe assumption. prj file is not used as I'm describing the process below. In this case, they were bellezza.shp, bellezza.shx, bellezza.dbf, and bellezza.prj. There are four "essential" files for each set of SHP files. Upload the SHP files to SDS7 using SCP or an equivalent.This is (roughly) the process Ron Bentley used to import the Bellezza archaeological sites in Dec., 2009 it is taken from Ron's comment to JIRA THLTOOLS-857. When you want to add a GIS data set to the THL Interactive GIS Map, the first thing to do is the following set of steps. Importing SHP files to Postgis/Creating Geoserver Feature Types THL Toolbox > Developers' Zone > Gis Development > Adding Gis Datasets For Display In The Map Layers Section Of The Interactive Map > Importing SHP files to Postgis-Creating Geoserver Feature Types
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |