[mapserver-users] [TinyOWS] No PostGIS available in database

2012-05-02 Thread Riccardo Gaeta
Hi all,
I'm using Tinyows 1.0.0 on redhat machine, postgresql 8.4 and postgis
1.5.3. I've checked all these on the database:
SELECT PostGIS_Lib_Version();
SELECT PostGIS_LibXML_Version();
SELECT PostGIS_GEOS_Version();
SELECT PostGIS_PROJ_Version();

And all seems to answer good.
But when I check the tinyows I get this error:

Content-Type: application/xml

?xml version='1.0' encoding='UTF-8'?
ows:ExceptionReport
 xmlns='http://www.opengis.net/ows'
 xmlns:ows='http://www.opengis.net/ows'
 xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
 xsi:schemaLocation='http://www.opengis.net/ows
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd'
 version='1.1.0' language='en'
 ows:Exception exceptionCode='ConnectionFailed' locator='init_OWS'
  ows:ExceptionTextNo PostGIS available in database/ows:ExceptionText
 /ows:Exception
/ows:ExceptionReport

I've found an old post about this, date 28 Mar 2012 by Neelima Emmani, but
with no rposecution.

Anyone could help me please?

Thanks to all,
Riccardo

P.S.: My tinyows.xml look like this:

tinyows online_resource=http://127.0.0.1/cgi-bin/tinyows;
schema_dir=/usr/local/share/tinyows/schema/ log=/tmp/tinyows.log
log_level=1 

  pg host=localhost user=user password=pwd dbname=dbname
port=5432/

  metadata name=TinyOWS Server title=TinyOWS Server - Demo Service /

  layer retrievable=1
 queryable=1
 writable=0
 ns_prefix=tows
 ns_uri=http://127.0.0.1/;
 server=http://127.0.0.1/;
 name=mytable
 schema=myschema
 srid=900913,3785
 title=mylayer_tiny
 abstract=test
  /

/tinyows
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Layers mutually exclusive

2012-05-02 Thread Eichner, Andreas - SID-NLKM

You might try at the layer level:

REQUIRES [expression]
Sets context for displaying this layer, for example:

REQUIRES ![orthoquads]

means that this layer would NOT be displayed if a layer named orthoquads 
is on. The expression consists of a boolean expression based on the status of 
other layers, each [layer name] substring is replaced by a 0 or a 1 depending 
on that layer's STATUS and then evaluated as normal. Logical operators AND and 
OR can be used.


If you have let's say three layers called scale_0, scale_1 and scale_2 for 
consecutive intervalls of the scale, you can try
  REQUIRES ![scale_1] and ![scale_2]
on layer scale_0. I don't know if this works as expected, never tried that...

HTH
 

 -Ursprüngliche Nachricht-
 Von: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag 
 von Andrea Peri
 Gesendet: Montag, 30. April 2012 13:13
 An: mapserver-users@lists.osgeo.org
 Betreff: [mapserver-users] Layers mutually exclusive
 
 Hi,
 
 is possible in Map Server to set two or more layers (raster 
 layers) to be mutually exclusive to each other ?
 
 I have some raster set each of they is fully cover.
 So if pretty unuseful to have a wms request that ask for two 
 or more of this layer sets.
 
 I don't know if this is possible, but if it could be possible 
 it was surely give a better performance for my MapServer.
 Infact if an user ask for many raster set, only the top-most 
 should be visible instead the other asked layers in the same 
 request was not visible and they would be only an unuseful 
 lost of elaboration time.
 
 Thx,
 
 -- 
 -
 Andrea Peri
 . . . . . . . . . 
 qwerty àèìòù
 -
 
 
 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] [TinyOWS] No PostGIS available in database

2012-05-02 Thread Rahkonen Jukka
Hi,

Increase the log_level to 8 and see from the log file which SQL queries TinyOWS 
is sending. You can test them with psql for comparison.
And I suppose it would be better to remove server=http://127.0.0.1/; because 
it is not used any more.

-Jukka Rahkonen-


Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Riccardo Gaeta
Lähetetty: 2. toukokuuta 2012 14:28
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] [TinyOWS] No PostGIS available in database

Hi all,
I'm using Tinyows 1.0.0 on redhat machine, postgresql 8.4 and postgis 1.5.3. 
I've checked all these on the database:
SELECT PostGIS_Lib_Version();
SELECT PostGIS_LibXML_Version();
SELECT PostGIS_GEOS_Version();
SELECT PostGIS_PROJ_Version();

And all seems to answer good.
But when I check the tinyows I get this error:

Content-Type: application/xml

?xml version='1.0' encoding='UTF-8'?
ows:ExceptionReport
 xmlns='http://www.opengis.net/ows'
 xmlns:ows='http://www.opengis.net/ows'
 xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
 xsi:schemaLocation='http://www.opengis.net/ows 
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd'
 version='1.1.0' language='en'
 ows:Exception exceptionCode='ConnectionFailed' locator='init_OWS'
  ows:ExceptionTextNo PostGIS available in database/ows:ExceptionText
 /ows:Exception
/ows:ExceptionReport

I've found an old post about this, date 28 Mar 2012 by Neelima Emmani, but with 
no rposecution.

Anyone could help me please?

Thanks to all,
Riccardo

P.S.: My tinyows.xml look like this:

tinyows online_resource=http://127.0.0.1/cgi-bin/tinyows;  
schema_dir=/usr/local/share/tinyows/schema/ log=/tmp/tinyows.log 
log_level=1 

  pg host=localhost user=user password=pwd dbname=dbname port=5432/

  metadata name=TinyOWS Server title=TinyOWS Server - Demo Service /

  layer retrievable=1
 queryable=1
 writable=0
 ns_prefix=tows
 ns_uri=http://127.0.0.1/;
 server=http://127.0.0.1/;
 name=mytable
 schema=myschema
 srid=900913,3785
 title=mylayer_tiny
 abstract=test
  /

/tinyows

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Barcharts missing

2012-05-02 Thread John Abraham
I have a bar charts layer, and some of the bar charts don't show up.  
Strangely, when I'm using openlayers to display a zoom-and-pan map different 
bar charts go missing at different levels of zoom.  Is this a bug, or some 
feature?

Here's a bit of my mapfile:

MAP
NAME luzs-MAP
# Map image size
SIZE 1000 800
UNITS meters
EXTENT -85.338229 33.1785600011 -83.5057259973 34.5140960012
PROJECTION
init=epsg:4326
END

#TEMPLATEPATTERN 'mapserv_template*' 
  
# Background color for the map canvas -- change as desired
IMAGECOLOR 255 255 255
IMAGEQUALITY 95
IMAGETYPE agg

OUTPUTFORMAT
NAME agg
DRIVER AGG/PNG
IMAGEMODE RGB
END

skipping over to the bar charts layer definition:

LAYER
NAME years
TYPE CHART
CONNECTIONTYPE postgis

CONNECTION dbname='atlanta_db' host=localhost port=5433 
user='usrPostgres' password='usrPostgres'
DATA 'graph_point_geom FROM 
analysis.W01a_CA35DetResid_120501_170604_with_geom USING UNIQUE gid USING 
srid=4326'
PROCESSING CHART_TYPE=bar  
PROCESSING CHART_BAR_MINVAL=-0.180638991133
PROCESSING CHART_BAR_MAXVAL=154895170.852
PROCESSING CHART_SIZE=30 50

STATUS ON 
CLASS
NAME sum2005demand
STYLE
SIZE [sum2005demand]
COLOR 189 163 26
END 
END 


CLASS
NAME sum2006demand
STYLE
SIZE [sum2006demand]
COLOR 235 7 177
END 
END 
etc.

--
John Abraham
j...@hbaspecto.com___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapcache: labels and symbols getting clipped at tile edges

2012-05-02 Thread Stephen Woodbridge

Hi all,

I have setup mapcache which is working great but I amd getting text 
labels and symbols along the metatile edges that are getting clipped. 
IE: they are getting rendered and the left tile and then chopped but not 
in the right tile so I end up with parts of symbols and text :(


I have metabuffer50/metabuffer which I increased from 30 without 
without improving the issue.


  tileset name=tiger-base
sourcetiger2011/source
cachedisk/cache
gridWGS84/grid
gridg/grid
formatPNGQ_FAST/format
metatile5 5/metatile
metabuffer50/metabuffer
expires3600/expires
  /tileset

This is happening for highway shields and for city names. Bith of these 
are Annotation layers.


Any ideas on how to fix this?

Thanks,
  -Steve W
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapcache: labels and symbols getting clipped at tile edges

2012-05-02 Thread thomas bonfort
the mapcache metabuffer setting *must always* match your mapserver
labelcache_map_edge_buffer, is that the case ?

On Wed, May 2, 2012 at 5:35 PM, Stephen Woodbridge
wood...@swoodbridge.com wrote:
 Hi all,

 I have setup mapcache which is working great but I amd getting text labels
 and symbols along the metatile edges that are getting clipped. IE: they are
 getting rendered and the left tile and then chopped but not in the right
 tile so I end up with parts of symbols and text :(

 I have metabuffer50/metabuffer which I increased from 30 without without
 improving the issue.

  tileset name=tiger-base
    sourcetiger2011/source
    cachedisk/cache
    gridWGS84/grid
    gridg/grid
    formatPNGQ_FAST/format
    metatile5 5/metatile
    metabuffer50/metabuffer
    expires3600/expires
  /tileset

 This is happening for highway shields and for city names. Bith of these are
 Annotation layers.

 Any ideas on how to fix this?

 Thanks,
  -Steve W
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapcache: labels and symbols getting clipped at tile edges

2012-05-02 Thread Stephen Woodbridge

On 5/2/2012 11:39 AM, thomas bonfort wrote:

the mapcache metabuffer setting *must always* match your mapserver
labelcache_map_edge_buffer, is that the case ?


Thomas,

Nope, changed it and it works great now.
This should be noted in the mapcache.xml.sample file.

What controls the order of the layers in the OL layer switcher?
I have an overlay and a base layer but the overlay is getting listed 
first so when the demo service starts I get only transparent tiles of 
the overlay are shown instead of the base map until you open the layer 
switcher. I understand the demo service is not designed to be an 
application, only a demo that you can cut and paste into a real application.


Thanks,
  -Steve



On Wed, May 2, 2012 at 5:35 PM, Stephen Woodbridge
wood...@swoodbridge.com  wrote:

Hi all,

I have setup mapcache which is working great but I amd getting text labels
and symbols along the metatile edges that are getting clipped. IE: they are
getting rendered and the left tile and then chopped but not in the right
tile so I end up with parts of symbols and text :(

I havemetabuffer50/metabuffer  which I increased from 30 without without
improving the issue.

  tileset name=tiger-base
sourcetiger2011/source
cachedisk/cache
gridWGS84/grid
gridg/grid
formatPNGQ_FAST/format
metatile5 5/metatile
metabuffer50/metabuffer
expires3600/expires
  /tileset

This is happening for highway shields and for city names. Bith of these are
Annotation layers.

Any ideas on how to fix this?

Thanks,
  -Steve W
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users