[mapserver-users] (no subject)

2009-04-28 Thread Pedro Briones García
What is the best way to map attribute data (non-geom) from Oracle (not * Spatial) using MapServer Un saludo. Pedro Briones García TRAGSATEC Gerencia de SIG y Consultoría Departamento de Cartografía C/ Julián Camarillo 6, Edificio 6B - 2ª Pl. Sector B 28037 Madrid

Re: [mapserver-users] How to link Oracle attributes to SHAPEFILE

2009-04-28 Thread Roald de Wit
Hi Pedro, A number of years ago i had a situation like you describe below. The solution we chose was: - Create a postgresql/postgis datawarehouse - Import shapefiles into postgis (shp2psql or ogr2ogr) - Import attribute info from oracle into postgresql (we needed a commercial license for

RE: [mapserver-users] Inconsistency between 5.4 and 5.2.1 concerningWhichShapes()?

2009-04-28 Thread Jim Strevinas
Steve, you are absolutely right, according to #2689 i tried commenting out the msLayerWhichItems (layer.i) prior to msLayerWhichShapes in the 5.4 release. The item setup is thus maintained. While i'm afraid to mess with maplayer.c and maybe this will sound silly ,i observed that within

Re: [mapserver-users] How to link Oracle attributes to SHAPEFILE

2009-04-28 Thread pbg
Hi Roald. Thanks for the reply. In this project, we are required to use SHAPEFILES and Oracle, so we can't change this environment. Roald de Wit wrote: Hi Pedro, A number of years ago i had a situation like you describe below. The solution we chose was: - Create a postgresql/postgis

Re: [mapserver-users] mapserver error

2009-04-28 Thread Iratxe Lejarreta
On Friday 24 April 2009 12:42:46 Pano wrote: Hi Iratxe, Unfortunately I know very little about CentOS. Just a windows guy me :-) But let me try: Is it possible that you have multiple Oracle Homes setup? And sqlplus is using the home where oracle server is installed whereas mapserver is using

[mapserver-users] Finding Lat-Long from shp file

2009-04-28 Thread Mukul Gupta
hi... I want to know if there is any method to automatically get the lat long of the particular point in the shape file and then store the corresponding values in mysql database file. Regards Mukul ___ mapserver-users mailing list

RE: [mapserver-users] Finding Lat-Long from shp file

2009-04-28 Thread Venkat Rao Tammineni
Hi, mapObj will have extents property ,where you can get your map extents. For example :- Alert(Map.extent.minx); Thanks, Venkat From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mukul Gupta Sent: Tuesday, April

Re: [mapserver-users] How to link Oracle attributes to SHAPEFILE

2009-04-28 Thread Paolo Corti
Hi Roald. Thanks for the reply. In this project, we are required to use SHAPEFILES and Oracle, so we can't change this environment. Roald de Wit wrote: Hi Pedro, A number of years ago i had a situation like you describe below. The solution we chose was: - Create a

RE: [mapserver-users] Inconsistency between 5.4 and 5.2.1concerningWhichShapes()?

2009-04-28 Thread Steve Lime
Stupid error on my part. I was worried about getting the right set of shapes out and spaced the correct item list part. Ugh... I'm not sure that removing the cleanup is the answer. Users could switch shapefile sources between layer open/close or change items used to label or classify features

[mapserver-users] PHP mapscript - QuerymapObj class

2009-04-28 Thread Worth Lutz
Is there any way to access the QuerymapObj from PHP mapscript? I cannot find the reference to the object or a method to get to it in the MapObj class. Is the only way to change size or color in the mapfile if using PHP mapscript? Thanks in advance for your help, Worth Lutz

Re: [mapserver-users] How to link Oracle attributes to SHAPEFILE

2009-04-28 Thread Luigi Castro Cardeles
Hi list, hum, could he use ogr vrt? http://www.gdal.org/ogr/drv_vrt.html Luigi Castro Cardeles 2009/4/28 Paolo Corti pco...@gmail.com Hi Roald. Thanks for the reply. In this project, we are required to use SHAPEFILES and Oracle, so we can't change this environment. Roald

[mapserver-users] DescribeFeatureType

2009-04-28 Thread Iratxe Lejarreta
Hi, I have MapServer with Oracle Spatial and when I run the request DescribeFeatureType, the result of types for all fiels is string. http://localhost/cgi- bin/mywfs?SERVICE=WFSVERSION=1.0.0REQUEST=DescribeFeatureTypeTYPENAME=layer_name Is it possible to know the type of different fields of

Re: [mapserver-users] PHP mapscript - QuerymapObj class

2009-04-28 Thread Yewondwossen Assefa
Worth Lutz wrote: Is there any way to access the QuerymapObj from PHP mapscript? I cannot find the reference to the object or a method to get to it in the MapObj class. It should be accessible from the map object: http://mapserver.org/mapscript/php/index.html#querymapobj-class Is the

Re: [mapserver-users] DescribeFeatureType

2009-04-28 Thread bartvde
Hi, sorry but Mapserver does not support this (yet). Best regards, Bart Hi, I have MapServer with Oracle Spatial and when I run the request DescribeFeatureType, the result of types for all fiels is string. http://localhost/cgi-

RE: [mapserver-users] PHP mapscript - QuerymapObj class

2009-04-28 Thread Worth Lutz
Yes, I saw the page you referenced. That was what prompted my question. If you look in the documentation for the map object there is no reference to the querymapobj-class. In other words there is no member which points to the querymapobj and no method to get the object. The reference map

Re: [mapserver-users] PHP mapscript - QuerymapObj class

2009-04-28 Thread Yewondwossen Assefa
The member should be $oMap-querymap. I will update the doc to reflect that. Worth Lutz wrote: Yes, I saw the page you referenced. That was what prompted my question. If you look in the documentation for the map object there is no reference to the querymapobj-class. In other words there is

RE: [mapserver-users] DescribeFeatureType

2009-04-28 Thread Kralidis,Tom [Ontario]
FYI there is an open ticket on this at http://trac.osgeo.org/mapserver/ticket/462 ..Tom -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of bart...@osgis.nl Sent: Tuesday, 28 April 2009 09:37 To: Iratxe

Re: [mapserver-users] DescribeFeatureType

2009-04-28 Thread Steve Lime
To clarify, the support is not automatic. The developer of the service has the ability to define types in the service configuration but it must be done by hand. Steve bart...@osgis.nl 04/28/09 8:37 AM Hi, sorry but Mapserver does not support this (yet). Best regards, Bart Hi, I have

[mapserver-users] total values from a shapefile?

2009-04-28 Thread Mark Volz
Hello, Can map server combine two fields and display a total for the values, or do we need to total the values ahead of time in the shapefile? Mark Volz GIS Specialist Lyon County, MN ___ mapserver-users mailing list

Re: [mapserver-users] total values from a shapefile?

2009-04-28 Thread Steve Lime
Depends, are you talking about for labeling, expression evaluation or template display? For labeling: No. For expression evaluation: Yes (using logical expressions you can do EXPRESSION ([item1] + [item2] 50) For templates: Yes for HTML via javascript, e.g.: script ... var total = [item1]

Re: [mapserver-users] total values from a shapefile?

2009-04-28 Thread Jeff McKenna
Mark Volz wrote: Can map server combine two fields and display a total for the values, or do we need to total the values ahead of time in the shapefile? Hi Mark, Not that I'm aware of. Even if it could, I would always pre-process the data, so MapServer doesn't have to execute those extra

[mapserver-users] Outline on the roads label boxes

2009-04-28 Thread Nelson Correia
Hi, Do you know how to write an outline on the roads label boxes, just like the ones that Google Maps has? In Mapserver docs I only see an outline for the letters and not for the background. Does Mapserver support it? You can see the labels (L2150, K2, K7) with white background and

RE: [mapserver-users] total values from a shapefile?

2009-04-28 Thread Mark Volz
Steve, Thank you for your reply. I will be using it for templates. Mark Volz GIS Specialist Lyon County, MN -Original Message- From: Steve Lime [mailto:steve.l...@dnr.state.mn.us] Sent: Tuesday, April 28, 2009 11:40 AM To: Mark Volz; mapserver-users@lists.osgeo.org Subject: Re:

Re: [mapserver-users] C# connectiontype issue

2009-04-28 Thread Frank Warmerdam
I have a raster layer in map file. When I load the map file using C# map script, at run time it shows layerObj.connectiontype as ‘MS_CONNECTION_TYPE.MS_SHAPEFILE’ though it is raster image. Is there any syntax error with my map file definition. I need to know exactly whether it is a raster or

Re: [mapserver-users] Outline on the roads label boxes

2009-04-28 Thread Thomas Bonfort
this isn't currently possible. best regards, thomas On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia nelson...@hotmail.com wrote: Hi, Do you know how to write an outline on the roads label boxes, just like the ones that Google Maps has? In Mapserver docs I only see an outline for the

Re: [mapserver-users] Automatically Clearing Old Map Images

2009-04-28 Thread jchampagne2
Thank you! I did a little research, and writing a .bat file to execute as a scheduled task is exactly what I needed. The file is simple: @echo off cd C:\OSGeo4W\tmp\ms_tmp del *.png cls echo Your MapServer cache has been cleared! echo. pause nul Saved as 'clearCache.bat' and added it as a

Re: [mapserver-users] Outline on the roads label boxes

2009-04-28 Thread Christy Nieman
Hi, You can use an annotation layer with a symbol. Something like: LAYER NAME labels TYPE ANNOTATION DATA /your/data/path/ STATUS ON LABELITEM RD_NUM CLASS NAME road_numbers STYLE SYMBOL 'rectangle' COLOR 255 255 255 OUTLINECOLOR 0 0 0 SIZE 16 END LABEL

[mapserver-users] RE: Finding Lat-Long from shp file

2009-04-28 Thread Mohammed Rashad
Hi, Here is the way you can find lat-long values from shp files. The method is ugly. I used this method to select lat-long values from a shape file consisting of about 150 records. Using this method all lat-long values from a shapefile consisting of place names of country can be selected and

Re: [mapserver-users] Outline on the roads label boxes

2009-04-28 Thread Steve Lime
You can however, develop separate classes based on label length. You'd have different symbols to handle wide text vs. narrow. For example: LABELITEM 'myitem' CLASS EXPRESSION (length('[myitem]') 5) # use a really wide shield STYLE SYMBOL 'reallywideshield' ... END END CLASS

Re: [mapserver-users] Outline on the roads label boxes

2009-04-28 Thread Thomas Bonfort
The label background is getting quite cluttered actually, we have backgroundcolor, backgroundshadowcolor, backgroundshadowsize, and maybe a couple of others I'm forgetting. maybe we could add something equivalent to backgroundstyle that would have the same syntax as a class STYLE, that would then

RE: [mapserver-users] RE: Finding Lat-Long from shp file

2009-04-28 Thread Fawcett, David
You could also write a fairly simple python script using the gdal/ogr python modules. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mohammed Rashad Sent: Tuesday, April 28, 2009 12:17

Re: [mapserver-users] Automatically Clearing Old Map Images

2009-04-28 Thread Gregor at HostGIS
jchampagne2 wrote: Thank you! I did a little research, and writing a .bat file to execute as a scheduled task is exactly what I needed Cool. del *.png Just for future planning, you may want to add *.jpg and *.gif to it. Otherwise, three years from now when you're also generating JPEGs

[mapserver-users] avl files

2009-04-28 Thread Paul Alarcon
Hello forum does anyone know if there is a way to export the avl files from arcview to map files? thanks a lot Paul -- View this message in context: http://n2.nabble.com/avl-files-tp2735327p2735327.html Sent from the Mapserver - User mailing list archive at Nabble.com.

RE: [mapserver-users] Outline on the roads label boxes

2009-04-28 Thread Nelson Correia
I've done it with several rectangle symbols. Thank you all for the quick answers! :) Nelson Date: Tue, 28 Apr 2009 19:33:01 +0200 Subject: Re: [mapserver-users] Outline on the roads label boxes From: thomas.bonf...@camptocamp.com To: steve.l...@dnr.state.mn.us CC:

Re: [mapserver-users] avl files

2009-04-28 Thread Bart van den Eijnden (OSGIS)
Hi, you can try Avein: http://sourceforge.net/projects/avein/ Best regards, Bart Paul Alarcon wrote: Hello forum does anyone know if there is a way to export the avl files from arcview to map files? thanks a lot Paul -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl

Re: [mapserver-users] avl files

2009-04-28 Thread Paul Alarcon
Thanks a lot Bart im going to try it and thanks for the quickly reply :-D ___ -- View this message in context: http://n2.nabble.com/avl-files-tp2735327p2736480.html Sent from the Mapserver - User mailing list archive at Nabble.com.

Re: [mapserver-users] avl files

2009-04-28 Thread Paul Alarcon
Helllo is me again, i tried it but it ask me for a installed mapserver on windows and i use a linux server for mapserver, there is another software for make it for linux server ? ___ -- View this message in context:

[mapserver-users] Mapfile HDF 'DATA' element format

2009-04-28 Thread Peter Willis
Hello, Where can I find the specification for the 'DATA' entry in mapserver MAP files where HDF files are being used? I am mostly interested in using these in the context of WCS. Here is my current non-working example of an HDF file test in my current WCS map file: LAYER NAME chlorophyll

Re: [mapserver-users] Mapfile HDF 'DATA' element format

2009-04-28 Thread Frank Warmerdam
Peter Willis wrote: Hello, Where can I find the specification for the 'DATA' entry in mapserver MAP files where HDF files are being used? I am mostly interested in using these in the context of WCS. Here is my current non-working example of an HDF file test in my current WCS map file: ...

Re: [mapserver-users] Mapfile HDF 'DATA' element format

2009-04-28 Thread Peter Willis
Frank Warmerdam wrote: Peter Willis wrote: Hello, Where can I find the specification for the 'DATA' entry in mapserver MAP files where HDF files are being used? I am mostly interested in using these in the context of WCS. Here is my current non-working example of an HDF file test in my

Re: [mapserver-users] Mapfile HDF 'DATA' element format

2009-04-28 Thread Frank Warmerdam
Peter Willis wrote: Hello Frank, I don't get any of those entries when I run gdalinfo against the file. There is one SDS in the root of the HDF file called 'l3m_data'. Here is an example of what I get with gdalinfo: ... Peter, Then the file appears to be a simple SDS dataset, and you don't

Re: [mapserver-users] avl files

2009-04-28 Thread percy
give it fake directories as if you are using MS4W, then edit the mapfile it generates and substitute your linux paths... percy On 4/28/2009 1:43 PM, Paul Alarcon wrote: Helllo is me again, i tried it but it ask me for a installed mapserver on windows and i use a linux server for mapserver,