Re: [Geoserver-users] Symlinks for data sub-directories?

2014-08-06 Thread Derek
Hi Ben

Thanks for testing on your side as well.  I am a bit stuck here, as moving
a large volume of data files across to a machine not meant to store them
does not seem like a good option.  It also means that we cannot use one
GeoServer instance to "point" to multiple locations unless we can get
symlinks to work.

Any other ideas or tests I can run?

Thanks
Derek



On 7 August 2014 08:19, Ben Caradoc-Davies 
wrote:

> Derek,
>
> selinux is not present and is not your problem.
>
> I tested adding a shapefile using GeoServer 2.5.2, then moving the
> directory away, and substituting a symlink. The shapefile continued to
> work. As far as I can tell, you are doing everything right.
>
> The user interface is a bit broken in my browser, but that is a separate
> issue. It was equally broken with and without the symlink. I had to
> manually edit the url.
>
> Kind regards,
> Ben.
>
>
> On 06/08/14 19:37, Derek wrote:
>
>> Hi Ben
>>
>> The mount command looks like:
>>
>> /dev/mapper/san  on /mnt/sdi type ext4 (rw,noatime,stripe=2560,data=
>> ordered)
>>
>> (The network admin tells me this a SAN drive mounted directly to the
>> server.)
>>
>> The response from the "Z" parameter  - we are running Ubuntu - looks like:
>>
>> -rw-rwxrwx 1 tomcat7 tomcat7 ? 47966 Feb 26 09:37
>> CoT_master_sbc_2010_poly_wgs84_1.dbf
>> -rw-rwxrwx 1 tomcat7 tomcat7 ?   145 Feb 26 09:37
>> CoT_master_sbc_2010_poly_wgs84_1.prj
>> -rw-rwxrwx 1 tomcat7 tomcat7 ?  1556 Feb 26 09:37
>> CoT_master_sbc_2010_poly_wgs84_1.sbn
>> -rw-rwxrwx 1 tomcat7 tomcat7 ?   196 Feb 26 09:37
>> CoT_master_sbc_2010_poly_wgs84_1.sbx
>> -rw-rwxrwx 1 tomcat7 tomcat7 ?108300 Feb 26 09:37
>> CoT_master_sbc_2010_poly_wgs84_1.shp
>> -rw-rwxrwx 1 tomcat7 tomcat7 ?  1212 Feb 26 09:37
>> CoT_master_sbc_2010_poly_wgs84_1.shx
>>
>> No datastore.xml has been created for this shapefile.  Here's an example
>> from another one (but this from data already on the host, and not on the
>> symlinked drive).
>>
>> 
>>DataStoreInfoImpl-63f945a9:147a4d4b8b2:-7fff
>>Pop
>>Pop
>>Shapefile
>>true
>>
>>  WorkspaceInfoImpl-10073beb:147a14d6b3c:-8000
>>
>>
>>  ISO-8859-1
>>  shapefile
>>  true
>>  false
>>  Etc/UTC
>>  true
>>  sdi
>>  true
>>  > key="url">file:ne_10m_admin_0_countries/ne_10m_admin_0_
>> countries.shp
>>  shape
>>
>><__default>false
>> 
>>
>>
>> I attach the relevant portion of the error trace from catalina.out.
>>
>> Thanks
>> Derek
>>
>>
>>
>>
>>
>> On 6 August 2014 09:52, Ben Caradoc-Davies > > wrote:
>>
>> Derek,
>>
>> can you show us the contents of the datastore.xml file in your data
>> directory that defines this data store?
>>
>> What platform are you using? CentOS / RedHat often have selinux
>> enforcing; this additional security mechanism may prevent tomcat7
>> from accessing some files. If you have selinux security contexts,
>> you can see them with:
>>
>> ls -alZ /mnt/sdi/spatial
>> ls -alZ /mnt/sdi/spatial/city/planning
>>
>> Is this a network mount? What sort of filesystem? ext4, VFAT, or
>> NTFS? Try:
>>
>> mount | grep /mnt/sdi
>>
>> It would also be helpful if you have a stack trace from the
>> geoserver logs when this error occurs. This may give us more detail
>> about the underlying error.
>>
>> Kind regards,
>> Ben.
>>
>>
>> On 06/08/14 15:26, Derek wrote:
>>
>> Hi Ben
>>
>> Thanks for the reply.  Yes, the permissions look OK.  Using your
>> command, for example, ls -al /mnt/sdi/spatial/city/__planning, I
>>
>> get this
>> listing for a directory containing a shapefile that I am trying
>> to access:
>>
>> drwxrwxrwx 2 tomcat7 tomcat7  4096 Feb 26 09:37 .
>> drwxrwxrwx 7 tomcat7 tomcat7  4096 Aug  5 10:57 ..
>> -rw-rwxrwx 1 tomcat7 tomcat7 47966 Feb 26 09:37
>> CoT_master_sbc_2010_poly___wgs84_1.dbf
>>
>> -rw-rwxrwx 1 tomcat7 tomcat7   145 Feb 26 09:37
>> CoT_master_sbc_2010_poly___wgs84_1.prj
>>
>> -rw-rwxrwx 1 tomcat7 tomcat7  1556 Feb 26 09:37
>> CoT_master_sbc_2010_poly___wgs84_1.sbn
>>
>> -rw-rwxrwx 1 tomcat7 tomcat7   196 Feb 26 09:37
>> CoT_master_sbc_2010_poly___wgs84_1.sbx
>>
>> -rw-rwxrwx 1 tomcat7 tomcat7108300 Feb 26 09:37
>> CoT_master_sbc_2010_poly___wgs84_1.shp
>>
>> -rw-rwxrwx 1 tomcat7 tomcat7  1212 Feb 26 09:37
>> CoT_master_sbc_2010_poly___wgs84_1.shx
>>
>>
>> Is there something else that needs to be changed?
>>
>> Regards
>> Derek
>>
>>
>>
>>
>> On 6 August 2014 04:55, Ben Caradoc-Davies
>> > >
>> >> wrote:
>>
>>  Derek,
>>
>>  symlinks should work, but note that access depends on the

Re: [Geoserver-users] Symlinks for data sub-directories?

2014-08-06 Thread Ben Caradoc-Davies
Derek,

selinux is not present and is not your problem.

I tested adding a shapefile using GeoServer 2.5.2, then moving the 
directory away, and substituting a symlink. The shapefile continued to 
work. As far as I can tell, you are doing everything right.

The user interface is a bit broken in my browser, but that is a separate 
issue. It was equally broken with and without the symlink. I had to 
manually edit the url.

Kind regards,
Ben.

On 06/08/14 19:37, Derek wrote:
> Hi Ben
>
> The mount command looks like:
>
> /dev/mapper/san  on /mnt/sdi type ext4 (rw,noatime,stripe=2560,data=ordered)
>
> (The network admin tells me this a SAN drive mounted directly to the
> server.)
>
> The response from the "Z" parameter  - we are running Ubuntu - looks like:
>
> -rw-rwxrwx 1 tomcat7 tomcat7 ? 47966 Feb 26 09:37
> CoT_master_sbc_2010_poly_wgs84_1.dbf
> -rw-rwxrwx 1 tomcat7 tomcat7 ?   145 Feb 26 09:37
> CoT_master_sbc_2010_poly_wgs84_1.prj
> -rw-rwxrwx 1 tomcat7 tomcat7 ?  1556 Feb 26 09:37
> CoT_master_sbc_2010_poly_wgs84_1.sbn
> -rw-rwxrwx 1 tomcat7 tomcat7 ?   196 Feb 26 09:37
> CoT_master_sbc_2010_poly_wgs84_1.sbx
> -rw-rwxrwx 1 tomcat7 tomcat7 ?108300 Feb 26 09:37
> CoT_master_sbc_2010_poly_wgs84_1.shp
> -rw-rwxrwx 1 tomcat7 tomcat7 ?  1212 Feb 26 09:37
> CoT_master_sbc_2010_poly_wgs84_1.shx
>
> No datastore.xml has been created for this shapefile.  Here's an example
> from another one (but this from data already on the host, and not on the
> symlinked drive).
>
> 
>DataStoreInfoImpl-63f945a9:147a4d4b8b2:-7fff
>Pop
>Pop
>Shapefile
>true
>
>  WorkspaceInfoImpl-10073beb:147a14d6b3c:-8000
>
>
>  ISO-8859-1
>  shapefile
>  true
>  false
>  Etc/UTC
>  true
>  sdi
>  true
>   key="url">file:ne_10m_admin_0_countries/ne_10m_admin_0_countries.shp
>  shape
>
><__default>false
> 
>
>
> I attach the relevant portion of the error trace from catalina.out.
>
> Thanks
> Derek
>
>
>
>
>
> On 6 August 2014 09:52, Ben Caradoc-Davies  > wrote:
>
> Derek,
>
> can you show us the contents of the datastore.xml file in your data
> directory that defines this data store?
>
> What platform are you using? CentOS / RedHat often have selinux
> enforcing; this additional security mechanism may prevent tomcat7
> from accessing some files. If you have selinux security contexts,
> you can see them with:
>
> ls -alZ /mnt/sdi/spatial
> ls -alZ /mnt/sdi/spatial/city/planning
>
> Is this a network mount? What sort of filesystem? ext4, VFAT, or
> NTFS? Try:
>
> mount | grep /mnt/sdi
>
> It would also be helpful if you have a stack trace from the
> geoserver logs when this error occurs. This may give us more detail
> about the underlying error.
>
> Kind regards,
> Ben.
>
>
> On 06/08/14 15:26, Derek wrote:
>
> Hi Ben
>
> Thanks for the reply.  Yes, the permissions look OK.  Using your
> command, for example, ls -al /mnt/sdi/spatial/city/__planning, I
> get this
> listing for a directory containing a shapefile that I am trying
> to access:
>
> drwxrwxrwx 2 tomcat7 tomcat7  4096 Feb 26 09:37 .
> drwxrwxrwx 7 tomcat7 tomcat7  4096 Aug  5 10:57 ..
> -rw-rwxrwx 1 tomcat7 tomcat7 47966 Feb 26 09:37
> CoT_master_sbc_2010_poly___wgs84_1.dbf
> -rw-rwxrwx 1 tomcat7 tomcat7   145 Feb 26 09:37
> CoT_master_sbc_2010_poly___wgs84_1.prj
> -rw-rwxrwx 1 tomcat7 tomcat7  1556 Feb 26 09:37
> CoT_master_sbc_2010_poly___wgs84_1.sbn
> -rw-rwxrwx 1 tomcat7 tomcat7   196 Feb 26 09:37
> CoT_master_sbc_2010_poly___wgs84_1.sbx
> -rw-rwxrwx 1 tomcat7 tomcat7108300 Feb 26 09:37
> CoT_master_sbc_2010_poly___wgs84_1.shp
> -rw-rwxrwx 1 tomcat7 tomcat7  1212 Feb 26 09:37
> CoT_master_sbc_2010_poly___wgs84_1.shx
>
> Is there something else that needs to be changed?
>
> Regards
> Derek
>
>
>
>
> On 6 August 2014 04:55, Ben Caradoc-Davies
>   >> wrote:
>
>  Derek,
>
>  symlinks should work, but note that access depends on the
>  permissions of the symlink target, not of the symlink itself.
>
>  What is the output of this?:
>
>  ls -al /mnt/sdi/spatial
>
>  If permissions are the problem, you can change the
> ownership and
>  permissions of /mnt/sdi/spatial (*recursively*) with these
> commands,
>  but note that this may not be what you want so use with
> caution:
>
>  chown -R tomcat7:tomcat7 /mnt/sdi/spatial
>  chmod -R ug+rX /mnt/sdi/spatial
>
>  Kind regards,
>  Ben.
>
>
>

Re: [Geoserver-users] Publishing Directory of Spatial Files

2014-08-06 Thread Jody Garnett
You can set up a layer group. It is not quite enough to show a directory of
files, as often the layers need to be in a specific order - and styled to
work together. In general we are trying to publish maps.

However there is some good news, the functionality you are describing is a
better match for a catalog, such as the GeoNextwork project (
http://geonetwork-opensource.org ). It can offer a title, description and
preview of spatial files (letting people search rather than download one by
one).

Jody Garnett


On Wed, Aug 6, 2014 at 10:06 PM, mega saputra 
wrote:

> Dear Jody,
>
> I know it can publish in FTP. But, I want my directory can be showed like
> layer preview in GeoServer. Then, user can download it.
> I think, GeoServer should release a new version that can show directory
> preview. Because, I think it is important so that user does not search the
> file one by one. But, the user can download all the directory the user need.
>
> Thank you.
>
> Mega
>
>
> On Thu, Aug 7, 2014 at 12:54 PM, Jody Garnett 
> wrote:
>
>> GeoServer publishes one layer at a time, to publish a directory use an
>> FTP server?
>>
>> Jody Garnett
>>
>>
>> On Wed, Aug 6, 2014 at 9:10 PM, mega saputra 
>> wrote:
>>
>>> Dear all,
>>>
>>> I use Geoserver 2.4.4. I can publish Layer Preview because there is a
>>> menu.
>>> I have added stores for a directory. Can GeoServer publish the
>>> directory? So, user can download from client?
>>>
>>> Thank you.
>>>
>>> Mega
>>>
>>>
>>> --
>>> Infragistics Professional
>>> Build stunning WinForms apps today!
>>> Reboot your WinForms applications with our WinForms controls.
>>> Build a bridge from your legacy apps to the future.
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
>>> ___
>>> Geoserver-users mailing list
>>> Geoserver-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>>
>>>
>>
>
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Publishing Directory of Spatial Files

2014-08-06 Thread mega saputra
Dear Jody,

I know it can publish in FTP. But, I want my directory can be showed like
layer preview in GeoServer. Then, user can download it.
I think, GeoServer should release a new version that can show directory
preview. Because, I think it is important so that user does not search the
file one by one. But, the user can download all the directory the user need.

Thank you.

Mega


On Thu, Aug 7, 2014 at 12:54 PM, Jody Garnett 
wrote:

> GeoServer publishes one layer at a time, to publish a directory use an FTP
> server?
>
> Jody Garnett
>
>
> On Wed, Aug 6, 2014 at 9:10 PM, mega saputra 
> wrote:
>
>> Dear all,
>>
>> I use Geoserver 2.4.4. I can publish Layer Preview because there is a
>> menu.
>> I have added stores for a directory. Can GeoServer publish the directory?
>> So, user can download from client?
>>
>> Thank you.
>>
>> Mega
>>
>>
>> --
>> Infragistics Professional
>> Build stunning WinForms apps today!
>> Reboot your WinForms applications with our WinForms controls.
>> Build a bridge from your legacy apps to the future.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
>> ___
>> Geoserver-users mailing list
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
>
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Connecting with OpenLayers

2014-08-06 Thread Jody Garnett
That does sound odd? I am jumping into this conversation late - in order to
ask you to check the base url setting, you need to use it when deploying
GeoServer behind a proxy server.

http://docs.geoserver.org/latest/en/user/webadmin/server/globalsettings.html

That said, if the layer preview is not respecting this setting we have a
bug to report.

Jody Garnett


On Wed, Aug 6, 2014 at 7:50 PM, John Brisbin  wrote:

> Hey there Phil,
>
> Yep, thanks for the advice on running the production server version of
> OL separately from the default install shipped with GeoServer...that's
> exactly what we're doing. We don't have trouble with finding the OL
> libraries in our external applications...that's all fine.
>
> I probably wasn't clear earlier: the only thing I'm trying to do is get
> the GeoServer's OL preview to work.
>
> As a GeoServer Admin, I simply want to use the Preview>OpenLayers
> option. That's where we get the error as our GeoServer is looking for
> the OL library at http://127.0.0.1/ etc
>
> I manually scanned every xml config file I could find last night and
> still can't work out why GeoServer is trying to find the OL library via
> a localhost IP address.
>
> Just to be clear:
>
> 1. Login to GeoServer as Admin
>
> 2. Go to Layer Preview, choose any layer (even the pre-installed examples)
>
> 3. Choose to Preview via OpenLayers
>
> 4. Get an error in the image display (ie, there is no map shown...the
> surrounding frame is shown)
>
> 5. Look at the page source or use Firebug>Console. Reported error is
> "undefined element openlayers"
>
> 6. Note that the preview page is trying to load OpenLayers javascript
> from 127.0.0.1
>
> 7. Be confused...ask for help!
>
> Thanks again for your patience: can't wait to find out where I've gone
> wrong.
>
> Kind regards,
> JB
>
> On 7/08/2014 11:15 AM, geoserver-users-requ...@lists.sourceforge.net
> wrote:
>  > The OL that comes with Geoserver is really just there to support Layer
>  > preview. It isnt used for anything else. For your own applications, you
>  > would point to your own version of OL on your application server (which
>  > would typically be a completely different server to the one geoserver is
>  > running on). In my opinion, you want your own version of OL, where you
>  > use the OL custom build tools to bring in only what you need and where
>  > you can patch as required.
> --
> John Brisbin
> Managing Director, BoaB interactive Pty Ltd
> POB 248, MT Molloy QLD 4871
>
> E: j...@boab.info
> M: 0407 471 565 | P: 07 4094 2172
> Skype: boabjohn | Twitter: @boabjohn
>
>
> --
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Publishing Directory of Spatial Files

2014-08-06 Thread Jody Garnett
GeoServer publishes one layer at a time, to publish a directory use an FTP
server?

Jody Garnett


On Wed, Aug 6, 2014 at 9:10 PM, mega saputra  wrote:

> Dear all,
>
> I use Geoserver 2.4.4. I can publish Layer Preview because there is a
> menu.
> I have added stores for a directory. Can GeoServer publish the directory?
> So, user can download from client?
>
> Thank you.
>
> Mega
>
>
> --
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Best GeoServer Features

2014-08-06 Thread Ben Caradoc-Davies
On 07/08/14 04:29, Jody Garnett wrote:
> 1. What makes GeoServer great for you?

Its open and active community.

> 2. What feature do you always enable?

WFS featureMember, canonical schema location, and OGC HTTP URI format 
for srsName.

> 3. Is there an extension which totally made a project possible for your
> or a customer?

app-schema, of course.  :-)

> 4. What surprised you when you first installed GeoServer?

How easy it was to connect to PostGIS. Just a few clicks and I could see 
a map and simple feature WFS. Everything just worked.

Kind regards,

-- 
Ben Caradoc-Davies 
Software Engineer
CSIRO Mineral Resources Flagship
Australian Resources Research Centre

--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Publishing Directory of Spatial Files

2014-08-06 Thread mega saputra
Dear all,

I use Geoserver 2.4.4. I can publish Layer Preview because there is a menu.
I have added stores for a directory. Can GeoServer publish the directory?
So, user can download from client?

Thank you.

Mega
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Connecting with OpenLayers

2014-08-06 Thread Phil Scadden
well a few experiments here suggest the OL preview is using the 
httprequest to generate the url in the preview.

eg.
if I log into my geoserver as maps/geoserver, then the OL link in the 
preview is


http://maps:80/geoserver/openlayers/OpenLayers.js  
http://maps.gns.cri.nz/geoserver/openlayers/OpenLayers.js>

and if I log into geoserver as maps.mydomain.com/geoserver, then the source 
link is
http://maps.mydomain.com:80/geoserver/openlayers/OpenLayers.js  
http://maps.gns.cri.nz/geoserver/openlayers/OpenLayers.js>

Is that a hint?



Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.

--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Connecting with OpenLayers

2014-08-06 Thread John Brisbin
Hey there Phil,

Yep, thanks for the advice on running the production server version of 
OL separately from the default install shipped with GeoServer...that's 
exactly what we're doing. We don't have trouble with finding the OL 
libraries in our external applications...that's all fine.

I probably wasn't clear earlier: the only thing I'm trying to do is get 
the GeoServer's OL preview to work.

As a GeoServer Admin, I simply want to use the Preview>OpenLayers 
option. That's where we get the error as our GeoServer is looking for 
the OL library at http://127.0.0.1/ etc

I manually scanned every xml config file I could find last night and 
still can't work out why GeoServer is trying to find the OL library via 
a localhost IP address.

Just to be clear:

1. Login to GeoServer as Admin

2. Go to Layer Preview, choose any layer (even the pre-installed examples)

3. Choose to Preview via OpenLayers

4. Get an error in the image display (ie, there is no map shown...the 
surrounding frame is shown)

5. Look at the page source or use Firebug>Console. Reported error is 
"undefined element openlayers"

6. Note that the preview page is trying to load OpenLayers javascript 
from 127.0.0.1

7. Be confused...ask for help!

Thanks again for your patience: can't wait to find out where I've gone 
wrong.

Kind regards,
JB

On 7/08/2014 11:15 AM, geoserver-users-requ...@lists.sourceforge.net wrote:
 > The OL that comes with Geoserver is really just there to support Layer
 > preview. It isnt used for anything else. For your own applications, you
 > would point to your own version of OL on your application server (which
 > would typically be a completely different server to the one geoserver is
 > running on). In my opinion, you want your own version of OL, where you
 > use the OL custom build tools to bring in only what you need and where
 > you can patch as required.
--
John Brisbin
Managing Director, BoaB interactive Pty Ltd
POB 248, MT Molloy QLD 4871

E: j...@boab.info
M: 0407 471 565 | P: 07 4094 2172
Skype: boabjohn | Twitter: @boabjohn

--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Limiting rendering for large resultsets

2014-08-06 Thread cmaul
Laurent,

I've got the same problem with our cadastre, i.e. rural and urban
properties. My way around was to filter using the 'Local Government'
attribute. The result is a bit crude and the SLD is large, but it works
well. If you have got a similar attribute in your dataset that would be
simplest solution.

Disadvantaqe is: Users suddenly see nothing where they know that there are
parcel.

Increasing the time-out is not a good idea because after 60 secs (which is
the default) people are long gone and the only effect is you put a load on
your DB server. Nobody is that patient anymore. 

I have actually a time-out of 30 secs.

Cheers

Christian



-


Dr Christian Maul
Project Manager

Information Services Branch
Department Environment and Primary Industries
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002


Telephone:+61-3-8636 2325
Telefax:  +61-3-8636 2813
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Limiting-rendering-for-large-resultsets-tp5155236p5155351.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Best GeoServer Features

2014-08-06 Thread cmaul
1. Reliability and that it is largely data format agnostic

2. OGR2OGR

3. Inspire, helps to get around our problem with non-ISO-conforming metadata

4. How do I get the data directory out of the 'Program Files' directory.
That was version 1.7.4 with Jetty installer.

5. NetCDF



-


Dr Christian Maul
Project Manager

Information Services Branch
Department Environment and Primary Industries
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002


Telephone:+61-3-8636 2325
Telefax:  +61-3-8636 2813
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Best-GeoServer-Features-tp5155326p5155350.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Connecting with OpenLayers

2014-08-06 Thread Phil Scadden
> Which is never going to work.
> Problem is...where is this configured? Where would I go to tell
> GeoServer how to find the OpenLayers assets?
The OL that comes with Geoserver is really just there to support Layer 
preview. It isnt used for anything else. For your own applications, you 
would point to your own version of OL on your application server (which 
would typically be a completely different server to the one geoserver is 
running on). In my opinion, you want your own version of OL, where you 
use the OL custom build tools to bring in only what you need and where 
you can patch as required.

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.


--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Best GeoServer Features

2014-08-06 Thread Jody Garnett
Andrea and myself have a talk lined up for FOSS4G ... covering the "best"
features of GeoServer in a "feature frenzy" 30 second sound bite format.
This is to counteract our "State of GeoServer" talks - where we only get a
look at what is new.

To help please answer the following questions:

1. What makes GeoServer great for you?
2. What feature do you always enable?
3. Is there an extension which totally made a project possible for your or
a customer?
4. What surprised you when you first installed GeoServer?
5. What community module do you wish was part of GeoServer 2.6?
--
Jody Garnett
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] FW: Response Geotiff comparisons between Geoserver 2.2.4 and 2.5

2014-08-06 Thread Bessette-Halsema, Dominique E

I'm not quite sure I understand the response from Jody.  If she's asking about 
the corner coordinates, then yes, they are in lat/lon order, i.e.

Corner Coordinates:
Upper Left  (   2.445,-101.307) (  2d26'40.63"E,101d18'25.06"S)
Lower Left  ( -31.566,-101.307) ( 31d33'57.98"W,101d18'25.06"S)
Upper Right (   2.4446182, -86.1893900) (  2d26'40.63"E, 86d11'21.80"S)
Lower Right ( -31.5661050, -86.1893900) ( 31d33'57.98"W, 86d11'21.80"S)
Center  ( -14.561, -93.748) ( 14d33'38.68"W, 93d44'53.43"S)


The bigger concern is why making a WCS 1.1.1 getCoverage request with the full 
bounding box (-120.0038771,-65.0093883,-44.9961229,65.0093883) will result in 
an image of width/height 2055x3562 (as expected, the size of the original 
tiff), whereas giving a smaller bounding box 
(-101.30696,-31.566105,-86.18939,2.4446182) gives a response scaled to the 
original width resulting in an image of w/h 2055x4624 (instead of 414x931, as 
expected).  Is this by design to scale the response to its original width?


Thanks.



From: Jody Garnett [mailto:jody.garn...@gmail.com]
Sent: Tuesday, August 05, 2014 12:19 PM
To: Bessette-Halsema, Dominique E
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] FW: Response Geotiff comparisons between 
Geoserver 2.2.4 and 2.5



Interesting, can I ask you to double check which answer is correct? For WCS it 
is likely that the result is expected in lat / lon order (in which case this 
change represents an issue being fixed).




Jody Garnett



On Thu, Jul 31, 2014 at 1:50 PM, Bessette-Halsema, Dominique E 
mailto:dominique.besse...@gdit.com>> wrote:


When I did the following request,
/geoserver/imagery/wcs?service=WCS&version=1.1.1&request=GetCoverage&identifier=goes_13.IR.1km&BoundingBox=-101.30696,-31.566105,-86.18939,2.4446182,urn:ogc:def:crs:OGC:1.3:CRS84&format=geotiff

I noticed differing metadata information when I do a gdalinfo on the returned 
decoded tiff file.  (Attached above.)

The main differences being that
For 2.2.4,
- the width/height is 414x931  (as expected, since it's a slice of the 
original 2055x3562 image)
- the Band 1 Block=256x256
- the corner coordinates are correct
For 2.5,
- the width/height is 2055x4624  (the original being 2055x3562)
- the Band 1 Block=2055x19
- the corner coordinates lon/lat values are swapped


Does anyone know if there is some configuration with the tile sizing that was 
done for Geoserver 2.2.4 that we missed for Geoserver 2.5?  The large Band 
Block sizes are large (i.e. 8220x14 for a 8220x974 image) even when we directly 
bypass the satellite coverage plugin and request it through Geoserver 2.5's 
built-in GeoTIFF plugin.

Any insight will be helpful.

Thanks,
Kristine


--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users



--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Get error trying to use ImageMosaic plugin for raster time-series data

2014-08-06 Thread Stephen Brooke
Does anyone have any insight into this?  I find it hard to believe that I'm the 
first to discover that the "Using the ImageMosaic plugin for raster time-series 
data" tutorial from the GeoServer documentation doesn't work with GeoServer 
2.5.1 as written.

--Steve

From: Stephen Brooke
Sent: Wednesday, July 30, 2014 11:39 AM
To: geoserver-users@lists.sourceforge.net
Subject: RE: Get error trying to use ImageMosaic plugin for raster time-series 
data

Tracing into the GeoServer source code it appears the error is coming out of 
the below lines in the org.geoserver.catalog. ResourcePool class but I don't 
understand why:

ResourcePool.java:

...
private GridCoverageReader getGridCoverageReader(CoverageStoreInfo info, 
CoverageInfo coverageInfo, String coverageName, Hints hints)
throws IOException {
...
// readers might change the provided hints, pass down a 
defensive copy
reader = gridFormat.getReader(input, new Hints(hints));
if(reader == null) {
throw new IOException("Failed to create reader from " + 
url + " and hints " + hints);
}
...
}
...

--Steve

From: Stephen Brooke
Sent: Wednesday, July 30, 2014 11:20 AM
To: 
geoserver-users@lists.sourceforge.net
Subject: Get error trying to use ImageMosaic plugin for raster time-series data

I'm using GeoServer 2.5.1 and PostGIS 2.1.3

I'm trying to run through the tutorial in GeoServer docs "Using the ImageMosaic 
plugin for raster time-series data" and I don't think I've deviated at all from 
the steps from 
(http://docs.geoserver.org/latest/en/user/tutorials/imagemosaic_timeseries/imagemosaic_timeseries.html#id3)
 except to call my "TimeAttribute" "ingest_time" instead of "ingestion", and I 
get the below stacktrace in the GeoServer log and my Coverage Store fails to be 
created.

I'm using the DBMS approach for storing the dimension attributes and spatial 
index and I see that a new table called "snow" is added to my database, however 
the ImageMosaic is not created.  Is there some step missing in this tutorial?  
I'm having a difficult time understanding what problem the operation is having 
with my configuration as the message in the stacktrace is a bit too generic:


Caused by: java.io.IOException: Failed to create reader from 
file://D:\Data\gis\hydroalp\snow and hints 
null


The "snow" table has the following contents:
1;"010320787F01000500401123414BBA534140112341FDC65341304E2341FDC65341304E23414BBA5341401123414BBA5341";"snow_20091001.tif";"2009-10-01
 00:00:00";
2;"010320787F01000500401123414BBA534140112341FDC65341304E2341FDC65341304E23414BBA5341401123414BBA5341";"snow_20091101.tif";"2009-11-01
 00:00:00";
3;"010320787F01000500401123414BBA534140112341FDC65341304E2341FDC65341304E23414BBA5341401123414BBA5341";"snow_20091201.tif";"2009-12-01
 00:00:00";


--Steve


30 Jul 18:08:21 INFO [geoserver.web] - Getting list of coverages for saved 
store file://D:\Data\gis\hydroalp\snow
java.lang.RuntimeException: Could not list layers for this store, an error 
occurred retrieving them: Failed to create reader from 
file://D:\Data\gis\hydroalp\snow and hints 
null
at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(NewLayerPageProvider.java:150)
at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:58)
at 
org.geoserver.web.wicket.GeoServerDataProvider.fullSize(GeoServerDataProvider.java:236)
at 
org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.updateMatched(GeoServerTablePanel.java:562)
at 
org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.(GeoServerTablePanel.java:555)
at 
org.geoserver.web.wicket.GeoServerTablePanel.(GeoServerTablePanel.java:219)
at 
org.geoserver.web.wicket.GeoServerTablePanel.(GeoServerTablePanel.java:98)
at 
org.geoserver.web.data.layer.NewLayerPage$1.(NewLayerPage.java:101)
at 
org.geoserver.web.data.layer.NewLayerPage.(NewLayerPage.java:101)
at 
org.geoserver.web.data.store.CoverageStoreNewPage.onSuccessfulSave(CoverageStoreNewPage.java:76)
at 
org.geoserver.web.data.store.CoverageStoreNewPage.onSave(CoverageStoreNewPage.java:67)
at 
org.geoserver.web.data.store.AbstractCoverageStorePage$1.onSubmit(AbstractCoverageStorePage.java:115)
at 
org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:68)
at 
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:143)
at 
org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)

Re: [Geoserver-users] Style editor in GS 2.6 beta does not work on Windows

2014-08-06 Thread Andrea Aime
On Wed, Aug 6, 2014 at 3:55 PM, Rahkonen Jukka (Tike) <
jukka.rahko...@mmmtike.fi> wrote:

> Hi,
>
> I tried to test the new Preview legend button of GS 2.6 but the style
> editor is somehow broken at least on my Windows 7 with jre7-64 bit
> (Oracle). For example starting to create a new style by loading an existing
> one just does not work. Once the existed style is selected from the list
> and I press the Copy... link nothing happens. With GS 2.5.2 I get a
> dialogue which asks "Really want to overwrite the current editor contents?"
> Now the button does not seem to do anything. Same thing with the Validate
> button and the new Preview legend button.
>
> My browser is Firefox 31.0. As I said, GS 2.5.2 does not suffer from these
> problems.
>

Jared made a pull request to upgrade the editor component some time ago,
and I've
followed it up by adding a browser detection bit (because this new editor
does not
work on old IE versions).
This might be the cause.

Jared, any chance you have time to look into it?

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Limiting rendering for large resultsets

2014-08-06 Thread PREVOSTO, Laurent
I agree that would be the perfect solution… unfortunately it is not the way 
works today ☹

No dirty workaround ? damned…

Regards,

Laurent

De : andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] De la part de Andrea 
Aime
Envoyé : mercredi 6 août 2014 12:24
À : PREVOSTO, Laurent
Cc : geoserver-users@lists.sourceforge.net
Objet : Re: [Geoserver-users] Limiting rendering for large resultsets

On Wed, Aug 6, 2014 at 11:39 AM, PREVOSTO, Laurent 
mailto:laurent.prevo...@sfr.com>> wrote:
Hello,
We have geoserver based WMS services that display a quite large network (lots 
of points and polylines stored in an Oracle Spatial database).

When in the cities, the number of items can be very large
In the countryside, of course, the density of polylines is quite low.

If I try to render  a whole city, since there are too many items to render, the 
request will timeout.

You can increase the max rendering time in the WMS panel

But if I set a scale condition to avoid drawing thousands of lines when in a 
large city, users complain that they can’t find the cables when in the 
countryside…

So my question was : is there a way to tell geoserver to render a blank image 
if there are more than n items in the Oracle resultset ?
That way, I could keep a large scale in my TLD without going timeout in areas 
where there is a high density of items.

No, there is no such functionality. It is of course possible to add it, but 
we'd need to make
an extension to SLD, the limit would have to be specified at the 
FeatureTypeStyle or Rule levels

Cheers
Andrea

--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Style editor in GS 2.6 beta does not work on Windows

2014-08-06 Thread Rahkonen Jukka (Tike)
Hi,

I tried to test the new Preview legend button of GS 2.6 but the style editor is 
somehow broken at least on my Windows 7 with jre7-64 bit (Oracle). For example 
starting to create a new style by loading an existing one just does not work. 
Once the existed style is selected from the list and I press the Copy... link 
nothing happens. With GS 2.5.2 I get a dialogue which asks "Really want to 
overwrite the current editor contents?" Now the button does not seem to do 
anything. Same thing with the Validate button and the new Preview legend 
button. 

My browser is Firefox 31.0. As I said, GS 2.5.2 does not suffer from these 
problems.

-Jukka Rahkonen-



--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Symlinks for data sub-directories?

2014-08-06 Thread Derek
Hi Ben

The mount command looks like:

/dev/mapper/san  on /mnt/sdi type ext4 (rw,noatime,stripe=2560,data=ordered)

(The network admin tells me this a SAN drive mounted directly to the
server.)

The response from the "Z" parameter  - we are running Ubuntu - looks like:

-rw-rwxrwx 1 tomcat7 tomcat7 ? 47966 Feb 26 09:37
CoT_master_sbc_2010_poly_wgs84_1.dbf
-rw-rwxrwx 1 tomcat7 tomcat7 ?   145 Feb 26 09:37
CoT_master_sbc_2010_poly_wgs84_1.prj
-rw-rwxrwx 1 tomcat7 tomcat7 ?  1556 Feb 26 09:37
CoT_master_sbc_2010_poly_wgs84_1.sbn
-rw-rwxrwx 1 tomcat7 tomcat7 ?   196 Feb 26 09:37
CoT_master_sbc_2010_poly_wgs84_1.sbx
-rw-rwxrwx 1 tomcat7 tomcat7 ?108300 Feb 26 09:37
CoT_master_sbc_2010_poly_wgs84_1.shp
-rw-rwxrwx 1 tomcat7 tomcat7 ?  1212 Feb 26 09:37
CoT_master_sbc_2010_poly_wgs84_1.shx

No datastore.xml has been created for this shapefile.  Here's an example
from another one (but this from data already on the host, and not on the
symlinked drive).


  DataStoreInfoImpl-63f945a9:147a4d4b8b2:-7fff
  Pop
  Pop
  Shapefile
  true
  
WorkspaceInfoImpl-10073beb:147a14d6b3c:-8000
  
  
ISO-8859-1
shapefile
true
false
Etc/UTC
true
sdi
true
file:ne_10m_admin_0_countries/ne_10m_admin_0_countries.shp
shape
  
  <__default>false



I attach the relevant portion of the error trace from catalina.out.

Thanks
Derek





On 6 August 2014 09:52, Ben Caradoc-Davies 
wrote:

> Derek,
>
> can you show us the contents of the datastore.xml file in your data
> directory that defines this data store?
>
> What platform are you using? CentOS / RedHat often have selinux enforcing;
> this additional security mechanism may prevent tomcat7 from accessing some
> files. If you have selinux security contexts, you can see them with:
>
> ls -alZ /mnt/sdi/spatial
> ls -alZ /mnt/sdi/spatial/city/planning
>
> Is this a network mount? What sort of filesystem? ext4, VFAT, or NTFS? Try:
>
> mount | grep /mnt/sdi
>
> It would also be helpful if you have a stack trace from the geoserver logs
> when this error occurs. This may give us more detail about the underlying
> error.
>
> Kind regards,
> Ben.
>
>
> On 06/08/14 15:26, Derek wrote:
>
>> Hi Ben
>>
>> Thanks for the reply.  Yes, the permissions look OK.  Using your
>> command, for example, ls -al /mnt/sdi/spatial/city/planning, I get this
>> listing for a directory containing a shapefile that I am trying to access:
>>
>> drwxrwxrwx 2 tomcat7 tomcat7  4096 Feb 26 09:37 .
>> drwxrwxrwx 7 tomcat7 tomcat7  4096 Aug  5 10:57 ..
>> -rw-rwxrwx 1 tomcat7 tomcat7 47966 Feb 26 09:37
>> CoT_master_sbc_2010_poly_wgs84_1.dbf
>> -rw-rwxrwx 1 tomcat7 tomcat7   145 Feb 26 09:37
>> CoT_master_sbc_2010_poly_wgs84_1.prj
>> -rw-rwxrwx 1 tomcat7 tomcat7  1556 Feb 26 09:37
>> CoT_master_sbc_2010_poly_wgs84_1.sbn
>> -rw-rwxrwx 1 tomcat7 tomcat7   196 Feb 26 09:37
>> CoT_master_sbc_2010_poly_wgs84_1.sbx
>> -rw-rwxrwx 1 tomcat7 tomcat7108300 Feb 26 09:37
>> CoT_master_sbc_2010_poly_wgs84_1.shp
>> -rw-rwxrwx 1 tomcat7 tomcat7  1212 Feb 26 09:37
>> CoT_master_sbc_2010_poly_wgs84_1.shx
>>
>> Is there something else that needs to be changed?
>>
>> Regards
>> Derek
>>
>>
>>
>>
>> On 6 August 2014 04:55, Ben Caradoc-Davies > > wrote:
>>
>> Derek,
>>
>> symlinks should work, but note that access depends on the
>> permissions of the symlink target, not of the symlink itself.
>>
>> What is the output of this?:
>>
>> ls -al /mnt/sdi/spatial
>>
>> If permissions are the problem, you can change the ownership and
>> permissions of /mnt/sdi/spatial (*recursively*) with these commands,
>> but note that this may not be what you want so use with caution:
>>
>> chown -R tomcat7:tomcat7 /mnt/sdi/spatial
>> chmod -R ug+rX /mnt/sdi/spatial
>>
>> Kind regards,
>> Ben.
>>
>>
>> On 05/08/14 21:14, Derek wrote:
>>
>> Hi
>>
>> We have been struggling to get GeoServer to follow data stored in
>> a
>> symlinked directory (symlinked from GeoServer's actual data
>> directory).  All
>> permissions have been set and the owner/group is set to Tomcat7.
>> The ls
>> output shows:
>>
>> lrwxrwxrwx 1 tomcat7 tomcat7   21 Aug  4 13:03 spatial ->
>> /mnt/sdi/spatial/
>>
>> and this link and file system can be navigated from the command
>> line.
>>
>> If any of the data is copied over from the  symlinked directory
>> to the
>> actual data directory (in our case, at /var/geoserver/data/),
>> then it can be
>> loaded as expected.  If not, then we get an error message:
>>
>> Error creating data store, check the parameters. Error message:
>> Could not
>> acquire data access 'XYZ'
>>
>> The log show the same message, along with the usual
>> NullPointerException.
>>
>> Is there an additional Tomcat or GeoServer

Re: [Geoserver-users] Connecting with OpenLayers

2014-08-06 Thread John Brisbin
Hey there Phil,
Thanks for this advice, much appreciated:
On 31/07/2014 17:07 PM, Phil Scadden  wrote:
> The geoserver install brings in its own version of OL.
> data_dir/www/openlayers I think.
> You can always open the preview, show source and track down where it is
> loading stuff. The browser console should any errors.

Yep, so I can see that the preview page is calling for the inclusion of 
assets from localhost: 
http://127.0.0.1:8080/geoserver/openlayers/theme/default/style.css

Which is never going to work.
Problem is...where is this configured? Where would I go to tell 
GeoServer how to find the OpenLayers assets?
My grepping is atrocious...guess I'll start pecking through the config 
files to see if I can find it.
Thanks in advance for any clues!

-- 
John Brisbin
Managing Director, BoaB interactive Pty Ltd
POB 248, MT Molloy QLD 4871

E: j...@boab.info
M: 0407 471 565 | P: 07 4094 2172
Skype: boabjohn | Twitter: @boabjohn


--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Printing module sample page

2014-08-06 Thread Mauro Bartolomeoli
Hi Jonathan,
we are aware of the issue, there is already a JIRA for this:
https://jira.codehaus.org/browse/GEOS-6566

We are thinking of the best way to replace that page, probably by a link to
the local print demo page, or something similar.

Thanks
Mauro


2014-08-06 12:48 GMT+02:00 Jonathan Moules <
jonathanmou...@warwickshire.gov.uk>:

> Hi List,
> This page:
> http://docs.geoserver.org/latest/en/user/extensions/printing/index.html
>
> Has a links to a "sample page" where the module can be printed, the URL is:
> http://docs.geoserver.org/latest/en/user/_downloads/print-example.html
>
> However this page doesn't seem to actually do anything - there's no map or
> anything. It seems that the GeoExt stuff has moved from the URL it's
> expecting it to be at.
>
> There are instances of most of the javascript libraries on cloudflare,
> i.e.:
> http://cdnjs.cloudflare.com/ajax/libs/geoext/1.1/script/GeoExt.js
>
> Cheers,
> Jonathan
>
> This transmission is intended for the named addressee(s) only and may
> contain confidential, sensitive or personal information and should be
> handled accordingly. Unless you are the named addressee (or authorised to
> receive it for the addressee) you may not copy or use it, or disclose it to
> anyone else. If you have received this transmission in error please notify
> the sender immediately. All email traffic sent to or from us, including
> without limitation all GCSX traffic, may be subject to recording and/or
> monitoring in accordance with relevant legislation.
>
> --
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Printing module sample page

2014-08-06 Thread Jonathan Moules
Hi List,
This page:
http://docs.geoserver.org/latest/en/user/extensions/printing/index.html

Has a links to a "sample page" where the module can be printed, the URL is:
http://docs.geoserver.org/latest/en/user/_downloads/print-example.html

However this page doesn't seem to actually do anything - there's no map or
anything. It seems that the GeoExt stuff has moved from the URL it's
expecting it to be at.

There are instances of most of the javascript libraries on cloudflare, i.e.:
http://cdnjs.cloudflare.com/ajax/libs/geoext/1.1/script/GeoExt.js

Cheers,
Jonathan

-- 
This transmission is intended for the named addressee(s) only and may 
contain confidential, sensitive or personal information and should be 
handled accordingly. Unless you are the named addressee (or authorised to 
receive it for the addressee) you may not copy or use it, or disclose it to 
anyone else. If you have received this transmission in error please notify 
the sender immediately. All email traffic sent to or from us, including 
without limitation all GCSX traffic, may be subject to recording and/or 
monitoring in accordance with relevant legislation.
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Limiting rendering for large resultsets

2014-08-06 Thread Andrea Aime
On Wed, Aug 6, 2014 at 11:39 AM, PREVOSTO, Laurent  wrote:

>  Hello,
>
> We have geoserver based WMS services that display a quite large network
> (lots of points and polylines stored in an Oracle Spatial database).
>
>
>
> When in the cities, the number of items can be very large
>
> In the countryside, of course, the density of polylines is quite low.
>
>
>
> If I try to render  a whole city, since there are too many items to
> render, the request will timeout.
>

You can increase the max rendering time in the WMS panel


>  But if I set a scale condition to avoid drawing thousands of lines when
> in a large city, users complain that they can’t find the cables when in the
> countryside…
>
>
>
> So my question was : is there a way to tell geoserver to render a blank
> image if there are more than n items in the Oracle resultset ?
>
> That way, I could keep a large scale in my TLD without going timeout in
> areas where there is a high density of items.
>

No, there is no such functionality. It is of course possible to add it, but
we'd need to make
an extension to SLD, the limit would have to be specified at the
FeatureTypeStyle or Rule levels

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Limiting rendering for large resultsets

2014-08-06 Thread Jonathan Moules
Hi Laurent,
One possible solution - two datasets.

- Use a urban-areas polygon to clip the data into two datasets - one with
urban areas, the other rural.

- Style them both with different scale thresholds.

- Put both of them into the same layerGroup.

To your users it'll appear as a single layer while being optimised for
viewing at both scales.

---
Alternately rather than splitting the dataset, add an attribute/field to
the dataset that indicates if it is urban/rural. Load as a single layer
with an SLD which has two rules, and use a filter to distinguish between
them.

Hopefully that helps,
Jonathan




On 6 August 2014 10:39, PREVOSTO, Laurent  wrote:

>  Hello,
>
> We have geoserver based WMS services that display a quite large network
> (lots of points and polylines stored in an Oracle Spatial database).
>
>
>
> When in the cities, the number of items can be very large
>
> In the countryside, of course, the density of polylines is quite low.
>
>
>
> If I try to render  a whole city, since there are too many items to
> render, the request will timeout.
>
> But if I set a scale condition to avoid drawing thousands of lines when in
> a large city, users complain that they can't find the cables when in the
> countryside...
>
>
>
> So my question was : is there a way to tell geoserver to render a blank
> image if there are more than n items in the Oracle resultset ?
>
> That way, I could keep a large scale in my TLD without going timeout in
> areas where there is a high density of items.
>
>
>
> Regards,
>
>
>
> Laurent
>
>
> --
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>

-- 
This transmission is intended for the named addressee(s) only and may 
contain confidential, sensitive or personal information and should be 
handled accordingly. Unless you are the named addressee (or authorised to 
receive it for the addressee) you may not copy or use it, or disclose it to 
anyone else. If you have received this transmission in error please notify 
the sender immediately. All email traffic sent to or from us, including 
without limitation all GCSX traffic, may be subject to recording and/or 
monitoring in accordance with relevant legislation.
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Limiting rendering for large resultsets

2014-08-06 Thread PREVOSTO, Laurent
Hello,
We have geoserver based WMS services that display a quite large network (lots 
of points and polylines stored in an Oracle Spatial database).

When in the cities, the number of items can be very large
In the countryside, of course, the density of polylines is quite low.

If I try to render  a whole city, since there are too many items to render, the 
request will timeout.
But if I set a scale condition to avoid drawing thousands of lines when in a 
large city, users complain that they can't find the cables when in the 
countryside...

So my question was : is there a way to tell geoserver to render a blank image 
if there are more than n items in the Oracle resultset ?
That way, I could keep a large scale in my TLD without going timeout in areas 
where there is a high density of items.

Regards,

Laurent
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Symlinks for data sub-directories?

2014-08-06 Thread Ben Caradoc-Davies
Derek,

can you show us the contents of the datastore.xml file in your data 
directory that defines this data store?

What platform are you using? CentOS / RedHat often have selinux 
enforcing; this additional security mechanism may prevent tomcat7 from 
accessing some files. If you have selinux security contexts, you can see 
them with:

ls -alZ /mnt/sdi/spatial
ls -alZ /mnt/sdi/spatial/city/planning

Is this a network mount? What sort of filesystem? ext4, VFAT, or NTFS? Try:

mount | grep /mnt/sdi

It would also be helpful if you have a stack trace from the geoserver 
logs when this error occurs. This may give us more detail about the 
underlying error.

Kind regards,
Ben.

On 06/08/14 15:26, Derek wrote:
> Hi Ben
>
> Thanks for the reply.  Yes, the permissions look OK.  Using your
> command, for example, ls -al /mnt/sdi/spatial/city/planning, I get this
> listing for a directory containing a shapefile that I am trying to access:
>
> drwxrwxrwx 2 tomcat7 tomcat7  4096 Feb 26 09:37 .
> drwxrwxrwx 7 tomcat7 tomcat7  4096 Aug  5 10:57 ..
> -rw-rwxrwx 1 tomcat7 tomcat7 47966 Feb 26 09:37
> CoT_master_sbc_2010_poly_wgs84_1.dbf
> -rw-rwxrwx 1 tomcat7 tomcat7   145 Feb 26 09:37
> CoT_master_sbc_2010_poly_wgs84_1.prj
> -rw-rwxrwx 1 tomcat7 tomcat7  1556 Feb 26 09:37
> CoT_master_sbc_2010_poly_wgs84_1.sbn
> -rw-rwxrwx 1 tomcat7 tomcat7   196 Feb 26 09:37
> CoT_master_sbc_2010_poly_wgs84_1.sbx
> -rw-rwxrwx 1 tomcat7 tomcat7108300 Feb 26 09:37
> CoT_master_sbc_2010_poly_wgs84_1.shp
> -rw-rwxrwx 1 tomcat7 tomcat7  1212 Feb 26 09:37
> CoT_master_sbc_2010_poly_wgs84_1.shx
>
> Is there something else that needs to be changed?
>
> Regards
> Derek
>
>
>
>
> On 6 August 2014 04:55, Ben Caradoc-Davies  > wrote:
>
> Derek,
>
> symlinks should work, but note that access depends on the
> permissions of the symlink target, not of the symlink itself.
>
> What is the output of this?:
>
> ls -al /mnt/sdi/spatial
>
> If permissions are the problem, you can change the ownership and
> permissions of /mnt/sdi/spatial (*recursively*) with these commands,
> but note that this may not be what you want so use with caution:
>
> chown -R tomcat7:tomcat7 /mnt/sdi/spatial
> chmod -R ug+rX /mnt/sdi/spatial
>
> Kind regards,
> Ben.
>
>
> On 05/08/14 21:14, Derek wrote:
>
> Hi
>
> We have been struggling to get GeoServer to follow data stored in a
> symlinked directory (symlinked from GeoServer's actual data
> directory).  All
> permissions have been set and the owner/group is set to Tomcat7.
> The ls
> output shows:
>
> lrwxrwxrwx 1 tomcat7 tomcat7   21 Aug  4 13:03 spatial ->
> /mnt/sdi/spatial/
>
> and this link and file system can be navigated from the command
> line.
>
> If any of the data is copied over from the  symlinked directory
> to the
> actual data directory (in our case, at /var/geoserver/data/),
> then it can be
> loaded as expected.  If not, then we get an error message:
>
> Error creating data store, check the parameters. Error message:
> Could not
> acquire data access 'XYZ'
>
> The log show the same message, along with the usual
> NullPointerException.
>
> Is there an additional Tomcat or GeoServer configuration that is
> required to
> access symlinked directories?
>
> Thanks!
> Derek
>
>
>
>
> --
> View this message in context:
> 
> http://osgeo-org.1560.x6.__nabble.com/Symlinks-for-data-__sub-directories-tp5155119.html
> 
> 
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> 
> --__--__--
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
> 
> http://pubads.g.doubleclick.__net/gampad/clk?id=153845071&__iu=/4140/ostg.clktrk
> 
> 
> _
> Geoserver-users mailing list
> Geoserver-users@lists.__sourceforge.net
> 
> https://lists.sourceforge.net/__lists/listinfo/geoserver-users
> 
>
>
> --
> Ben Caradoc-Davies 
> Software Engineer
> CSIRO Mineral Resources Flagship
> Australian Resources Research Centre
>
>

-- 
Ben Caradoc-Davies 
Software Engineer
CSIRO Mineral Resources Flagship
Australian Resources Research 

Re: [Geoserver-users] Symlinks for data sub-directories?

2014-08-06 Thread Derek
Hi Ben

Thanks for the reply.  Yes, the permissions look OK.  Using your command,
for example, ls -al /mnt/sdi/spatial/city/planning, I get this listing for
a directory containing a shapefile that I am trying to access:

drwxrwxrwx 2 tomcat7 tomcat7  4096 Feb 26 09:37 .
drwxrwxrwx 7 tomcat7 tomcat7  4096 Aug  5 10:57 ..
-rw-rwxrwx 1 tomcat7 tomcat7 47966 Feb 26 09:37
CoT_master_sbc_2010_poly_wgs84_1.dbf
-rw-rwxrwx 1 tomcat7 tomcat7   145 Feb 26 09:37
CoT_master_sbc_2010_poly_wgs84_1.prj
-rw-rwxrwx 1 tomcat7 tomcat7  1556 Feb 26 09:37
CoT_master_sbc_2010_poly_wgs84_1.sbn
-rw-rwxrwx 1 tomcat7 tomcat7   196 Feb 26 09:37
CoT_master_sbc_2010_poly_wgs84_1.sbx
-rw-rwxrwx 1 tomcat7 tomcat7108300 Feb 26 09:37
CoT_master_sbc_2010_poly_wgs84_1.shp
-rw-rwxrwx 1 tomcat7 tomcat7  1212 Feb 26 09:37
CoT_master_sbc_2010_poly_wgs84_1.shx

Is there something else that needs to be changed?

Regards
Derek




On 6 August 2014 04:55, Ben Caradoc-Davies 
wrote:

> Derek,
>
> symlinks should work, but note that access depends on the permissions of
> the symlink target, not of the symlink itself.
>
> What is the output of this?:
>
> ls -al /mnt/sdi/spatial
>
> If permissions are the problem, you can change the ownership and
> permissions of /mnt/sdi/spatial (*recursively*) with these commands, but
> note that this may not be what you want so use with caution:
>
> chown -R tomcat7:tomcat7 /mnt/sdi/spatial
> chmod -R ug+rX /mnt/sdi/spatial
>
> Kind regards,
> Ben.
>
>
> On 05/08/14 21:14, Derek wrote:
>
>> Hi
>>
>> We have been struggling to get GeoServer to follow data stored in a
>> symlinked directory (symlinked from GeoServer's actual data directory).
>>  All
>> permissions have been set and the owner/group is set to Tomcat7. The ls
>> output shows:
>>
>> lrwxrwxrwx 1 tomcat7 tomcat7   21 Aug  4 13:03 spatial ->
>> /mnt/sdi/spatial/
>>
>> and this link and file system can be navigated from the command line.
>>
>> If any of the data is copied over from the  symlinked directory to the
>> actual data directory (in our case, at /var/geoserver/data/), then it can
>> be
>> loaded as expected.  If not, then we get an error message:
>>
>> Error creating data store, check the parameters. Error message: Could not
>> acquire data access 'XYZ'
>>
>> The log show the same message, along with the usual NullPointerException.
>>
>> Is there an additional Tomcat or GeoServer configuration that is required
>> to
>> access symlinked directories?
>>
>> Thanks!
>> Derek
>>
>>
>>
>>
>> --
>> View this message in context: http://osgeo-org.1560.x6.
>> nabble.com/Symlinks-for-data-sub-directories-tp5155119.html
>> Sent from the GeoServer - User mailing list archive at Nabble.com.
>>
>> 
>> --
>> Infragistics Professional
>> Build stunning WinForms apps today!
>> Reboot your WinForms applications with our WinForms controls.
>> Build a bridge from your legacy apps to the future.
>> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&;
>> iu=/4140/ostg.clktrk
>> ___
>> Geoserver-users mailing list
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
> --
> Ben Caradoc-Davies 
> Software Engineer
> CSIRO Mineral Resources Flagship
> Australian Resources Research Centre
>
--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users