[mapserver-users] Re: Custom Symbology using C# MapScript and SLDs

2010-03-18 Thread Pat B

I've managed to get the external graphic symbols working by creating a web
accessible folder for temp images and adding the following line to the code. 
This is mentioned in the mapscript documentation under the polygon
symbolizer but it also applies to points.

   map.setMetaData("WMS_SLD_SYMBOL_URL", "http:///");

The well known symbols seem to be limited to square and circle on my setup
but I've got versions of the others in my .sym anyway.

The truetype and vector symbols however, do not appear to be supported by
mapscript's generateSLD().  It'll put them in an exported mapfile and load
them into a symbol set or whatever you want to do on the mapscript side but
not write them to an sld (unless I'm missing something).  I saw an open
ticket regarding polygon symbols in my wanderings that seems to back this
up.  Anybody know for sure?  Mapserver reads them out of the sld with no
problem, it's getting them into the sld that's tricky.

I hacked my way around it by putting in a dummy 'square' well known name
symbol and then doing a loop to replace 'square' in the sld string with the
name of the truetype or vector symbol for the various classes and layers. 
Gets the job done but...  Well anyway, if anybody runs across this and knows
a better way I'm all ears.

Also, in the code from the first post, no need to load an existing
map/layer, just make an empty map file and build it from scratch (new
mapObj(null);) so the only stuff in there is for the customized layers. 
That way you don't have to worry about pre existing styles and classes from
the mapfile although you do need to set the locations of the fonts, symbols,
etc in the blank mapObj.

So, hallelujah, if you're going down this road or doing something similar I
hope this helps.   


-- 
View this message in context: 
http://n2.nabble.com/Custom-Symbology-using-C-MapScript-and-SLDs-tp472p4761106.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] 3D display of data

2010-03-18 Thread Kishore Reddy
Hi all,

I have built a website which shows geographic data in 2D. The
following is the configuration used for the website

MapServer
Postgresql - Data is stored with accordance with the OpenGeo standards.
OpenLayers
Php

But the website is intended for the rural community. So I thought of
displaying the data in 3D using MapServer.
So can anyone please give some references?

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


Re: [mapserver-users] can not compile arcsde 9.3 with mapserver 5.4

2010-03-18 Thread Huey Brantley

Compile it against the SDE SDK, not where you have SDE installed.

My configure:

./configure \
  --with-php=/usr/local \
  --with-proj=/usr/local \
  --with-gd=/usr/local \
  --with-jpeg=/usr/local \
  --with-png=/usr/local \
  --with-sde=/u01/arcgis93sdk/sdeexe93/ \
  --with-sde-version=93 \
  --with-wfs \
  --with-ogr=/usr/local/bin/gdal-config \
  --with-gdal=/usr/local/bin/gdal-config \
  --with-freetype \
  --with-tiff \
  --with-agg \
  --with-curl \
  --enable-debug



Jachym Cepicky wrote:

Hi,

I'm not able to get arcsde 9.3.0 compiled with mapserver (5.4), on Linux

I use

./configure --with-sde=/opt/arcsde/9.3.0/sdeexe93/ --with-sde-version=''


the arcsde installation directory containes (among others) file

...
libsde.so
..

nut not "*.a" file or "*.h" files

however, I get

configure: error: "Could not find sdetype.h or libsde.a/libsde.so in
/opt/arcsde/9.3.0/sdeexe93/."

Any hint?

Thanks

Jachym
  


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


Re: [mapserver-users] WFS limit time interval to POSTGIS

2010-03-18 Thread Yewondwossen Assefa


Heiko Schröter wrote:

Hello,

by setting up a WFS server i need to limit the time interval for the requests 
to the postgis db (Millions of data points inside POSTGIS).
The WMS part with time interval requests is working and i'am trying to make 
these data available through WFS as well.

What i can find in the docs is a FILTER with a WFS Client connecting a WFS 
server.
But this seems not to apply for DATE interval calculus.

The only thing i get in the moment is the whole data set at once or the first 
NUMBER (here 10) of entries.

Is it possible at all to limit the requested time interval to a WFS server ?
i.e. something like TIME=2007-1-2/2007-1-3

  


Hi there,

There is no explicit support of a TIME parameter in wfs but  I believe 
It should be possible on a postgis layer to use the FilterEncoding to 
limit the request: would something like this work for you:


Filter=your_time_field2007-01-02your_time_field2007-01-03


regards,


Thanks and Regards
Heiko


LAYER
EXTENT -180 -90 180 90
CONNECTIONTYPE POSTGIS
NAME "TEST"
PROCESSING "CLOSE_CONNECTION=DEFER"
OPACITY 60
STATUS ON
DUMP TRUE
METADATA
"wfs_title" "test"
"wfs_maxfeatures" "10"
"gml_featureid" "ID" ## REQUIRED
"gml_include_items" "all" ## Optional (serves all 
attributes for layer)
"gml_geometries" "rechteck"
"gml_rechteck_type" "polygon"
END
PROJECTION
"init=epsg:4326"
END
CONNECTION "user={BF961C25A57BA226} password={C9748CA35D48D049} 
dbname={6B40E65B12B92106} host=localhost"
DATA "rechteck from test_data using srid=-1 using unique datum"
TYPE POLYGON
SIZEUNITS meters
CLASS
NAME "test_class"
STYLE
OUTLINECOLOR 0 0 0
COLOR [farbe]
END
END
END # Layer
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

  



--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


[mapserver-users] OSGeo4W setup hangs

2010-03-18 Thread Jan Hartmann

Hi,

When I try to update my OSGeo4W installation in advanced mode from 
Internet, setup.exe proceeds until the package selection and hangs after 
that.  The progress window says: "Parsing ini file 
"http://download.osgeo.org/osgeo4w/setup.ini... setup.ini.bz2 from 
http://download.osgeo.org";. Can someone duplicate this problem?


Jan

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


Re: [mapserver-users] WMS TIME parameter slow

2010-03-18 Thread Yewondwossen Assefa

Sorry to jump late on this.

The use of the date_trunc function for postgis layers (described 
http://mapserver.org/ogc/wms_time.html) was from what I remember to 
allow queries (on a timestamp field)
like time=2001-01-01 expecting to get back  all values of the day 
regardless of the time set. I have entered a bug on it 
(http://trac.osgeo.org/mapserver/ticket/3382) to be able to review it 
before the 6.0 release.


regards,


Paul Ramsey wrote:

Sorry, there's not much more I can offer, you've done a great job
debugging, but at the end of the day the SQL being generated by the
WMS Time module is not great. Make sure to run 'ANALYZE' on your
database so the planner has the latest stats.

P.

On Thu, Mar 11, 2010 at 5:59 AM, Heiko Schröter
 wrote:
  

Am Donnerstag 11 März 2010 14:35:53 schrieben Sie:

Paul,

thanks for staying at it. These timings i get with the variation of the theme. 
The second best is to cast 'datum::timestamp'. But still beeing 32times slower 
than just a trivial compare on the index as in 1). The slowest run is the brute 
force 'date_trunc' without cast 3). So to me this is a bit voodo why postgres 
refuses to scan the indices in proper speed in 2) and 3).
The maximum index scan i get with 'date_trunc' is a 'Bitmap Heap Scan' on the 
index with scenario 2).
Of what i have found inside the docs/google is that even when casting 'datum' 
inside postgres the request, here generated by MS, should or have to be casted 
as well which is not (at least by now).

Heiko


1) The brute force compare:
sc_gis=# explain analyze select 
"datum","farbe",encode(AsBinary(force_collection(force_2d("rechteck")),'NDR'),'hex') as 
geom,"datum" from o_v20 where rechteck
&& GeomFromText('POLYGON((-134.90506329114 -78.2278481012662,-134.90506329114 
78.2278481012663,134.90506329114
78.2278481012663,134.90506329114 -78.2278481012662,-134.90506329114 
-78.2278481012662))',-1) and (datum >= '2007-12-10' and datum <= '2007-12-11');

 Total runtime: 41.018 ms
(32 rows)

Now Create Immutable Index on our play table:
CREATE INDEX o_v20_y2007_date_trunc ON o_v20_y2007 (date_trunc('day', 
datum::timestamp without time zone));
2)
sc_gis=# CREATE INDEX o3_v20_y2007_date_trunc ON o3_v20_y2007 
(date_trunc('day', datum::timestamp without time zone));
ERROR:  relation "o3_v20_y2007_date_trunc" already exists
scia_gis=# explain analyze select 
"datum","farbe",encode(AsBinary(force_collection(force_2d("rechteck")),'NDR'),'hex') as 
geom,"datum" from o_v20 where rechteck
&& GeomFromText('POLYGON((-134.90506329114 -78.2278481012662,-134.90506329114 
78.2278481012663,134.90506329114
78.2278481012663,134.90506329114 -78.2278481012662,-134.90506329114 
-78.2278481012662))',-1) and ((date_trunc('day', datum::timestamp without time zone) 
>= '2007-12-10' AND date_trunc('day', datum::timestamp without time zone) <= 
'2007-12-11'));

 Total runtime: 1250.679 ms
(26 rows)

3)
sc_gis=# explain analyze select 
"datum","farbe",encode(AsBinary(force_collection(force_2d("rechteck")),'NDR'),'hex') as 
geom,"datum" from o_v20 where rechteck
&& GeomFromText('POLYGON((-134.90506329114 -78.2278481012662,-134.90506329114 
78.2278481012663,134.90506329114
78.2278481012663,134.90506329114 -78.2278481012662,-134.90506329114 
-78.2278481012662))',-1) and ((date_trunc('day', datum) >= '2007-12-10' AND 
date_trunc('day', datum) <= '2007-12-11'));

 Total runtime: 2329.380 ms
(23 rows)



Good job getting this far on your own! Create a SQL wrapper function
on top of date_trunc which *is* marked as immutable and you'll be able
to build a functional index on it.

P.

On Thu, Mar 11, 2010 at 1:39 AM, Heiko Schröter
 wrote:
  

Am Mittwoch 10 März 2010 16:52:28 schrieb Heiko Schröter:

Done what has been suggested. The 'date_trunc' function forces sequential scans 
instead of using the indexed scans.

I've tried and failed:
sc_gis=# CREATE INDEX o_v20_y2007_date_trunc ON o_v20_y2007 (date_trunc('day', 
datum at time zone 'GMT'));
ERROR:  functions in index expression must be marked IMMUTABLE

Probably the MS list is not the right place to ask.
But may be a kind soul has some pointers to more infos.
I admit that db's are not my field of experience and i'am still learning.

On the other hand it would be nice to have a hint about the indexing issue 
inside the MS docs when using the WMS Time extension.

Heiko


sc_gis=# explain analyze select 
"datum","farbe",encode(AsBinary(force_collection(force_2d("rechteck")),'NDR'),'hex') as 
geom,"datum" from o_v20 where rechteck
&& GeomFromText('POLYGON((-134.90506329114 -78.2278481012662,-134.90506329114 
78.2278481012663,134.90506329114
78.2278481012663,134.90506329114 -78.2278481012662,-134.90506329114 
-78.2278481012662))',-1) and (datum >= '2007-12-10' and datum <= '2007-12-30');
QUERY PLAN
-

Re: [mapserver-users] Oddball mapserver/ArcSDE issue

2010-03-18 Thread Russell McOrmond


On Thu, 18 Mar 2010, Paul Ramsey wrote:


Russell,
Attach your patch to a ticket (http://trac.osgeo.org/mapserver) and
assign it to me (pramsey) and I'll ensure it's committed into the next
patch releases and major releases.


I re-assigned http://trac.osgeo.org/mapserver/ticket/2988 to you.

Hope that is what you were suggesting I do.

Thank you.

--
 Russell McOrmond, Internet Consultant: 
 Please help us tell the Canadian Parliament to protect our property
 rights as owners of Information Technology. Sign the petition!
 http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca

 "The government, lobbied by legacy copyright holders and hardware
  manufacturers, can pry control over my camcorder, computer,
  home theatre, or portable media player from my cold dead hands!"
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Oddball mapserver/ArcSDE issue

2010-03-18 Thread Paul Ramsey
Russell,
Attach your patch to a ticket (http://trac.osgeo.org/mapserver) and
assign it to me (pramsey) and I'll ensure it's committed into the next
patch releases and major releases.
P

On Thu, Mar 18, 2010 at 11:03 AM, Russell McOrmond  wrote:
>
> On Tue, 16 Mar 2010, Russell McOrmond wrote:
>
>>  The segmentation fault is caused by using a string which is actually null
>> being returned from string functions, with the null then being used as if it
>> were a string.
>>  See: http://trac.osgeo.org/mapserver/ticket/2988  "Check error returns
>> from mapstring functions."
>
>  Sorry to be responding to my own messages, but wanted to report on
> progress.
>
>
>  I added in some additional error return checking, and put some suggestions
> into the bug listed above.
>
>  I created some additional error reporting on what the reason for the
> iconv() failure was (see path at end of message), and now I see "An invalid
> multibyte sequence has been encountered in the input" in the MS_ERRORFILE.
>
>  While it is great to have mapserver not core dumping, I am still wondering
> if anyone has ideas of where to go next.  I suspect there is something
> invalid in the data that is causing ArcSDE to send me strings that aren't
> valid UTF-16 characters.  I don't know enough about ArcSDE or other ESRI
> software to know how to validate such things.
>
>
>
> Note: Please consider patches like the one below and/or the ones in the bug
> for future releases of mapserver.  It would be great if Mapserver would
> output error messages rather than core dump.
>
>
> --- mapstring.c-orig    2010-03-17 16:43:19.0 -0400
> +++ mapstring.c 2010-03-18 11:54:02.0 -0400
> @@ -1504,8 +1504,8 @@
>  char* msConvertWideStringToUTF8 (const wchar_t* string, const char*
> encoding) {
>  #ifdef USE_ICONV
>
> -    int bconvFailed = MS_TRUE;
>     char* output = NULL;
> +    char* errormessage = NULL;
>     iconv_t cd = NULL;
>     size_t nStr;
>     size_t nInSize;
> @@ -1540,23 +1540,36 @@
>            pszUTF8 = output;
>            pwszWide = string;
>            nConv = iconv(cd, (char **)&pwszWide, &nInSize, &pszUTF8,
> &nOutSize);
> -           if ((size_t)-1 != nConv &&  nOutSize != nBufferSize)
> -               bconvFailed = MS_FALSE;
> +           if ((size_t)-1 != nConv &&  nOutSize != nBufferSize) {
> +            switch (errno) {
> +              case E2BIG:
> +                errormessage = "There is not sufficient room in buffer";
> +                break;
> +              case EILSEQ:
> +                errormessage = "An invalid multibyte sequence has been
> encountered in the input";
> +                break;
> +              case EINVAL:
> +                errormessage = "An incomplete multibyte sequence has been
> encountered in the input";
> +                break;
> +              default:
> +                errormessage = "Unknown";
> +                break;
> +            }
> +            msSetError(MS_MISCERR, "Unable to convert string in encoding
> '%s' to UTF8: %s",
> +                                   "msConvertWideStringToUTF8()",
> +                       encoding,errormessage);
> +            iconv_close(cd);
> +            msFree(output);
> +            return NULL;
> +          }
>            iconv_close(cd);
>         } else {
>             msSetError(MS_MISCERR, "Encoding not supported by libiconv
> (%s).",
>                                    "msConvertWideStringToUTF8()",
>                                    encoding);
> +           msFree(output);
>             return NULL;
>         }
> -
> -        if (bconvFailed) {
> -            msFree(output);
> -            output = NULL;
> -            msSetError(MS_MISCERR, "Unable to convert string in encoding
> '%s' to UTF8",
> -                                   "msConvertWideStringToUTF8()",
> -                                   encoding);
> -        }
>     } else {
>         /* we were given a NULL wide string, nothing we can do here */
>         return NULL;
>
> --
>  Russell McOrmond, Internet Consultant: 
>  Please help us tell the Canadian Parliament to protect our property
>  rights as owners of Information Technology. Sign the petition!
>  http://digital-copyright.ca/petition/ict/     http://KillBillC61.ca
>
>  "The government, lobbied by legacy copyright holders and hardware
>  manufacturers, can pry control over my camcorder, computer,
>  home theatre, or portable media player from my cold dead hands!"
> ___
> 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] can not compile arcsde 9.3 with mapserver 5.4

2010-03-18 Thread Russell McOrmond


On Thu, 18 Mar 2010, Jachym Cepicky wrote:


I'm not able to get arcsde 9.3.0 compiled with mapserver (5.4), on Linux

I use

./configure --with-sde=/opt/arcsde/9.3.0/sdeexe93/ --with-sde-version=''


  You need to ArcSDE SDK, which is a separate package from the install 
disks.  It will have the required include/ and lib/ directories that you 
need to have to compile mapserver against the sde library.


  I haven't compiled against the 9.3 SDK yet, but here is what is in the 
9.2 SDK to compare:


$ find sdeexe92/ -type f
sdeexe92/etc/services.sde
sdeexe92/lib/icu4j_3_2.jar
sdeexe92/lib/libedgemt.so
sdeexe92/lib/libmtchloc.so
sdeexe92/lib/libsg.so
sdeexe92/lib/libsdedb2srvr92.so
sdeexe92/lib/concurrent.jar
sdeexe92/lib/jpe92_sdk.jar
sdeexe92/lib/libgsrvrora9i92.so
sdeexe92/lib/libgsrvrora10g92.so
sdeexe92/lib/libloceng.so
sdeexe92/lib/liblocssa.so
sdeexe92/lib/libpe.so
sdeexe92/lib/libxerces-c.so.26.0
sdeexe92/lib/libicuuc.so.22.0
sdeexe92/lib/libsde.a
sdeexe92/lib/libgsrvrdb292.so
sdeexe92/lib/libsdeora9isrvr92.so
sdeexe92/lib/libsde.so
sdeexe92/lib/libicudata.so.22.0
sdeexe92/lib/libsdeora10gsrvr92.so
sdeexe92/lib/libmtchmt.so
sdeexe92/lib/libsg.a
sdeexe92/lib/libpe.a
sdeexe92/lib/jsde92_sdk.jar
sdeexe92/lib/libsdejavautil.so
sdeexe92/include/sg.h
sdeexe92/include/sderaster.h
sdeexe92/include/pedef.h
sdeexe92/include/sdeerno.h
sdeexe92/include/pef.h
sdeexe92/include/sgerr.h
sdeexe92/include/pe.h
sdeexe92/include/sdetype.h
sdeexe92/include/pe_coordsys_from_prj.h

--
 Russell McOrmond, Internet Consultant: 
 Please help us tell the Canadian Parliament to protect our property
 rights as owners of Information Technology. Sign the petition!
 http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca

 "The government, lobbied by legacy copyright holders and hardware
  manufacturers, can pry control over my camcorder, computer,
  home theatre, or portable media player from my cold dead hands!"
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Oddball mapserver/ArcSDE issue

2010-03-18 Thread Russell McOrmond


On Tue, 16 Mar 2010, Russell McOrmond wrote:

 The segmentation fault is caused by using a string which is actually null 
being returned from string functions, with the null then being used as if it 
were a string.
 See: http://trac.osgeo.org/mapserver/ticket/2988  "Check error returns from 
mapstring functions."


  Sorry to be responding to my own messages, but wanted to report on 
progress.



  I added in some additional error return checking, and put some 
suggestions into the bug listed above.


  I created some additional error reporting on what the reason for the 
iconv() failure was (see path at end of message), and now I see "An 
invalid multibyte sequence has been encountered in the input" in the 
MS_ERRORFILE.


  While it is great to have mapserver not core dumping, I am still 
wondering if anyone has ideas of where to go next.  I suspect there is 
something invalid in the data that is causing ArcSDE to send me strings 
that aren't valid UTF-16 characters.  I don't know enough about ArcSDE or 
other ESRI software to know how to validate such things.




Note: Please consider patches like the one below and/or the ones in the 
bug for future releases of mapserver.  It would be great if Mapserver 
would output error messages rather than core dump.



--- mapstring.c-orig2010-03-17 16:43:19.0 -0400
+++ mapstring.c 2010-03-18 11:54:02.0 -0400
@@ -1504,8 +1504,8 @@
 char* msConvertWideStringToUTF8 (const wchar_t* string, const char* 
encoding) {

 #ifdef USE_ICONV

-int bconvFailed = MS_TRUE;
 char* output = NULL;
+char* errormessage = NULL;
 iconv_t cd = NULL;
 size_t nStr;
 size_t nInSize;
@@ -1540,23 +1540,36 @@
pszUTF8 = output;
pwszWide = string;
nConv = iconv(cd, (char **)&pwszWide, &nInSize, &pszUTF8, 
&nOutSize);

-   if ((size_t)-1 != nConv &&  nOutSize != nBufferSize)
-   bconvFailed = MS_FALSE;
+   if ((size_t)-1 != nConv &&  nOutSize != nBufferSize) {
+switch (errno) {
+  case E2BIG:
+errormessage = "There is not sufficient room in buffer";
+break;
+  case EILSEQ:
+errormessage = "An invalid multibyte sequence has been 
encountered in the input";

+break;
+  case EINVAL:
+errormessage = "An incomplete multibyte sequence has been 
encountered in the input";

+break;
+  default:
+errormessage = "Unknown";
+break;
+}
+msSetError(MS_MISCERR, "Unable to convert string in encoding 
'%s' to UTF8: %s",

+   "msConvertWideStringToUTF8()",
+   encoding,errormessage);
+iconv_close(cd);
+msFree(output);
+return NULL;
+  }
iconv_close(cd);
 } else {
 msSetError(MS_MISCERR, "Encoding not supported by libiconv 
(%s).",

"msConvertWideStringToUTF8()",
encoding);
+   msFree(output);
 return NULL;
 }
-
-if (bconvFailed) {
-msFree(output);
-output = NULL;
-msSetError(MS_MISCERR, "Unable to convert string in encoding 
'%s' to UTF8",

-   "msConvertWideStringToUTF8()",
-   encoding);
-}
 } else {
 /* we were given a NULL wide string, nothing we can do here */
 return NULL;

--
 Russell McOrmond, Internet Consultant: 
 Please help us tell the Canadian Parliament to protect our property
 rights as owners of Information Technology. Sign the petition!
 http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca

 "The government, lobbied by legacy copyright holders and hardware
  manufacturers, can pry control over my camcorder, computer,
  home theatre, or portable media player from my cold dead hands!"
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] agg support

2010-03-18 Thread Julie Knoll
Hello,

I am using mapserver 5.4.0 on cent os and trying to enable agg support. I
tried installing the agg rpm packages and compiling mapserver with
--with-agg and --with-freetype, there were no errors but agg support was
still not available. Then I tried downloading the agg tarball from the anti
grain website and installing that. Now when configure mapserver, it says it
cannot find agg_rendering_buffer.h in /usr.  What should I do now?

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


[mapserver-users] FOSS4G 2010 - Call for Abstracts (Updated March 2010)

2010-03-18 Thread Lime, Steve D (DNR)
FOSS4G2010 Press Release

Call for Abstract (Update March 2010)

We are pleased to announce that the deadline for Abstract submissions (Regular 
Sessions and Academic Track) has been postponed to April 15th, 2010!!

*General Sessions

FOSS4G presentations are 25 minute talks, with a 5 minute question and answer 
session at the end. Presentations cover aspects of the use or development of 
open source geospatial software. Anyone can can submit a presentation proposal 
and take part in the conference as a speaker.

All submitted abstracts will be reviewed by the members of the Scientific 
Committee
http://2010.foss4g.org/scientific.php

For more information, see the FOSS4G2010 site:
http://2010.foss4g.org/presentations.php

**Important dates

Submission deadline (Abstract for the General or Regular Sessions) - Apr, 15th, 
2010

*Academic Track

The FOSS4G 2010 academic track aims to bringing together researchers, 
developers, users and practitioners carrying out research and development in 
the geospatial and the free and open source fields and willing to share 
original and recent research developments and experiences.

The academic track will act as an inventory of current research topics, but the 
major goal is to promote cooperative research between OSGeo developers and the 
academia. The academic track is the right forum to highlight the most important 
research challenges and trends in the domain, and let them became the basis for 
an informal OSGeo research agenda. It will foster interdisciplinary discussions 
in all aspects of the geospatial and free and open source domains. It will be 
organized in a way to promote networking between the participants, to initiate 
and favour discussions regarding cutting-edge technologies in the field, to 
exchange research ideas and to promote international collaboration.

**Submission guidelines

All submissions to the academic track must be original unpublished work written 
in English. Abstracts should not exceed the 300 words limit and Full Article or 
Papers should not exceed the 6000 words limit. Formatting guidelines will be 
available soon. Submitting an abstract is mandatory to get the chance to submit 
and present a full article. Submitted abstracts and papers will be thoroughly 
reviewed by the members of the International Academic Chair and refereed for 
their quality, originality and relevance.

**Important dates

Submission deadline (Abstract for the Academic Track) - Apr, 15th, 2010
Submission deadline (Full Paper for the Academic Track) - Jul, 15th, 2010

*Upcoming milestones
  * 22 Feb 2010, Registration for workshop and tutorials (In Progress!!)
  * 15 Apr 2010, Abstract submission deadline (General Sessions and Academic 
Track)
  * 15 May 2010, Presenters notified of acceptance for talks
  * 15 Jun 2010, Author/Early registration deadline
  * 15 Jul 2010 Full article submission deadline for Academic Track
  * Aug 2010, Completed program available
  * 6-7 Sep 2010, FOSS4G Workshops
  * 7-9 Sep 2010, FOSS4G Presentations and Tutorials
  * 10 Sep 2010, FOSS4G Code Sprint

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


Re: [mapserver-users] Unix and RGB - GRID in mapfile

2010-03-18 Thread Frank Warmerdam
On Thu, Mar 18, 2010 at 6:56 AM, Simone Frigerio
 wrote:
> Hi,
> I need to manage huge file raster inside mapfile. Different kind of
> compression are available and I'm trying different way. Two questions on
> topic:
> 1) ECW andJPEG200 format are supported if I use win environment.
> Transferring on Unix environment, probably a GDAL new library has to be
> written, because actually it doesn't work. Is it true?

Simone,

ECW and JPEG2000 support is available on Windows and Linux.
However, they are optional components of the library, and depending
on where you are getting your binaries they may not be included.  If
not you may need to rebuild yourself to include them and they do
depend on external libraries.

You can use "gdalinfo --format ecw" to check for a specific
driver or "gdalinfo --formats" to see a list of all supported
drivers in your build.

> 2) trying with GRID format should be interesting, especially for 1 band
> raster like DTM or DEM:
> ex.:   LAYER
> NAME "grid"
> TYPE RASTER
> DATA "GRID/1956gridc1/w001001.adf"
> ...
> END
>
> At the end no problem, it's correctly visualize. But I have a lot of RGB
> raster to manage. So I if I convert in grid the result in "data" folder is:
> folder
> folderc1
> folderc2
> folderc3
> info
> file.aux
> file.rrd
>
> Inside each folder I find w001001.adf as request to visualize. I use it and
> it works perfectly, but only with one band. How can I manage 3 bands in this
> way, to visualize correctly an RGB raster?

I am not aware of direct support for treating multiple grids
as a single dataset.  One workaround is to create a virtual
dataset referencing each of these files as a band.  If you
want to pursue that you could review the "virtual file
tutorial" at:

  http://www.gdal.org/gdal_vrttut.html

Best regards,
-- 
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Clasify 16 bits Geotiff

2010-03-18 Thread Bart van den Eijnden
Hi,

which version are you using?

see:
http://trac.osgeo.org/mapserver/ticket/3174

Best regards,
Bart

On Mar 18, 2010, at 1:55 PM, Inés García wrote:

> Hello,
>  
> I need to clasity a 16 bits raster Geotiff. I am ussing the PROCESSING 
> directive (PROCESSING "SCALE=-10,10") but it does not work.
>  
> Can MapServer classify that kind of raster file?
>  
> Thanks.
>  
>  
> LAYER
>   NAME "Factor_c_abril_1998"  
>   TYPE RASTER
>   STATUS on
>   #PROCESSING "SCALE_1=1,255" 
>   #PROCESSING "SCALE_2=1,255" 
>   #PROCESSING "SCALE_3=1,255"
>   PROCESSING "SCALE=1,255"
>   #PROCESSING "SCALE_BUCKETS=2"
>   #PROCESSING "DITHER=YES"  
>   #OFFSITE 0 0 0
> 
>   #MINSCALEDENOM 
>   #MAXSCALEDENOM 250
>   
>   DEBUG OFF
>   DUMP TRUE   
>   PROCESSING  "RASTER_QUERY_MAX_RESULT=1"
>   TEMPLATE "C:\ms4w\apps\etc\template\general\clienteweb.html"
>   DATA 
> "\\169.254.22.221share\PI_2_RIESGOS\Informacion\Elaborada\06_RIESGOS_NATURALES_TECNOLOG\01_RIESGOS_NATURALES\04_DESERTIFICACION\04_FACTOR_C\Factor_c_1998\InfGeografica\InfRaster\TIFF\FC98_ABRIL.tif"
> 
> METADATA
> 
>  "WMS_SRS"  "EPSG:3034 EPSG:3035 EPSG:4230 EPSG:4258 EPSG:4267 EPSG:4269 
> EPSG:4324 EPSG:4326 EPSG:25828 EPSG:25829 EPSG:25830 EPSG:25831 EPSG:23028 
> EPSG:23029 EPSG:23030 EPSG:23031 EPSG:32628 EPSG:32629 EPSG:32630 EPSG:32631"
>  "WMS_TITLE"   "Factor de proteccion frente a la cubierta vegetal 
> (Factor C) en Andalucía. Abril 1998"
>  "WMS_ABSTRACT""Factor de proteccion frente a la cubierta vegetal 
> (Factor C) en Andalucía. Abril 1998"
>  "WMS_FEATURE_INFO_MIME_TYPE"'text/html'
>  "wms_keywordlist" "xx"
>  "wms_extent"   "100396 3987114 621305 4288777"
>   
>   
>   wms_include_items 'all'
>   gml_include_items"all"
> 
>   gml_value_0_alias"Valor_pixel"
>   gml_x_alias  "Coordenada_X_UTM"
>   gml_y_alias  "Coordenada_Y_UTM"
>   gml_class_alias  "Clase"
>  
> END #METADATA
>  
> PROJECTION 
>  #"init=epsg:23030"  #Proyección UTM European 
> Datum 50 Huso 30 N
>"init=epsg:25830"  #Proyección UTM ETRS89 
> Huso 30 N
>  END
>  
>  CLASS
>NAME "< 100"
> EXPRESSION ('[pixel]' < '100') 
> STYLE
>   COLOR 193 247 178
> END
>   END
> CLASS
>NAME ">100"
> EXPRESSION ('[pixel]' >= '100') 
> STYLE
>   COLOR 210 232 137
> END
>  END
>  
> END #layer
>  
> ___
> 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] Multiples shapefiles, one LAYER

2010-03-18 Thread Tamas Szekeres
Carmen,

I guess you can merge multiple layers into a single layer by using the OGR
virtual format described at:
http://www.gdal.org/ogr/drv_vrt.html

Best regards,

Tamas



2010/3/18 Carmen Delia Hernández Pérez 

>  Hello!!
>
>
>
> I need help. I´m using Mapserver  and  I`ve some shapefiles of the “same
> region” but I would like only appear as a single layer. I tried with GROUP
> property but I don´t want it to appear the individual layers. Use TILEINDEX
> does not help me because they are of the same region. I don´t know if it´s
> possible to do. For example I´ve some text shapefiles with different styles
> but I would like they were activated as a single layer.
>
>
>
> Any solution?
>
>
>
>
>
> Thanks.
>
> ___
> 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


[mapserver-users] Multiples shapefiles, one LAYER

2010-03-18 Thread Carmen Delia Hernández Pérez
Hello!!

 

I need help. I´m using Mapserver  and  I`ve some shapefiles of the "same 
region" but I would like only appear as a single layer. I tried with GROUP 
property but I don´t want it to appear the individual layers. Use TILEINDEX 
does not help me because they are of the same region. I don´t know if it´s 
possible to do. For example I´ve some text shapefiles with different styles but 
I would like they were activated as a single layer.

 

Any solution? 

 

 

Thanks.

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


Re: [mapserver-users] Clasify 16 bits Geotiff

2010-03-18 Thread Frank Warmerdam
 Inés,

I see that you have two classes for values greater and less than
100.  This is fine, but if you set processing directive for scale
to -10 to 10 then the classifier is unable to distinguish between
values that are greater than 100 and less than 100. That is because
the scaling is done before the classification.  So if you want to
control the scaling it should be based on what you need for
the classification.

If all you need to do is differentiate between <100 and >100
you could just use SCALE=-900,1100 and set NUM_BUCKETS to
some small even number.

Best regards,

On Thu, Mar 18, 2010 at 8:55 AM, Inés García  wrote:
> Hello,
>
> I need to clasity a 16 bits raster Geotiff. I am ussing the PROCESSING
> directive (PROCESSING "SCALE=-10,10") but it does not work.
>
> Can MapServer classify that kind of raster file?

>  CLASS
>    NAME "< 100"
>     EXPRESSION ('[pixel]' < '100')
>     STYLE
>   COLOR 193 247 178
>     END
>   END
> CLASS
>    NAME ">100"
>     EXPRESSION ('[pixel]' >= '100')
>     STYLE
>   COLOR 210 232 137
>     END
>  END


-- 
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Google Mercator and +nadgri...@null

2010-03-18 Thread Frank Warmerdam
Jukka,

I believe the definition on spatialreference.org is out of date.  Recently
3785 generation was corrected for PROJ.4.

Best regards,

On Thu, Mar 18, 2010 at 5:27 AM, Rahkonen Jukka
 wrote:
> Hi,
>
> I have in my epsg file the following line for Google Mercator
> projection:
>
> <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0
> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null +no_defs
>
> I have copied the definitions from somewhere, I do not remember where.
> Now I noticed that http://spatialreference.org/ref/epsg/3785/proj4/
> gives this proj4 string:
>
> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137
> +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
>
> There seems to be one difference: my line has +nadgri...@null while the
> Spatialreference one has +towgs84=0,0,0,0,0,0,0 instead. Do they mean
> just the same thing?
>
> -Jukka Rahkonen-
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapserver Templates

2010-03-18 Thread Andrew Lewin

Hi All,

Are there any templates available for MapServer?

Thanks,

Andrew

Andrew Lewin, M.Sc., Adv. Dipl. GIS
President
Spatial-Conserve Inc.
www.spatialconserve.com
Email: ale...@spatialconserve.com
Tel: (905) 639-4646
Mobile: (905) 630-8441
Skype: andrew.lewin99




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


Re: [mapserver-users] Google Mercator and +nadgri...@null

2010-03-18 Thread Rahkonen Jukka
Hi,

I saw from the thread that they are not the same. This is sad because I
have seen during just a few last days on various mailing lists and
forums that many people are now using and advising others to use the
strings from Spatialreference.org.  If I understood right, this will
lead to large offset. 

-Jukka-
 
GTsui Gerry wrote:

 
> in case you didn't see this Frank Warmerdam already addressed 
> this here:
> 
> http://n2.nabble.com/Difference-between-nadgrids-null-and-towg
> s84-0-0-0-
> td4543036.html
> 
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen
> Jukka
> Sent: Thursday, March 18, 2010 5:27 AM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] Google Mercator and +nadgri...@null
> 
> Hi,
> 
> I have in my epsg file the following line for Google Mercator
> projection:
> 
> <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0
> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null +no_defs
> 
> I have copied the definitions from somewhere, I do not remember where.
> Now I noticed that http://spatialreference.org/ref/epsg/3785/proj4/
> gives this proj4 string:
> 
> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137
> +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 
> 
> There seems to be one difference: my line has +nadgri...@null 
> while the
> Spatialreference one has +towgs84=0,0,0,0,0,0,0 instead. Do they mean
> just the same thing?
> 
> -Jukka Rahkonen-
> ___
> 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


[mapserver-users] keyimage / getlegendgraphic

2010-03-18 Thread Jörg Thomsen

hello,

since an update from mapserver 4.x to 5.6 we have a problem with the 
keyimage of rasterlayers. The keyimage is unusually large, but with the 
old version it worked.


the original imagine is 451*1949 px
the keysize in the mapfile is given with

KEYSIZE 450 1950


The image wich is now delivered has a size of 472*1960px, most of this 
picture is white canvas, the original graphic is very small and placed 
at the lower left corner.


Ad suggestions?

Regards, Jörg


--
~~~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-akademie.de/
~~~

_

MapMedia
Kartographie und raumbezogene Informationssysteme

Gillweg 3, 14193 Berlin
fon: +49 30 89 06 82-70
fax: +49 30 89 09 53-21
mail: j...@mapmedia.de
net:  www.mapmedia.de
_



Geschäftsführer: G. v. Tschirnhaus, J. Thomsen, P. Stamm
Registergericht, Berlin - Amtsgericht Charlottenburg,
HRB 89625, Umsatzsteuer-Identnummer: DE 813794062
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Clasify 16 bits Geotiff

2010-03-18 Thread Inés García
Hello,

I need to clasity a 16 bits raster Geotiff. I am ussing the PROCESSING
directive (PROCESSING "SCALE=-10,10") but it does not work.

Can MapServer classify that kind of raster file?

Thanks.


LAYER
  NAME "Factor_c_abril_1998"
  TYPE RASTER
  STATUS on
  #PROCESSING "SCALE_1=1,255"
  #PROCESSING "SCALE_2=1,255"
  #PROCESSING "SCALE_3=1,255"
  PROCESSING "SCALE=1,255"
  #PROCESSING "SCALE_BUCKETS=2"
  #PROCESSING "DITHER=YES"
  #OFFSITE 0 0 0

  #MINSCALEDENOM
  #MAXSCALEDENOM 250

  DEBUG OFF
  DUMP TRUE
  PROCESSING  "RASTER_QUERY_MAX_RESULT=1"
  TEMPLATE "C:\ms4w\apps\etc\template\general\clienteweb.html"
  DATA "
\\169.254.22.221share\PI_2_RIESGOS\Informacion\Elaborada\06_RIESGOS_NATURALES_TECNOLOG\01_RIESGOS_NATURALES\04_DESERTIFICACION\04_FACTOR_C\Factor_c_1998\InfGeografica\InfRaster\TIFF\FC98_ABRIL.tif
"

METADATA

 "WMS_SRS"  "EPSG:3034 EPSG:3035 EPSG:4230 EPSG:4258 EPSG:4267 EPSG:4269
EPSG:4324 EPSG:4326 EPSG:25828 EPSG:25829 EPSG:25830 EPSG:25831 EPSG:23028
EPSG:23029 EPSG:23030 EPSG:23031 EPSG:32628 EPSG:32629 EPSG:32630
EPSG:32631"
 "WMS_TITLE"   "Factor de proteccion frente a la cubierta
vegetal (Factor C) en Andalucía. Abril 1998"
 "WMS_ABSTRACT""Factor de proteccion frente a la cubierta
vegetal (Factor C) en Andalucía. Abril 1998"
 "WMS_FEATURE_INFO_MIME_TYPE"'text/html'
 "wms_keywordlist" "xx"
 "wms_extent"   "100396 3987114 621305 4288777"


  wms_include_items 'all'
  gml_include_items"all"

  gml_value_0_alias"Valor_pixel"
  gml_x_alias  "Coordenada_X_UTM"
  gml_y_alias  "Coordenada_Y_UTM"
  gml_class_alias  "Clase"

END #METADATA

PROJECTION
 #"init=epsg:23030"  #Proyección UTM
European Datum 50 Huso 30 N
   "init=epsg:25830"  #Proyección UTM ETRS89
Huso 30 N
 END

 CLASS
   NAME "< 100"
EXPRESSION ('[pixel]' < '100')
STYLE
  COLOR 193 247 178
END
  END
CLASS
   NAME ">100"
EXPRESSION ('[pixel]' >= '100')
STYLE
  COLOR 210 232 137
END
 END

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


[mapserver-users] can not compile arcsde 9.3 with mapserver 5.4

2010-03-18 Thread Jachym Cepicky
Hi,

I'm not able to get arcsde 9.3.0 compiled with mapserver (5.4), on Linux

I use

./configure --with-sde=/opt/arcsde/9.3.0/sdeexe93/ --with-sde-version=''


the arcsde installation directory containes (among others) file

...
libsde.so
..

nut not "*.a" file or "*.h" files

however, I get

configure: error: "Could not find sdetype.h or libsde.a/libsde.so in
/opt/arcsde/9.3.0/sdeexe93/."

Any hint?

Thanks

Jachym
-- 
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WFS limit time interval to POSTGIS

2010-03-18 Thread Heiko Schröter
Hello,

by setting up a WFS server i need to limit the time interval for the requests 
to the postgis db (Millions of data points inside POSTGIS).
The WMS part with time interval requests is working and i'am trying to make 
these data available through WFS as well.

What i can find in the docs is a FILTER with a WFS Client connecting a WFS 
server.
But this seems not to apply for DATE interval calculus.

The only thing i get in the moment is the whole data set at once or the first 
NUMBER (here 10) of entries.

Is it possible at all to limit the requested time interval to a WFS server ?
i.e. something like TIME=2007-1-2/2007-1-3


Thanks and Regards
Heiko


LAYER
EXTENT -180 -90 180 90
CONNECTIONTYPE POSTGIS
NAME "TEST"
PROCESSING "CLOSE_CONNECTION=DEFER"
OPACITY 60
STATUS ON
DUMP TRUE
METADATA
"wfs_title" "test"
"wfs_maxfeatures" "10"
"gml_featureid" "ID" ## REQUIRED
"gml_include_items" "all" ## Optional (serves all 
attributes for layer)
"gml_geometries" "rechteck"
"gml_rechteck_type" "polygon"
END
PROJECTION
"init=epsg:4326"
END
CONNECTION "user={BF961C25A57BA226} password={C9748CA35D48D049} 
dbname={6B40E65B12B92106} host=localhost"
DATA "rechteck from test_data using srid=-1 using unique datum"
TYPE POLYGON
SIZEUNITS meters
CLASS
NAME "test_class"
STYLE
OUTLINECOLOR 0 0 0
COLOR [farbe]
END
END
END # Layer
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Unix and RGB - GRID in mapfile

2010-03-18 Thread Simone Frigerio

Hi,
I need to manage huge file raster inside mapfile. Different kind of 
compression are available and I'm trying different way. Two questions on 
topic:
1) ECW andJPEG200 format are supported if I use win environment. 
Transferring on Unix environment, probably a GDAL new library has to be 
written, because actually it doesn't work. Is it true?
2) trying with GRID format should be interesting, especially for 1 band 
raster like DTM or DEM:

ex.:   LAYER
NAME "grid"
TYPE RASTER
DATA "GRID/1956gridc1/w001001.adf"
...
END

At the end no problem, it's correctly visualize. But I have a lot of RGB 
raster to manage. So I if I convert in grid the result in "data" folder is:

folder
folderc1
folderc2
folderc3
info
file.aux
file.rrd

Inside each folder I find w001001.adf as request to visualize. I use it 
and it works perfectly, but only with one band. How can I manage 3 bands 
in this way, to visualize correctly an RGB raster?


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


[mapserver-users] MS4W

2010-03-18 Thread Sven Schroeter

Hi,
the actual MS4W is v3.0 Beta 10 (Jan 27, 2010)
Is there planned a  new stable relaese in the near future?
thanks
Sven


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


[mapserver-users] Google Mercator and +nadgri...@null

2010-03-18 Thread Rahkonen Jukka
Hi,

I have in my epsg file the following line for Google Mercator
projection:

<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0
+x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null +no_defs

I have copied the definitions from somewhere, I do not remember where.
Now I noticed that http://spatialreference.org/ref/epsg/3785/proj4/
gives this proj4 string:

+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs 

There seems to be one difference: my line has +nadgri...@null while the
Spatialreference one has +towgs84=0,0,0,0,0,0,0 instead. Do they mean
just the same thing?

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


Re: [mapserver-users] MapServer, OpenStreetMap, OpenLayers + Reprojection from Latlong to Mercator: a real nightmare

2010-03-18 Thread thomas bonfort
the projection blocks in your layer should be the projection of the
actual data, i.e. 4326 if you've run osm2pgsql with the -l switch. it
should *not*  be 3785 as you have put it.

--
thomas

On Wed, Mar 17, 2010 at 22:39, Mulone  wrote:
>
> (apologies for cross-posting)
>
> Hi everybody,
>
> I'm trying to render openstreetmap data on a WMS on MapServer and I posted
> something already about this. Now it's time to summarise everything and make
> some sense of this.
>
> The system used to work with epsg:4326 (LATLONG from now on) but in our
> project we need a GoogleMaps like projection and we chose
> epsg:900913/epsg:3785 (MERC from now on).
> This is our problem.
> We need the image on the right but we're getting the one on the left, a
> flattened map:
> http://img7.imageshack.us/img7/8279/imagelw.png
>
> After a lot of work and unsucceful tests I post here the outcome, hoping
> that it will be helpful to the community - and to us :-)
>
> These are the steps I followed from the very start:
>
> 1) download osm xml file from Cloudmade (e.g. Italy.osm.bz2)
> 2) Run 900913.sql on my PostGIS (optional, it shouldn't matter).
> 3) import that file into PostGIS with command (latlong option selected):
>
> ./osm2pgsql -U userid -W -H host -d maps -p myprefix -S default.style -c -l
> italy.osm.bz2
>
> 4) At this point everything seems ok. The geometry columns have latlong as
> SRID and the tables contain geometries.
> It's possible to visualise this dataset with uDig or other tools and
> reproject it.
>
> 5) Now we want to render this stuff on MapServer. So we add the espg configs
> from
>  http://spatialreference.org/ref/epsg/3785/ to our mapserver espg file:
>
> <900913> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137
> +towgs84=0,0,0,0,0,0,0 +units=m +no_defs <>
> <3785> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137
> +towgs84=0,0,0,0,0,0,0 +units=m +no_defs <>
>
> 6) define this minimal mapfile with one layer:
> http://virtualpaste.com/82467
>
> 7) run several tests with different projections and annotate the outcome.
>
> Have a look at the report:
> http://docs.google.com/View?id=dftx6j46_166d6r38pcs
>
> Does anybody have any idea about how we could tackle this issue?
> I don't know if the problem is arising from MapServer or OpenLayers, so
> maybe you can help me design a better test to narrow the problem down.
>
> I presume a lot of people are doing something similar to us, so others might
> come across this issue.
>
> Cheers,
> Mulone
>
> -
> Mulone
> PhD student
> --
> View this message in context: 
> http://n2.nabble.com/MapServer-OpenStreetMap-OpenLayers-Reprojection-from-Latlong-to-Mercator-a-real-nightmare-tp4753197p4753197.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> ___
> 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] WMS GetFeatureInfo

2010-03-18 Thread Rahkonen Jukka
Hi,

I fear you are in trouble.  WMS standard tells how to send
GetFeatureInfo request and that a server must send the list of supported
formats in the GetCapabilities document. No format is compulsory and
therefore all the the WMS servers are behaving in a different way. The
only interoperability I have found this far is between Mapserver and
deegree WMS. They both send rather similar response to
INFO_FORMAT=application/vnd.ogc.gml. However even with these two there
is some difference in behaviour. If INFO_FORMAT parameter is left out
Mapserver default is text/plain but deegree default is
application/vnd.ogc.gml. And Mapserver does not produce gml at all by
default but the WMS manager must especially make each layer to support
gml output.  On the other hand with Mapserver there is good control over
the attributes included in the GetFeatureInfo but at least Geoserver
sends always all the attributes. Very messy situation. Clients
supporting GetFeatureInfo are not especially clever either. They do not
offer a possibility to select the info format nor featureCount(uDig,
QGis, OpenJUMP with deeJump plugin).  OpenJUMP-deeJUMP use featurecount
of 1000 while uDig and QGis do not use featurecount at all, which means
featurecount=1 and users can't get usable information about overlapping
areas, for example.

I have not studied GetFeatureInfo behaviour actively lately and my
knowledge may be partly outdated.

WFS would work in a more standard way but usually WMS services do not
have a parallel WFS service running.


-Jukka Rahkonen-

Pavel Iacovlev wrote:

> 
> Good day all,
> 
> I am looking for a standard way to query multiple WMS servers and
> merge the results. Example: query a random mapserver and geoserver (or
> any other server) and merge their results.
> I created wms client layer in phpmapscript and it worked perfectly,
> after that I tried "int queryByPoint(pointObj point, int mode, double
> buffer)" but it does nothing, no wms request is sent to the server,
> does mapserver support query by point on a wms layer ?
> After that did not work I tried to create a hack in php. INFO_FORMAT
> text/html and text/plain are not suitable for this job because "I need
> to extract the layers and attributes" in order to merge, so I tried
> "application/vnd.ogc.gml" and I encountered the following problems:
> 1) ArcGIS does not support it
> 2) If one of the layers is raster it returns an exception in 
> Geoserver (bug)
> 3) Mapserver and Geoserver return different results, Mapserver is more
> like a plain GML, GeoServer uses WFS schema or something (not an
> XML,GML guru)
> 
> Should a "standard" prevent this kind of issues ? can anyone suggest a
> better solution ?
> 
> -- 
> http://iap.md, The future is open
> ___
> 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] MapServer, OpenStreetMap, OpenLayers + Reprojection from Latlong to Mercator: a real nightmare

2010-03-18 Thread Clément MONIER
Hi Mulone,

We're using the 2 same projection systems to build the service you might see at 
www.v-trafic.com

It's working but with no use of OpenLayers to perform the overlay and no 
PostGIS database (shapefile instead with WGS84 long/lat coordinates, epsg:4326).

So if your problem comes from either OpenLayers or PostGIS, the following 
description won't help you anyway.

The layers are requested with a WMS-formatted url with CRS=EPSG:3785 and BBOX 
in meters.

Here is the content of epsg nad file (Proj4 lib) :
# WGS 84
<4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs  <>
# Web Spherical Mercator
<3785> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 
+towgs84=0,0,0,0,0,0,0 +units=m no_defs


Mapfile content :
(Header "MAP" section)
...
PROJECTION
   "init=epsg:3785"
END
...
(Layer section)
...
PROJECTION
   "init=epsg:4326"
END
...

I'm quite sure all these basic things won't probably help you but it's worth 
trying.

Regards

Clement

-Message d'origine-
De : mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] De la part de Mulone
Envoyé : mercredi 17 mars 2010 22:40
À : mapserver-users@lists.osgeo.org
Objet : [mapserver-users] MapServer, OpenStreetMap, OpenLayers + Reprojection 
from Latlong to Mercator: a real nightmare


(apologies for cross-posting)

Hi everybody,

I'm trying to render openstreetmap data on a WMS on MapServer and I posted
something already about this. Now it's time to summarise everything and make
some sense of this.

The system used to work with epsg:4326 (LATLONG from now on) but in our
project we need a GoogleMaps like projection and we chose
epsg:900913/epsg:3785 (MERC from now on).
This is our problem.
We need the image on the right but we're getting the one on the left, a
flattened map: 
http://img7.imageshack.us/img7/8279/imagelw.png

After a lot of work and unsucceful tests I post here the outcome, hoping
that it will be helpful to the community - and to us :-)

These are the steps I followed from the very start:

1) download osm xml file from Cloudmade (e.g. Italy.osm.bz2)
2) Run 900913.sql on my PostGIS (optional, it shouldn't matter).
3) import that file into PostGIS with command (latlong option selected):

./osm2pgsql -U userid -W -H host -d maps -p myprefix -S default.style -c -l
italy.osm.bz2

4) At this point everything seems ok. The geometry columns have latlong as
SRID and the tables contain geometries.
It's possible to visualise this dataset with uDig or other tools and
reproject it.

5) Now we want to render this stuff on MapServer. So we add the espg configs
from
 http://spatialreference.org/ref/epsg/3785/ to our mapserver espg file:

<900913> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs <>
<3785> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs <>

6) define this minimal mapfile with one layer: 
http://virtualpaste.com/82467

7) run several tests with different projections and annotate the outcome.

Have a look at the report: 
http://docs.google.com/View?id=dftx6j46_166d6r38pcs

Does anybody have any idea about how we could tackle this issue?
I don't know if the problem is arising from MapServer or OpenLayers, so
maybe you can help me design a better test to narrow the problem down.

I presume a lot of people are doing something similar to us, so others might
come across this issue.

Cheers,
Mulone

-
Mulone
PhD student
-- 
View this message in context: 
http://n2.nabble.com/MapServer-OpenStreetMap-OpenLayers-Reprojection-from-Latlong-to-Mercator-a-real-nightmare-tp4753197p4753197.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
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


[mapserver-users] WMS GetFeatureInfo

2010-03-18 Thread Pavel Iacovlev
Good day all,

I am looking for a standard way to query multiple WMS servers and
merge the results. Example: query a random mapserver and geoserver (or
any other server) and merge their results.
I created wms client layer in phpmapscript and it worked perfectly,
after that I tried "int queryByPoint(pointObj point, int mode, double
buffer)" but it does nothing, no wms request is sent to the server,
does mapserver support query by point on a wms layer ?
After that did not work I tried to create a hack in php. INFO_FORMAT
text/html and text/plain are not suitable for this job because "I need
to extract the layers and attributes" in order to merge, so I tried
"application/vnd.ogc.gml" and I encountered the following problems:
1) ArcGIS does not support it
2) If one of the layers is raster it returns an exception in Geoserver (bug)
3) Mapserver and Geoserver return different results, Mapserver is more
like a plain GML, GeoServer uses WFS schema or something (not an
XML,GML guru)

Should a "standard" prevent this kind of issues ? can anyone suggest a
better solution ?

-- 
http://iap.md, The future is open
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] wms with gernerated Layers

2010-03-18 Thread Thomasch

Hi,
at first thanks for your hint - I'm now trying to write a simple wrapper 
in PHP Mapscript But the follwoing simple Code doesn't work.
Unfortunately the example in 
http://www.mapserver.org/ogc/wms_server.html is in Python.


loadParams();
$myMap->owsdispatch($req);

?>

The plain Call of GetCapabilities like 
http://myserver/cgi-bin/mapserv?map=/home/thomas/public_html/wms/maps/wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities 
works fine.



Thomasch

Am 17.03.2010 03:01, Jeff McKenna wrote:

Thomasch wrote:

Hi,
I've got an map which contains some generated Layers using PHP
Mapscript. How do I serve these Layers as wms?

I read http://mapserver.org/ogc/mapscript.html but I don't really
understand at which place i could modify the map itself.



Hi Thomasch,

For instructions on how to serve your mapfile through WMS, please see
the WMS Server document: http://www.mapserver.org/ogc/wms_server.html

The example in that document is probably most helpful:
http://www.mapserver.org/ogc/wms_server.html#sample-wms-server-mapfile

I hope this gets you going in the right direction.

-jeff





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