I wrote the following code to psql (Sql Shell)
createdb -T template_postgis nyc;
but does not work because syntax error .
trying to make an example of the links related aim GeoServer. I have postgis 2.0 and postgresql 9.4
http://docs.geoserver.org/stable/en/user/gettingstarted/postgis-quickstart/index.html
1 Answer 1
Why aren't you just using?
CREATE EXTENSION postgis;
It's universal across all platforms for PostGIS 2.0+ unless your distro for some crazy reason did not include raster.
pgAdmin New extension drop down -- in extension section, shows extensions you have available you have not yet installed in your db.
-
I can see extension(3) (postgis and postgis topology) but I say new extension name but I cant see postgis and postgis tolopogy why ? so How can I installed my db ? I have pgAdmin 3. @LR1234567develop– develop2015年09月09日 07:02:59 +00:00Commented Sep 9, 2015 at 7:02
-
Don't understand the question. Do you see them in the drop down or not? You just have to select the one you want and install. It's just GUI way of doing this from sql window CREATE EXTENSION postgis;Regina Obe– Regina Obe2015年09月09日 07:53:09 +00:00Commented Sep 9, 2015 at 7:53
-
or are you talking about the additional extensions I have showing. The address_standardizer_data_us, postgis_sfcgal are new in PostGIS 2.2. -- you can get experimental binaries here - postgis.net/windows_downloads (for windows). that page has them before I are package them in application stackbuilder installersRegina Obe– Regina Obe2015年09月09日 07:56:06 +00:00Commented Sep 9, 2015 at 7:56
create extension postgis(topology etc)
@Mapperz