[Geoserver-users] network datasource

Hello,
I am just inquiring if it is possible to load data into geoserver from a
network location, rather than having all data reside on my C:\? I have tried
modifying the url (many variations) and mapping network places to say, T:,
but nothing seems to get me past the "url must be a valid class
java.net.URL: java.net.MalformedURLException: unknown protocol:" error.
Perhaps I am just missing something in my URL?
Using Geoserver 1.7.1 / Tomcat 6 / XP
Thanks for any input,
jeremy
--
View this message in context: http://www.nabble.com/network-datasource-tp21487212p21487212.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Jeremy,

I assume you are trying to load a shapefile? I was not actually sure if this is possible or not but I just tried it and it seemed to work. The url i used:

http://localhost/my_shapefile.shp

And it worked ok.

-Justin

jeremyadam77 wrote:

Hello, I am just inquiring if it is possible to load data into geoserver from a
network location, rather than having all data reside on my C:\? I have tried
modifying the url (many variations) and mapping network places to say, T:,
but nothing seems to get me past the "url must be a valid class
java.net.URL: java.net.MalformedURLException: unknown protocol:" error.
Perhaps I am just missing something in my URL? Using Geoserver 1.7.1 / Tomcat 6 / XP Thanks for any input, jeremy

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Also, don't forget the file:/ prefix for the URI; that exception gives
me the impression Java is seeing C:\\<path> and trying to use "C" as the
protocol scheme. A few notes on the file:/ URI scheme as it applies to
Windows paths are available at
http://blogs.msdn.com/ie/archive/2006/12/06/file-uris-in-windows.aspx

I haven't actually tried this on a Windows system, so I might be
off-base here, but good luck :slight_smile:

Hope this helps,
David Winslow

On Sun, 2009-01-18 at 16:05 -0700, Justin Deoliveira wrote:

Hi Jeremy,

I assume you are trying to load a shapefile? I was not actually sure if
this is possible or not but I just tried it and it seemed to work. The
url i used:

http://localhost/my_shapefile.shp

And it worked ok.

-Justin

jeremyadam77 wrote:
> Hello,
> I am just inquiring if it is possible to load data into geoserver from a
> network location, rather than having all data reside on my C:\? I have tried
> modifying the url (many variations) and mapping network places to say, T:,
> but nothing seems to get me past the "url must be a valid class
> java.net.URL: java.net.MalformedURLException: unknown protocol:" error.
> Perhaps I am just missing something in my URL?
> Using Geoserver 1.7.1 / Tomcat 6 / XP
> Thanks for any input,
> jeremy

jeremyadam77 ha scritto:

Hello, I am just inquiring if it is possible to load data into geoserver from a
network location, rather than having all data reside on my C:\? I have tried
modifying the url (many variations) and mapping network places to say, T:,
but nothing seems to get me past the "url must be a valid class
java.net.URL: java.net.MalformedURLException: unknown protocol:" error.
Perhaps I am just missing something in my URL? Using Geoserver 1.7.1 / Tomcat 6 / XP

So T: would be a network drive? Just use file://T:/path/to/your/shapefile
and you should be fine.

A word of caution thought. If you plan to put this in production, make sure your network drive is always connected before GeoServer starts,
otherwise the datastore will be disabled during the startup.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Thanks for the responses; I'm going to modify my environment and see if my
results are different(linux). I still can't seem to load it in and this
"Just use file://T:/path/to/your/shapefile
and you should be fine" was what I had expected to work. I've tried multiple
variations of this(even IP) to no avail. Anyway...Thanks

Jeremy

Andrea Aime-4 wrote:

jeremyadam77 ha scritto:

Hello,
I am just inquiring if it is possible to load data into geoserver from a
network location, rather than having all data reside on my C:\? I have
tried
modifying the url (many variations) and mapping network places to say,
T:,
but nothing seems to get me past the "url must be a valid class
java.net.URL: java.net.MalformedURLException: unknown protocol:" error.
Perhaps I am just missing something in my URL?
Using Geoserver 1.7.1 / Tomcat 6 / XP

So T: would be a network drive? Just use file://T:/path/to/your/shapefile
and you should be fine.

A word of caution thought. If you plan to put this in production, make
sure your network drive is always connected before GeoServer starts,
otherwise the datastore will be disabled during the startup.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/network-datasource-tp21487212p21564964.html
Sent from the GeoServer - User mailing list archive at Nabble.com.