[mapserver-users] WMS Client does not recognize "wms_extent"

2010-04-14 Thread Heiko Schröter
Hello,

mapserver seems not to take "wms_extent" into account when receiving raster 
images via WMS.
According to the docs this tag should take precedence over all others.

Case 1, SRC Projection = DST Projection :
a) Images are displayed correctly when read via DATA statement. 
msResampleGDALToMap() called.
b) Images are displayed incorrectly when read via WMS. wld_file does not 
matter. msDrawRasterLayerGDAL() called. Calling msResampleGDALToMap() instead 
fixes this.

Case 2, SRC Projection != DST Projection
a) Images are displayed correctly when read via DATA statement. 
msResampleGDALToMap() called.
b) Images are displayed incorrectly when read via WMS. wld_file does matter. 
msResampleGDALToMap() called. "wms_extent" not recognized and does not take 
precedence. Bug(?) in msGetGDALGeoTransform().
Force Removing the wld_file in mapwmslayer.c in function msDrawWMSLayerLow() 
before msDrawLayer() is called, forces same proceeding as with images read via 
DATA statement and fixes it.


Else something is broken in the processing logic of the WMS (client) handling 
or i'am doing something completely wrong (and stupid).

Thanks and Regards
Heiko


/var/www/localhost/mapserver/mapserv -v
MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER 
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


The image recieved via WMS is the same as the in the DATA statment.
LAYER
EXTENT -180 -90 180 90
NAME "GRID_TEST"
OPACITY 60
STATUS ON
DEBUG ON
METADATA
"wms_timeextent" "1970-01-01/2030-12-31"
"wms_timeitem" "datum" #column in postgis table of type 
timestamp
"wms_timedefault" "2007-12-10/2007-12-11"
"wms_title" "grid_test"
"wms_name" "grid_test"
"wms_format" "image/png"
"wms_server_version" "1.1.1"
"wms_srs" "EPSG:4326"
"wms_extent" "-180 -90 180 90"
END
PROJECTION
"init=epsg:4326"
END
CONNECTION "http://mailserv2/cgi-bin/grid_test.pl?";
CONNECTIONTYPE WMS
#   DATA "/var/www/localhost/htdocs/grafik/wackelkontakt.png"
TYPE RASTER
END # Layer



LAYER
EXTENT -180 -90 180 90
NAME "GRID_TEST1"
OPACITY 60
STATUS ON
DEBUG ON
METADATA
"wms_timeextent" "1970-01-01/2030-12-31"
"wms_timeitem" "datum" #column in postgis table of type 
timestamp
"wms_timedefault" "2007-12-10/2007-12-11"
"wms_title" "grid_test1"
"wms_name" "grid_test1"
"wms_format" "image/png"
"wms_server_version" "1.1.1"
"wms_srs" "EPSG:4326"
"wms_extent" "-180 -90 180 90"
END
PROJECTION
"init=epsg:4326"
END
#   CONNECTION "http://mailserv2/cgi-bin/grid_test.pl?";
#   CONNECTIONTYPE WMS
DATA "/var/www/localhost/htdocs/grafik/wackelkontakt.png"
TYPE RASTER
END # Layer
___
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-04-14 Thread Jachym Cepicky
Hi,
I have the SDK, I installed it using "install -load" script

when I try to compile mapserver 5.4.2,  configure works,

./configure [...]
  --with-sde="/opt/arcsde/sdeexe93/" \
  --with-sde-version=93 \
   [...]


but whild compilating, I get

[...]
usr/lib64 -lagg -laggfontfreetype  -ltiff -ljpeg -lfreetype -lpng -lz
-lXpm -lX11  -lproj -ljpeg -lpng -L/opt/arcsde/sdeexe93//lib -lsde
-lpe -lsg -lpthread -ldl -lgdal   -L/usr/lib64 -lpq -rdynamic
-L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64
-lssl -lcrypto -lmysqlclient -L/usr/kerberos/lib64 -lcurl -ldl
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz
-L/usr/lib64 -lgeos_c -lpthread -lc  -lz -lxml2 -lz -lm -lfribidi
-lm -lstdc++   -o shp2img
/usr/bin/ld: skipping incompatible /opt/arcsde/sdeexe93//lib/libsde.so
when searching for -lsde
/usr/bin/ld: skipping incompatible /opt/arcsde/sdeexe93//lib/libsde.a
when searching for -lsde
/usr/bin/ld: cannot find -lsde
collect2: ld returned 1 exit status

any hint?

thanks

jachym


Dne 12. dubna 2010 8:00 Jachym Cepicky  napsal(a):
> Hi,
>
> slowly, I'm approaching. Our customer had to write to out local service
> provider of ESRI and they had to write to ESRI and request for the
> header files (I can not find the page, where it was written, but the
> header files should just arrive from U.S. here).
>
> So, now I "should" be able to compile
>
> Thanks
>
> Jachym
>
> Lime, Steve D (DNR) píše v St 07. 04. 2010 v 16:40 -0500:
>> Don't know if success was had or not. The standard 9.3 disks I had access to 
>> did not have the headers available. Must need some super secret handshake to 
>> get them. Anyway, I just copied the 9.2 headers into the same spot in the 
>> 9.3 directories  and it works just fine. Don't know that I'd recommend that 
>> approach in lieu of learning the super secret handshake but it worked here 
>> in a pinch...
>>
>> Steve
>>
>> -Original Message-
>> From: mapserver-users-boun...@lists.osgeo.org 
>> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Huey Brantley
>> Sent: Thursday, March 18, 2010 10:44 PM
>> To: Jachym Cepicky
>> Cc: mapserver-users@lists.osgeo.org
>> Subject: Re: [mapserver-users] can not compile arcsde 9.3 with mapserver 5.4
>>
>> 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
>
>
> --
> Jachym Cepicky
> e-mail: jachym.cepicky gmail com
> URL: http://les-ejk.cz
> PGP Public key: http://les-ejk.cz/pgp/JachymCepicky.pgp
>



-- 
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] Weird multi-line label

2010-04-14 Thread Jackey Cheung
Hi all,

I am playing around with labels and meet weird situations.

Here's the class I use to generate the attached image

PROJECTION
"init=epsg:4326"
END

LABELITEM "name"

CLASS
MINSCALEDENOM 1
# STYLE
# COLOR 40 160 20
# END

LABEL
ANGLE [angle]
PRIORITY [priority]
ENCODING "UTF-8"
COLOR 0 0 0
OUTLINECOLOR 255 255 255
TYPE TRUETYPE
FONT "msyh"
SIZE 8
POSITION AUTO
PARTIALS FALSE
MINFEATURESIZE 20
ALIGN CENTER
MAXLENGTH -4
END
END


I was expecting every label to be wrapped at the 4th character. However only
those in green circles are wrapped, while others are not. Do I get something
wrong?


P.S. I've try using WRAP "" and WRAP " ", but got the same image.
<>___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Weird multi-line label

2010-04-14 Thread thomas bonfort
are you sure they come from the same class/layer ?
try changing the label color to make sure

regards,
thomas

On Wed, Apr 14, 2010 at 11:02, Jackey Cheung  wrote:
> Hi all,
> I am playing around with labels and meet weird situations.
> Here's the class I use to generate the attached image
> PROJECTION
> "init=epsg:4326"
> END
> LABELITEM "name"
> CLASS
> MINSCALEDENOM 1
> # STYLE
> # COLOR 40 160 20
> # END
> LABEL
> ANGLE [angle]
> PRIORITY [priority]
> ENCODING "UTF-8"
> COLOR 0 0 0
> OUTLINECOLOR 255 255 255
> TYPE TRUETYPE
> FONT "msyh"
> SIZE 8
> POSITION AUTO
> PARTIALS FALSE
> MINFEATURESIZE 20
> ALIGN CENTER
> MAXLENGTH -4
> END
> END
>
> I was expecting every label to be wrapped at the 4th character. However only
> those in green circles are wrapped, while others are not. Do I get something
> wrong?
>
> P.S. I've try using WRAP "" and WRAP " ", but got the same image.
> ___
> 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] Strange Behaviour with getFeature using POST method and more than one typename

2010-04-14 Thread David Alda Fernandez de Lezea
Assefa,

> From the url you sent, you seem to  be on a windows machine, is that
correct?
Yes, I'm currently on a windows machine. I've got ms4w package (MS4W
Base Installer v2.3.1 (Dec 2, 2008) to be precise)

>  I am trying to see if it is possible to provide you binaries
with the patch. I can provide this service for a fee myself or though an
associate.

Does this mean that I have to pay to get the binaries with the patch?

We are planning to to get this working in production level, so it would
be desirable to have a stable version of MapServer. What would you
recommend as best (not too much complicated and short in time) solution?

Thanks.


-Mensaje original-
De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Enviado el: martes, 13 de abril de 2010 18:42
Para: David Alda Fernandez de Lezea
Asunto: Re: [mapserver-users] Strange Behaviour with getFeature using
POSTmethod and more than one typename

David Alda Fernandez de Lezea wrote:
> Assefa,
>
> Thanks one more time. I hope this will be a strong reason to migrate 
> to the latest version. Until that happens, I don't know really how I 
> have to proceed to update my mapserver version with this patch. Should

> I re-compile the application?? How should I proceed??
>
>   
 Yes you need to recompile or get binaries that has the patch.  From the
url you sent, you seem to  be on a windows machine, is that correct? If
that is the case, where did you get your binaries (ms4w, other 
sources)?   I am trying to see if it is possible to provide you binaries

with the patch. I can provide this service for a fee myself or though an
associate.

Let me know.

best regards,



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


[mapserver-users] How to display WGS84 map in ka-map applicaiton?

2010-04-14 Thread devmail
Hi, I am new to mapserver. 
 
I have a mapinfo data file(.tab) in WGS84. After using QGIS export .map file 
and change layer connect parameter in .map file, I successfully display map 
using following url. 
 
 http://127.0.0.1:8080/cgi-bin/mapserv.exe?MAP=F:/ms4w/apps/testmap/htdocs/testmap.map&SERVICE=WMS&LAYERS=ALL&MODE=MAP
 
I edit config.php in ka-map application, it can not be displayed 
correctly.  And I convert the mapinfo .tab file into shape file, it failed 
too.
 
It seems that ka-map uses non-earth projection .  How to display WGS84 
data in ka-map? Modify ka-map source code? Or some parameter setup can do?
 
 
Thanks.
 
 
Following is the .map for shapefile generated by QGIS
 
 
# Map file created from QGIS project file F:/Program Files/Quantum GIS 
Enceladus/myproj/shandong.qgs
# Edit this file to customize for your map interface
# (Created with PyQgis MapServer Export plugin)
MAP
  NAME "testmap"
  # Map image size
  SIZE 500 500
  UNITS meters
    EXTENT -33.774149 16.403951 71.578722 97.850893
  FONTSET '../etc/fonts.txt'
  SYMBOLSET '../etc/symbols.txt'
  PROJECTION
    'proj=longlat'
    'ellps=WGS84'
    'datum=WGS84'
    'no_defs'
  END
  # Background color for the map canvas -- change as desired
  IMAGECOLOR 255 255 255
  IMAGEQUALITY 95
  IMAGETYPE png
  OUTPUTFORMAT
    NAME png
    DRIVER 'GD/PNG'
    MIMETYPE 'image/png'
    IMAGEMODE RGBA
    EXTENSION 'png'
  END
  # Legend
  LEGEND
  IMAGECOLOR 255 255 255
    STATUS ON
    KEYSIZE 18 12
    LABEL
  TYPE BITMAP
  SIZE MEDIUM
  COLOR 0 0 89
    END
  END
  # Web interface definition. Only the template parameter
  # is required to display a map. See MapServer documentation
  WEB
    # Set IMAGEPATH to the path where MapServer should
    # write its output.
    IMAGEPATH '/tmp/'
    # Set IMAGEURL to the url that points to IMAGEPATH
    # as defined in your web server configuration
    IMAGEURL '/tmp/'
    # WMS server settings
    METADATA
  
'ows_title'   
'testmap'
  'ows_onlineresource'  
'http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=F:/ms4w/apps/testmap/htdocs/testmap.map'
  
'ows_srs'
 'EPSG:4326'
    END
    #Scale range at which web interface will operate
    # Template and header/footer settings
    # Only the template parameter is required to display a map. 
See MapServer documentation
    TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
  END
  LAYER
    NAME 'test'
    TYPE POLYGON
    DUMP true
    TEMPLATE fooOnlyForWMSGetFeatureInfo
    EXTENT -33.774149 16.403951 71.578722 97.850893
    DATA 'F:/ms4w/apps/testmap/htdocs/testmap.shp|layerid=0'
    METADATA
  'ows_title' 'test'
    END
    STATUS ON
    TRANSPARENCY 100
    PROJECTION
    'proj=longlat'
    'ellps=WGS84'
    'datum=WGS84'
    'no_defs'
    END
    CLASS
   NAME 'test' 
   STYLE
 SYMBOL 0 
 SIZE 7.0 
 OUTLINECOLOR 0 0 0
 COLOR 4 24 93
   END
    END
  END
END___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] How to display WGS84 map in ka-map applicaiton?

2010-04-14 Thread devmail
I have a mapinfo data file(.tab) in WGS84. After using QGIS export .map file 
and change layer connect parameter in .map file, I successfully display map 
using following url. 

http://127.0.0.1:8080/cgi-bin/mapserv.exe?MAP=F:/ms4w/apps/testmap/htdocs/testmap.map&SERVICE=WMS&LAYERS=ALL&MODE=MAP

I edit config.php in ka-map application, it can not be displayed correctly.  
And I convert the mapinfo .tab file into shape file, it failed too.

It seems that ka-map uses non-earth projection .  How to display WGS84 data in 
ka-map? Modify ka-map source code? Or some parameter setup can do?

Thanks.

Following is the .map for shapefile generated by QGIS

 # Map file created from QGIS project file F:/Program Files/Quantum GIS 
Enceladus/myproj/shandong.qgs
# Edit this file to customize for your map interface
# (Created with PyQgis MapServer Export plugin)
MAP
  NAME "testmap"
  # Map image size
  SIZE 500 500
  UNITS meters

EXTENT -33.774149 16.403951 71.578722 97.850893
  FONTSET '../etc/fonts.txt'
  SYMBOLSET '../etc/symbols.txt'
  PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
  END

  # Background color for the map canvas -- change as desired
  IMAGECOLOR 255 255 255
  IMAGEQUALITY 95
  IMAGETYPE png

  OUTPUTFORMAT
NAME png
DRIVER 'GD/PNG'
MIMETYPE 'image/png'
IMAGEMODE RGBA
EXTENSION 'png'
  END
  # Legend
  LEGEND
  IMAGECOLOR 255 255 255
STATUS ON
KEYSIZE 18 12
LABEL
  TYPE BITMAP
  SIZE MEDIUM
  COLOR 0 0 89
END
  END

  # Web interface definition. Only the template parameter
  # is required to display a map. See MapServer documentation
  WEB
# Set IMAGEPATH to the path where MapServer should
# write its output.
IMAGEPATH '/tmp/'

# Set IMAGEURL to the url that points to IMAGEPATH
# as defined in your web server configuration
IMAGEURL '/tmp/'

# WMS server settings
METADATA
  'ows_title'   'testmap'
  'ows_onlineresource'  
'http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=F:/ms4w/apps/testmap/htdocs/testmap.map'
  'ows_srs' 'EPSG:4326'
END

#Scale range at which web interface will operate
# Template and header/footer settings
# Only the template parameter is required to display a map. See MapServer 
documentation
TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
  END

  LAYER
NAME 'test'
TYPE POLYGON
DUMP true
TEMPLATE fooOnlyForWMSGetFeatureInfo
EXTENT -33.774149 16.403951 71.578722 97.850893
DATA 'F:/ms4w/apps/testmap/htdocs/testmap.shp|layerid=0'
METADATA
  'ows_title' 'test'
END
STATUS ON
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
END
CLASS
   NAME 'test' 
   STYLE
 SYMBOL 0 
 SIZE 7.0 
 OUTLINECOLOR 0 0 0
 COLOR 4 24 93
   END
END
  END

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


Re: [mapserver-users] Label size proportion to geometry size

2010-04-14 Thread Steve Grey
Jackey,

There certainly would be more to manage with separate classes/layers for
different scales, however a function could instead return the raw source
data, with additional appended column(s) for text size/max size etc.
calculated by the function and based on the supplied scale.

Also, the function doesn't need to be written for every layer - if you pass
the name of the layer as an argument to the function call, the function
could construct and execute the SQL to return complete records for the
supplied area and supplied layer, with additional calculated columns for the
text size.

In this case you'd always be returning a set of RECORD values, and the
downside is PostgreSQL has to match the returned RECORD to a list of columns
you define as part of the select - along the lines of "select * from
myfunction() as mytypedef(val1 int,val2 varchar)", and with a wide table
this could make for wordy SQL.

The speed shouldn't be noticeably affected - the data source would be
selected by spatial selection on a data source, and a few operations to
calculate a scale shouldn't cost too much.

Might I ask for you to also post replies back to the group?

Thanks,

Steve



On 14 April 2010 06:35, Jackey Cheung  wrote:

> Steve,
>
> I think this is a possible solution. However, it'll involve much extra
> effort to implement, and the whole process will get complicated. To make it
> that way, we have to setup separate classes/layers for different scales, and
> then pass the scale as parameter to the database. As the map grows bigger,
> and more and more layers are added to it, people will get confused and lost.
> And I think, it'll be impact to map rendering too.
>
>
>
> On Tue, Apr 13, 2010 at 7:07 PM, Steve Grey  wrote:
>
>> Jackey,
>>
>> If it can't be achieved in Map Server settings, it might be possible to
>> accomplish if your data is in PostGIS and you can get your data from a
>> database function rather than a table/view as your data source.  In that
>> case, and if appropriate arguments can be sent to a PostGIS function, the
>> dynamic part can be taken care of as part of the select.  You'll then have
>> to optimise the speed/structure in the PostGIS side.
>>
>> I have no idea if this might work!
>>
>> Steve
>>
>>
>>
>> On 13 April 2010 09:45, Jackey Cheung  wrote:
>>
>>> Hi all,
>>>
>>> Say, I have two polygon in the same layer, and they are at the same
>>> logical group/level on the map. Means that both feature should be drawn and
>>> labeled at the same scale. However, one polygon is much larger than (say 10
>>> times larger) than the other. Currently, I let MapServer to handle the
>>> scaling automatically, so that in a display scale, the label of the larger
>>> one looks too small while the larger one looks gigantic.
>>>
>>> My thought is straight forward: tie the font size to the size of the
>>> polygon. However, since the label must be scaled with respect to the map
>>> display scale, it has to be dynamic; further, since they belongs to the same
>>> logical group, they'll eventually be in the same size when zoomed in enough.
>>> My first thought is to bind the MINSIZE to a data attribute, so that they
>>> start with different font sizes and eventually scaled to the same MAXSIZE.
>>> But the MINSIZE/MAXSIZE cannot be used in this way.
>>>
>>> Any suggestions?
>>>
>>> P.S. I'm not using mapscript, just map file.
>>>
>>> ___
>>> 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] Label size proportion to geometry size

2010-04-14 Thread Steve Grey
Jackey,

There certainly would be more to manage with separate classes/layers for
different scales, however a function could instead return the raw source
data, with additional appended column(s) for text size/max size etc.
calculated by the function and based on the supplied scale.

Also, the function doesn't need to be written for every layer - if you pass
the name of the layer as an argument to the function call, the function
could construct and execute the SQL to return complete records for the
supplied area and supplied layer, with additional calculated columns for the
text size.

In this case you'd always be returning a set of RECORD values, and the
downside is PostgreSQL has to match the returned RECORD to a list of columns
you define as part of the select - along the lines of "select * from
myfunction() as mytypedef(val1 int,val2 varchar)", and with a wide table
this could make for wordy SQL.

The speed shouldn't be noticeably affected - the data source would be
selected by spatial selection on a data source, and a few operations to
calculate a scale shouldn't cost too much.

Might I ask for you to also post replies back to the group?

Thanks,

Steve



On 14 April 2010 06:35, Jackey Cheung  wrote:

> Steve,
>
> I think this is a possible solution. However, it'll involve much extra
> effort to implement, and the whole process will get complicated. To make it
> that way, we have to setup separate classes/layers for different scales, and
> then pass the scale as parameter to the database. As the map grows bigger,
> and more and more layers are added to it, people will get confused and lost.
> And I think, it'll be impact to map rendering too.
>
>
>
> On Tue, Apr 13, 2010 at 7:07 PM, Steve Grey  wrote:
>
>> Jackey,
>>
>> If it can't be achieved in Map Server settings, it might be possible to
>> accomplish if your data is in PostGIS and you can get your data from a
>> database function rather than a table/view as your data source.  In that
>> case, and if appropriate arguments can be sent to a PostGIS function, the
>> dynamic part can be taken care of as part of the select.  You'll then have
>> to optimise the speed/structure in the PostGIS side.
>>
>> I have no idea if this might work!
>>
>> Steve
>>
>>
>>
>> On 13 April 2010 09:45, Jackey Cheung  wrote:
>>
>>> Hi all,
>>>
>>> Say, I have two polygon in the same layer, and they are at the same
>>> logical group/level on the map. Means that both feature should be drawn and
>>> labeled at the same scale. However, one polygon is much larger than (say 10
>>> times larger) than the other. Currently, I let MapServer to handle the
>>> scaling automatically, so that in a display scale, the label of the larger
>>> one looks too small while the larger one looks gigantic.
>>>
>>> My thought is straight forward: tie the font size to the size of the
>>> polygon. However, since the label must be scaled with respect to the map
>>> display scale, it has to be dynamic; further, since they belongs to the same
>>> logical group, they'll eventually be in the same size when zoomed in enough.
>>> My first thought is to bind the MINSIZE to a data attribute, so that they
>>> start with different font sizes and eventually scaled to the same MAXSIZE.
>>> But the MINSIZE/MAXSIZE cannot be used in this way.
>>>
>>> Any suggestions?
>>>
>>> P.S. I'm not using mapscript, just map file.
>>>
>>> ___
>>> 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] multiple tileindex in a layer

2010-04-14 Thread Daniel Morissette

Peisheng Zhao wrote:

Hi all,

I have some time series tiled images. I know I can use tileindex either 
for spatial index or for time index. Can MapServer support two tileindex 
in a layer, one is for spatial index, the other one is for time index?




No, you cannot have two tileindex per layer. A single tileindex should 
be enough to do both anyway. i.e. add the time attributes to your 
spatial tile index.


--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] WMS Client does not recognize "wms_extent"

2010-04-14 Thread Rahkonen Jukka
Hi,

I am not sure about what is going wrong but I do not really believe that 
changing from a local image to remote WMS service is quite as straight forward 
as you seem to suppose. 

When you use a local image you are creating the original WMS layer yourself.  
The METADATA section is describing your service.  In case of cascading WMS the 
METADATA section has (mostly) different meaning: it is telling the instructions 
for your Mapserver about how to make a connection with the remote server.  
Therefore some of your METADATA lines do not make sense with a remote WMS.  I 
suppose "wms_extent" is one of those.  You cannot set the extents of the remote 
WMS layer, they are set by the remote server which in this case is 
http://mailserv2/cgi-bin/grid_test.pl?

Perhaps it is a bit misleading that METADATA section has a rather different 
function in these two use cases. Maybe something like CONNECTION_METADATA would 
describe better the cascading WMS case.

Read again the document http://mapserver.org/ogc/wms_client.html and have a try 
by making a cascading WMS layer as described there and pasted below:

LAYER
  NAME "prov_bound"
  TYPE RASTER
  STATUS ON
  CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?";
  CONNECTIONTYPE WMS
  METADATA
"wms_srs" "EPSG:42304"
"wms_name""prov_bound"
"wms_server_version"  "1.1.1"
"wms_format"  "image/gif"
  END
END


I suppose that you will loose most of the metadata sent by the remote server 
because Mapserver concentrates in capturing images and processing them further. 
This is taken from the same WMS client document:

"MapServer does not attempt to fetch the layer's capabilities. Doing so at 
every map draw would be extremely inefficient. And caching that information 
does not belong in the core of MapServer. This is better done at the 
application level, in a script, and only the necessary information is passed to 
the MapServer core via the CONNECTION string and metadata."

-Jukka Rahkonen-


Heiko Schröter wrote:

> Hello,
> 
> mapserver seems not to take "wms_extent" into account when 
> receiving raster images via WMS.
> According to the docs this tag should take precedence over all others.
> 
> Case 1, SRC Projection = DST Projection :
> a) Images are displayed correctly when read via DATA 
> statement. msResampleGDALToMap() called.
> b) Images are displayed incorrectly when read via WMS. 
> wld_file does not matter. msDrawRasterLayerGDAL() called. 
> Calling msResampleGDALToMap() instead fixes this.
> 
> Case 2, SRC Projection != DST Projection
> a) Images are displayed correctly when read via DATA 
> statement. msResampleGDALToMap() called.
> b) Images are displayed incorrectly when read via WMS. 
> wld_file does matter. msResampleGDALToMap() called. 
> "wms_extent" not recognized and does not take precedence. 
> Bug(?) in msGetGDALGeoTransform().
> Force Removing the wld_file in mapwmslayer.c in function 
> msDrawWMSLayerLow() before msDrawLayer() is called, forces 
> same proceeding as with images read via DATA statement and fixes it.
> 
> 
> Else something is broken in the processing logic of the WMS 
> (client) handling or i'am doing something completely wrong 
> (and stupid).
> 
> Thanks and Regards
> Heiko
> 
> 
> /var/www/localhost/mapserver/mapserv -v
> MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
> OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG 
> SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER 
> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER 
> INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
> 
> 
> The image recieved via WMS is the same as the in the DATA statment.
>   LAYER
>   EXTENT -180 -90 180 90
>   NAME "GRID_TEST"
>   OPACITY 60
>   STATUS ON
>   DEBUG ON
>   METADATA
>   "wms_timeextent" "1970-01-01/2030-12-31"
>   "wms_timeitem" "datum" #column in 
> postgis table of type timestamp
>   "wms_timedefault" "2007-12-10/2007-12-11"
>   "wms_title" "grid_test"
>   "wms_name" "grid_test"
>   "wms_format" "image/png"
>   "wms_server_version" "1.1.1"
>   "wms_srs" "EPSG:4326"
>   "wms_extent" "-180 -90 180 90"
>   END
>   PROJECTION
>   "init=epsg:4326"
>   END
>   CONNECTION "http://mailserv2/cgi-bin/grid_test.pl?";
>   CONNECTIONTYPE WMS
> # DATA 
> "/var/www/localhost/htdocs/grafik/wackelkontakt.png"
>   TYPE RASTER
>   END # Layer
> 
> 
> 
>   LAYER
>   EXTENT -180 -90 180 90
>   NAME "GRID_TEST1"
>   OPACITY 60
>   STATUS ON
>   DEBUG ON
>   METADATA
>   "wms_timeextent" "1970-01-01/2030-1

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

2010-04-14 Thread Lime, Steve D (DNR)
Perhaps the double / is problematic? Try:

  --with-sde="/opt/arcsde/sdeexe93"

Also, does the library architecture match your system?

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jachym Cepicky 
[jachym.cepi...@gmail.com]
Sent: Wednesday, April 14, 2010 3:55 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] can not compile arcsde 9.3 with mapserver 5.4

Hi,
I have the SDK, I installed it using "install -load" script

when I try to compile mapserver 5.4.2,  configure works,

./configure [...]
  --with-sde="/opt/arcsde/sdeexe93/" \
  --with-sde-version=93 \
   [...]


but whild compilating, I get

[...]
usr/lib64 -lagg -laggfontfreetype  -ltiff -ljpeg -lfreetype -lpng -lz
-lXpm -lX11  -lproj -ljpeg -lpng -L/opt/arcsde/sdeexe93//lib -lsde
-lpe -lsg -lpthread -ldl -lgdal   -L/usr/lib64 -lpq -rdynamic
-L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64
-lssl -lcrypto -lmysqlclient -L/usr/kerberos/lib64 -lcurl -ldl
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz
-L/usr/lib64 -lgeos_c -lpthread -lc  -lz -lxml2 -lz -lm -lfribidi
-lm -lstdc++   -o shp2img
/usr/bin/ld: skipping incompatible /opt/arcsde/sdeexe93//lib/libsde.so
when searching for -lsde
/usr/bin/ld: skipping incompatible /opt/arcsde/sdeexe93//lib/libsde.a
when searching for -lsde
/usr/bin/ld: cannot find -lsde
collect2: ld returned 1 exit status

any hint?

thanks

jachym


Dne 12. dubna 2010 8:00 Jachym Cepicky  napsal(a):
> Hi,
>
> slowly, I'm approaching. Our customer had to write to out local service
> provider of ESRI and they had to write to ESRI and request for the
> header files (I can not find the page, where it was written, but the
> header files should just arrive from U.S. here).
>
> So, now I "should" be able to compile
>
> Thanks
>
> Jachym
>
> Lime, Steve D (DNR) píše v St 07. 04. 2010 v 16:40 -0500:
>> Don't know if success was had or not. The standard 9.3 disks I had access to 
>> did not have the headers available. Must need some super secret handshake to 
>> get them. Anyway, I just copied the 9.2 headers into the same spot in the 
>> 9.3 directories  and it works just fine. Don't know that I'd recommend that 
>> approach in lieu of learning the super secret handshake but it worked here 
>> in a pinch...
>>
>> Steve
>>
>> -Original Message-
>> From: mapserver-users-boun...@lists.osgeo.org 
>> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Huey Brantley
>> Sent: Thursday, March 18, 2010 10:44 PM
>> To: Jachym Cepicky
>> Cc: mapserver-users@lists.osgeo.org
>> Subject: Re: [mapserver-users] can not compile arcsde 9.3 with mapserver 5.4
>>
>> 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
>
>
> --
> Jachym Cepicky
> e-mail: jachym.cepicky gmail com
> URL: http://les-ejk.cz
> PGP Public key: http://les-ejk.cz/pgp/JachymCepicky.pgp
>



--
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 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-04-14 Thread Jachym Cepicky
Hi,

no idea :-( there are

documentation_sdk  hpia_64  ibm install_sdk.htm  solaris windows
hp hp_64ibm_64  linuxsolaris_64


directories on the CD (so nothing like  linux_64 or windows_64)

the system is
Linux mapgis 2.6.18-164.15.1.el5 #1 SMP Wed Mar 17 11:30:06 EDT 2010
x86_64 x86_64 x86_64 GNU/Linux

removing the duble slash did not help :/

how could I found out, which architecture are the given libs for?

thanks

jachym

2010/4/14 Lime, Steve D (DNR) :
> Perhaps the double / is problematic? Try:
>
>  --with-sde="/opt/arcsde/sdeexe93"
>
> Also, does the library architecture match your system?
>
> Steve
> 
> From: mapserver-users-boun...@lists.osgeo.org 
> [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jachym Cepicky 
> [jachym.cepi...@gmail.com]
> Sent: Wednesday, April 14, 2010 3:55 AM
> To: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] can not compile arcsde 9.3 with mapserver 5.4
>
> Hi,
> I have the SDK, I installed it using "install -load" script
>
> when I try to compile mapserver 5.4.2,  configure works,
>
> ./configure [...]
>  --with-sde="/opt/arcsde/sdeexe93/" \
>  --with-sde-version=93 \
>   [...]
>
>
> but whild compilating, I get
>
> [...]
> usr/lib64 -lagg -laggfontfreetype  -ltiff -ljpeg -lfreetype -lpng -lz
> -lXpm -lX11  -lproj -ljpeg -lpng -L/opt/arcsde/sdeexe93//lib -lsde
> -lpe -lsg -lpthread -ldl -lgdal   -L/usr/lib64 -lpq -rdynamic
> -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64
> -lssl -lcrypto -lmysqlclient -L/usr/kerberos/lib64 -lcurl -ldl
> -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz
> -L/usr/lib64 -lgeos_c -lpthread -lc  -lz -lxml2 -lz -lm -lfribidi
> -lm -lstdc++   -o shp2img
> /usr/bin/ld: skipping incompatible /opt/arcsde/sdeexe93//lib/libsde.so
> when searching for -lsde
> /usr/bin/ld: skipping incompatible /opt/arcsde/sdeexe93//lib/libsde.a
> when searching for -lsde
> /usr/bin/ld: cannot find -lsde
> collect2: ld returned 1 exit status
>
> any hint?
>
> thanks
>
> jachym
>
>
> Dne 12. dubna 2010 8:00 Jachym Cepicky  napsal(a):
>> Hi,
>>
>> slowly, I'm approaching. Our customer had to write to out local service
>> provider of ESRI and they had to write to ESRI and request for the
>> header files (I can not find the page, where it was written, but the
>> header files should just arrive from U.S. here).
>>
>> So, now I "should" be able to compile
>>
>> Thanks
>>
>> Jachym
>>
>> Lime, Steve D (DNR) píše v St 07. 04. 2010 v 16:40 -0500:
>>> Don't know if success was had or not. The standard 9.3 disks I had access 
>>> to did not have the headers available. Must need some super secret 
>>> handshake to get them. Anyway, I just copied the 9.2 headers into the same 
>>> spot in the 9.3 directories  and it works just fine. Don't know that I'd 
>>> recommend that approach in lieu of learning the super secret handshake but 
>>> it worked here in a pinch...
>>>
>>> Steve
>>>
>>> -Original Message-
>>> From: mapserver-users-boun...@lists.osgeo.org 
>>> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Huey Brantley
>>> Sent: Thursday, March 18, 2010 10:44 PM
>>> To: Jachym Cepicky
>>> Cc: mapserver-users@lists.osgeo.org
>>> Subject: Re: [mapserver-users] can not compile arcsde 9.3 with mapserver 5.4
>>>
>>> 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
>>
>>
>> --
>> Jachym Cepicky
>> e-mail: jachym.cepicky gmail com
>> URL: http://les-ejk.cz
>> PGP Public key: http://les-ejk.cz/pgp/JachymCepicky.pgp
>>
>
>
>
> --
> Jachym Cepicky
> e-mail: jachym.cepicky gmail com
> URL: http://les-ejk.cz
> GPG: http://les-ejk.cz/p

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

2010-04-14 Thread Russell McOrmond


  It is my impression that there is only 32-bit versions of the ArcSDE SDK 
for Linux, and thus you are stuck compiling 32-bit.


libsde.so: ELF 32-bit LSB shared object, Intel 80386, version 
1 (SYSV), not stripped


On Wed, 14 Apr 2010, Jachym Cepicky wrote:


Hi,

no idea :-( there are

documentation_sdk  hpia_64  ibm install_sdk.htm  solaris windows
hp hp_64ibm_64  linuxsolaris_64


directories on the CD (so nothing like  linux_64 or windows_64)

the system is
Linux mapgis 2.6.18-164.15.1.el5 #1 SMP Wed Mar 17 11:30:06 EDT 2010
x86_64 x86_64 x86_64 GNU/Linux

removing the duble slash did not help :/

how could I found out, which architecture are the given libs for?

thanks

jachym

2010/4/14 Lime, Steve D (DNR) :

Perhaps the double / is problematic? Try:

 --with-sde="/opt/arcsde/sdeexe93"

Also, does the library architecture match your system?

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jachym Cepicky 
[jachym.cepi...@gmail.com]
Sent: Wednesday, April 14, 2010 3:55 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] can not compile arcsde 9.3 with mapserver 5.4

Hi,
I have the SDK, I installed it using "install -load" script

when I try to compile mapserver 5.4.2,  configure works,

./configure [...]
 --with-sde="/opt/arcsde/sdeexe93/" \
 --with-sde-version=93 \
  [...]


but whild compilating, I get

[...]
usr/lib64 -lagg -laggfontfreetype  -ltiff -ljpeg -lfreetype -lpng -lz
-lXpm -lX11  -lproj -ljpeg -lpng -L/opt/arcsde/sdeexe93//lib -lsde
-lpe -lsg -lpthread -ldl -lgdal   -L/usr/lib64 -lpq -rdynamic
-L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64
-lssl -lcrypto -lmysqlclient -L/usr/kerberos/lib64 -lcurl -ldl
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz
-L/usr/lib64 -lgeos_c -lpthread -lc  -lz -lxml2 -lz -lm -lfribidi
-lm -lstdc++   -o shp2img
/usr/bin/ld: skipping incompatible /opt/arcsde/sdeexe93//lib/libsde.so
when searching for -lsde
/usr/bin/ld: skipping incompatible /opt/arcsde/sdeexe93//lib/libsde.a
when searching for -lsde
/usr/bin/ld: cannot find -lsde
collect2: ld returned 1 exit status

any hint?

thanks

jachym


Dne 12. dubna 2010 8:00 Jachym Cepicky  napsal(a):

Hi,

slowly, I'm approaching. Our customer had to write to out local service
provider of ESRI and they had to write to ESRI and request for the
header files (I can not find the page, where it was written, but the
header files should just arrive from U.S. here).

So, now I "should" be able to compile

Thanks

Jachym

Lime, Steve D (DNR) píše v St 07. 04. 2010 v 16:40 -0500:

Don't know if success was had or not. The standard 9.3 disks I had access to 
did not have the headers available. Must need some super secret handshake to 
get them. Anyway, I just copied the 9.2 headers into the same spot in the 9.3 
directories  and it works just fine. Don't know that I'd recommend that 
approach in lieu of learning the super secret handshake but it worked here in a 
pinch...

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Huey Brantley
Sent: Thursday, March 18, 2010 10:44 PM
To: Jachym Cepicky
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] can not compile arcsde 9.3 with mapserver 5.4

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



--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
PGP Public key: http://les-ejk.cz/pgp/JachymCepicky.pgp





--
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





--
Jachym Cepick

Re: [mapserver-users] multiple tileindex in a layer

2010-04-14 Thread Daniel Morissette

Peisheng Zhao wrote:

Daniel,

Thank you for your answer.

Generally, I use gdaltindex to create a shp file for spatial index. Do 
you mean I need to add a time attribute into this? Could you give me an 
example? Thanks a lot.




That's correct. You need to use a script or some manual method to add 
and populate a time attribute in the DBF of the tileindex that was 
created with gdaltindex.


I do not have an example, but you can read more about this approach here:
http://mapserver.org/ogc/wcs_server.html#spatio-temporal-indexes

It may be easier to fill in the time attributes if you use a PostGIS 
table instead of a shapefile as the tileindex. There is an example of 
the corresponding layer definitions here:

http://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery


Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] fixed label size in map units

2010-04-14 Thread DeDuikertjes

Dear List,

I've searched but couldn't find a clear answer/ method.

Is it possible to define labels in map units? Eg. in such a way that a 
label being the letter "n" is allways (at each scale) 2 meters high.
The labels have to fit in predefined boxes which are actually defined in 
the map data itself (so defined in map units, like a box of 4 by 4 meters).


any help greatly appreciated, MArco
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] fixed label size in map units

2010-04-14 Thread Lime, Steve D (DNR)
Can't be done with labels. Symbols can be scaled like that with SIZEUNITS but 
I'm pretty sure that doesn't extent to labels. Probably wouldn't be too hard to 
hack things to do so and it would be a nice feature to add. Problem is that 
SIZEUNITS is a layer-level parameter at the moment so applying it more 
generally would be a pretty big behavior change.

Can you treat your labels as symbols using TRUETYPE symbols? Single letter 
annotation might be doable that way.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of DeDuikertjes
Sent: Wednesday, April 14, 2010 12:56 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] fixed label size in map units

Dear List,

I've searched but couldn't find a clear answer/ method.

Is it possible to define labels in map units? Eg. in such a way that a 
label being the letter "n" is allways (at each scale) 2 meters high.
The labels have to fit in predefined boxes which are actually defined in 
the map data itself (so defined in map units, like a box of 4 by 4 meters).

any help greatly appreciated, MArco
___
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] multiple tileindex in a layer

2010-04-14 Thread Daniel Morissette
Please send your replies via the list so that others who know better 
than me about time support can help, and that other users who may have 
similar problems can benefit from the answers when they search the archives.


Back to your last question, at first sight, what you have seems right, 
and already combines the spatial index and time index. If you have 
multiple images listed in your OMTO3ECOLUMNAMOUNTO3IDX layer that fit in 
the requested map view and whose time attribute match the requested 
time, then they should all be displayed.


If that doesn't work for you, then you will have to provide more 
specific details to help us understand the exact problem.


Daniel


Peisheng Zhao wrote:

Daniel,

I also use postgis to generate time index, just like this:

 LAYER
STATUS ON
NAME"OMTO3ECOLUMNAMOUNTO3IDX"
TYPE POLYGON
CONNECTIONTYPE POSTGIS
CONNECTION  "dbname=mapserver password=anonymous user=anonymous 
port=5432"

DATA"the_geom from omto3e_003_columnamounto3"
METADATA
"wms_title""OMTO3e Total Ozone Solution Index"
"ows_service"  "none"
END
END
 
LAYER

NAME 'OMTO3e_ColumnAmountO3'
TYPE RASTER
STATUS ON
PROCESSING "SCALE=50,700"
 
DEBUG ON

DUMP TRUE
PROJECTION
"init=epsg:4326"   ##recommended
END
METADATA
wms_title   "Best Total Ozone Solution"   ##required
wms_timeextent  "2004-08-30/2010-04-03"
wms_srs "EPSG:4326"
wms_timeitem"time"
wms_timedefault "2010-04-03"
wms_extent  "-180.0 -90.0 180.0 90.0"
END
TILEITEM "location"
TILEINDEX"OMTO3ECOLUMNAMOUNTO3IDX"
  END

  The TILEITEM  "location" in database points to a data file. Do you 
mean "location" can point to an individual tiled image and MapServer can 
tile up couple of tiled images which have the same timestamp?


Thanks.


 > Date: Wed, 14 Apr 2010 13:28:47 -0400
 > From: dmorisse...@mapgears.com
 > To: mapserver-users@lists.osgeo.org
 > Subject: Re: [mapserver-users] multiple tileindex in a layer
 >
 > Peisheng Zhao wrote:
 > > Daniel,
 > >
 > > Thank you for your answer.
 > >
 > > Generally, I use gdaltindex to create a shp file for spatial index. Do
 > > you mean I need to add a time attribute into this? Could you give 
me an

 > > example? Thanks a lot.
 > >
 >
 > That's correct. You need to use a script or some manual method to add
 > and populate a time attribute in the DBF of the tileindex that was
 > created with gdaltindex.
 >
 > I do not have an example, but you can read more about this approach here:
 > http://mapserver.org/ogc/wcs_server.html#spatio-temporal-indexes
 >
 > It may be easier to fill in the time attributes if you use a PostGIS
 > table instead of a shapefile as the tileindex. There is an example of
 > the corresponding layer definitions here:
 > 
http://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery

 >
 >
 > Daniel
 > --
 > Daniel Morissette
 > http://www.mapgears.com/
 > ___
 > mapserver-users mailing list
 > mapserver-users@lists.osgeo.org
 > http://lists.osgeo.org/mailman/listinfo/mapserver-users


The New Busy is not the too busy. Combine all your e-mail accounts with 
Hotmail. Get busy. 




--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WFS GetFeature on Mapserver doesn't work

2010-04-14 Thread sunny74

Dear Friends,

I am trying to get WFS working on Mapserver but both Getcapabilities and
GetFeature are giving me errors.

I am firing the following urls directly in the browser:

Getcapabilities(map from DB )

http://localhost:81/cgi-bin/mapserv.exe?map=d:/Delhi1_wfs_postgres.map&SERVICE=WFS&VERSION=1.0.0&&REQUEST=GETcapabilities

GetFeature

http://localhost:81/cgi-bin/mapserv.exe?map=d:/Delhi1_wfs_postgres.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GETfeature
&typename=delhi_district

delhi_district is the name of my table in the postgres DB.

The o/p from Getcapabilities is:

http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd";>
−

−

MapServer WFS
GMap WFS Demo Server
−

http://localhost:81/cgi-bin/mapserv.exe?map=d:/Delhi1_wfs_postgres.map&;


−

−

−

−

−

http://localhost:81/cgi-bin/mapserv.exe?map=d:/Delhi1_wfs_postgres.map&"/>


−

−

http://localhost:81/cgi-bin/mapserv.exe?map=d:/Delhi1_wfs_postgres.map&"/>



−

−



−

−

http://localhost:81/cgi-bin/mapserv.exe?map=d:/Delhi1_wfs_postgres.map&"/>


−

−

http://localhost:81/cgi-bin/mapserv.exe?map=d:/Delhi1_wfs_postgres.map&"/>



−

−



−

−

http://localhost:81/cgi-bin/mapserv.exe?map=d:/Delhi1_wfs_postgres.map&"/>


−

−

http://localhost:81/cgi-bin/mapserv.exe?map=d:/Delhi1_wfs_postgres.map&"/>





−

−




−

−

−













−


−









The o/p from GetFeature is:

http://www.opengis.net/ogc
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd";>
−


msWFSGetFeature(): WFS server error. TYPENAME 'delhi_district' doesn't exist
in this server.  Please check the capabilities and reformulate your request.
  



So none of the outputs are proper

My map File is as below:

# Map file created from QGIS project file D:/QGIS
1.3/projects/delhi_trial.qqs.qgs
# Edit this file to customize for your map interface
# (Created with PyQgis MapServer Export plugin)
MAP
  NAME Delhi1_postgres.map
  # Map image size
  SIZE 600 600
  UNITS dd
  SYMBOLSET 'C:\ms4w\Apache\htdocs\Delhi\Symbols.txt'
  FONTSET 'C:\ms4w\Apache\htdocs\Delhi\fonts.txt'
  EXTENT 76.507859 27.613907 78.439621 28.941223
  CONFIG "PROJ_LIB" "C:\ms4w\proj\nad"
  PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
  END

  # Background color for the map canvas -- change as desired
  IMAGECOLOR 192 192 192
  IMAGEQUALITY 95
  IMAGETYPE png
  OUTPUTFORMAT
NAME png
DRIVER 'GD/PNG'
MIMETYPE 'image/png'
#IMAGEMODE PC256
EXTENSION 'png'
  END
  # Legend
  LEGEND
  IMAGECOLOR 255 255 255
STATUS ON
KEYSIZE 18 12
LABEL
  TYPE BITMAP
  SIZE MEDIUM
  COLOR 0 0 89
END
  END

  # Web interface definition. Only the template parameter
  # is required to display a map. See MapServer documentation
  WEB
# Set IMAGEPATH to the path where MapServer should
# write its output.
IMAGEPATH '/tmp/'

# Set IMAGEURL to the url that points to IMAGEPATH
# as defined in your web server configuration
IMAGEURL '/tmp/'

# WMS server settings
METADATA
"wfs_title""GMap WFS Demo Server"  ## REQUIRED
"wfs_onlineresource"  
"http://localhost:81/cgi-bin/mapserv.exe?map=d:/Delhi1_wfs_postgres.map";  ##
Recommended
"wfs_srs"   "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326"  ##
Recommended
"wfs_request_method""GET"
 'queryable'  'true'
 "wfs_feature_info_mime_type" "gml"
END

#Scale range at which web interface will operate
# Template and header/footer settings
# Only the template parameter is required to display a map. See
MapServer documentation
  END

  LAYER
CONNECTIONTYPE postgis
CONNECTION "host=localhost dbname=DelhiDB user=postgres 
password=postgres
port=5432"
DATA "the_geom FROM delhi_district as foo USING UNIQUE gid USING
SRID=4326"

NAME 'delhi_district'
TYPE POLYGON
LABELITEM "polygon_nm"
CLASSITEM "polygon_nm"
 METADATA
"wfs_title""WFS Map" ## REQUIRED
"wfs_version" "1.0.0"
"wfs_srs" "EPSG:4326"
"wfs_typename" "delhi_district"
"wfs_service" "WFS"
"gml_featureid" "gid"
 END

STATUS DEFAULT
HEADER   ../templates/Demo_header.html
TEMPLATE ../templates/Demo_query_body1.html
FOOTER ../templates/Demo_footer.html

TRANSPARENCY 100
PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
END
CLASS
   EXPRESSION 'Ghaziabad' 
   NAME 'Ghaziabad' 
   GROUP 'Ghaziabad'
   STYLE
 SYMBOL "quadrat" 
 SIZE 2 
 OUTLINECOLOR 0 0 0
 COLOR 255 0 127
   END
END
CLASS
   EXPRESSION 'Gautam Buddha Nagar' 
   NAME 'Gautam Buddha Nagar' 
   GROUP 'Gautam Buddha Nagar'
   STYLE
 SYMBOL "quadrat" 
 SIZE 2 
 OUTLINECOLOR 0 0 0
 COLOR 0 0 255
   END
END

CLASS
   EXPRESSION 'North West' 
   NAME 'North West' 
   GROUP 'North 

[mapserver-users] Mapserver vs Geoserver

2010-04-14 Thread mani .,
Hi everyone,

   Well  I've been  working on Mapserver for a couple of weeks now. Now
 I was supposed to checkout Geoserver too.. I was wondering if anyone who
has worked on both of

them could help me figure out with a point or two as of how mapserver is
superior to Geoserver... I've got a few points gathered.

-=- Plz fill me in with any thing that comes to your mind. I really wanna
the differences , be it the basic things, simplicity or complexity
or whatever..

Thanks,


Mapserver && Geoserver

*1. *MapServer is generally better when dealing with WMS, while
GeoServer deals better with WFS.

*2*. A big difference is that GeoServer supports WFS-T, that it
Transactional WFS (editing of feature services on the client side),
while MapServer don’t.

*3*. Mapserver works with CGI, GeoSever with J2EE. That may entail
some advantage to GeoServer, since some companies don’t want to work
with CGI.

*4*. MapServer is a more mature project (1996), while GeoServer is a
bit more recent (2003).

*5*. GeoServer has a web tool administration that eases configuration.

*6*. MapServer has without any doubt a very powerful cartography
system, providing data under dynamic vectors with high quality

*7*. None of them is better or worse. The development objectives are different.

*8.* PHP Mapscript for Mapserver, which provides a powerful scripting
interface for PHP programmers. For Java programmers, Geoserver might
be a better choice
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: fixed label size in map units

2010-04-14 Thread deduikertjes

Steve, thank you

Labels as symbols doesn't seem to be a good option as my labels can extent
to a length of 7 characters. At least I can't think of a good way.

It isn't really necessary to specify the size in map units. In points or
whatever is also OK as long as the labels remain fixed in size, and this
size can be derived from the map units.

Is is possible to created a fixed label size at all (fixed in relation to
the map so that a label is always the same size in meters on the map)?




MArco
-- 
View this message in context: 
http://n2.nabble.com/fixed-label-size-in-map-units-tp4903182p4905908.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