epyks23,
the namespace URI is the XML namespace for types (layers) defined within a workspace:
https://en.wikipedia.org/wiki/XML_namespace
If you publish a layer globally, choose a namespace that is unique to you. For example, one that is an HTTP URI for a domain you own. Note that I wrote URI, not URL: the namespace does not have to be resolvable as it is just an identifier (but it might be convenient if it is). Aim for a namespace URI that will never change.
Namespaces allow types to be defined with the same name but with different definitions. For example, a government agency might have a type Tree and use it to publish information on who owns a tree and whether it is protected from felling:
Namespace URI: http://example.org/government Feature Type: Tree
A biologist may define a Tree by its species and relationship to other living things around it:
Namespace URI: http://example.org/biology Feature Type: Tree
Using different namespaces allow both to publish their own Tree type with different properties without confusion. Specialist communities agree on namespaces to enable interoperability. For example, GML 3.1, GML 3.2, and WFS 1.1, and WFS 2.0 each have their own namespaces.
The workspace name is used as the default XML namespace prefix for that namespace; the prefix is just a short convenient alias. Strict compliance to OGC Web Service standards requires each namespace prefix to be associated with its namespace URI in every request, but GeoServer lets you use a namespace prefix matching a workspace name without having to define it in a request. XML namespace prefixes are not unique across services and are local to XML instance documents.
Kind regards,
Ben.
On 25/04/16 04:26, epyks23 wrote:
What is Namespace URI when creating a workspace? What is the purpose of them?
Would this be correct to use: http://localhost:8080/geoserver
Is it different if I am hosting my layers globally? Does the URI have to be
different?
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Trying-to-understand-Namespace-URI-tp5262670.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/>
New Zealand