RE: [mapserver-users] WMS query problems in Mapserver 5.2

2008-09-03 Thread capgre

Thank you very much



Kralidis,Tom [Burlington] wrote:
> 
> 
> FYI this was addressed in http://trac.osgeo.org/mapserver/ticket/2737
> and will be in 5.2.1
> 
> ..Tom
>  
> 
> 
> 
> 
>   From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of capgre
>   Sent: 01 September, 2008 11:34 AM
>   To: mapserver-users@lists.osgeo.org
>   Subject: [mapserver-users] WMS query problems in Mapserver 5.2
>   
>   
>   Hi, We just installed the version 5.2 of Mapserver in our
> server. We have noticed that when performing a WMS query (GetMap,
> GetFeatureInfo or GetLegendGraphic requests), if the parameter
> SERVICE=WMS is not provided, Mapserver returns the following exception:
> msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE
> parameter missing Requests without the parameter work fine when using
> prior versions of mapserver. As long as I know, the WMS specification
> does not mention that this parameter is mandatory in the requests
> (except in GetCapabilities). Does anyone know if this behavior is
> expected in mapserver or should be considered a bug? 
>   
> 
> 
>   View this message in context: WMS query problems in Mapserver
> 5.2
>  0.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
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/WMS-query-problems-in-Mapserver-5.2-tp801600p835732.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] Gdal - geometry_columns

2008-09-03 Thread Jeppe Lund Andersen
Hello

I have upgrade mapserver from 4.8.4 to version 5.2 and Gdal from 1.3.2 to 1.5.2

Now I got this error
Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'ODBC'. in 
c:\inetpub\wwwroot\jar3\xmlkort.php on line 591
Warning: [MapServer Error]: msOGRFileNextShape(): No column definitions found 
for table 'test', layer not usable. in c:\inetpub\wwwroot\jar3\xmlkort.php on 
line 591 Fatal error: Call to a member function on a non-object in 
c:\inetpub\wwwroot\jar3\xmlkort.php on line 621

The error is that I have a row in geometry_columns table called "test", but 
dont have any view for it so if I delete the row test in geometry_columns it 
works fine.

For me it seems that Gdal now has a check that sees, if all rows in 
geometry_columns has a view - is that true, if so what is the reason for this ?
and is it possible to remove this check
 
Jeppe Lund Andersen
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] Highlighting query results

2008-09-03 Thread shurhen
Thank you, Steve!

I tried your way, but I have not got result - selected object still remains 
same as others. 
I've added these lines in map-file but there are no results:

QUERYMAP
  COLOR 0 0 255
  STATUS ON
  STYLE HILITE
END

What I've missed?


2BrainDrain: Thank you, I'll try and your way too. 

Steve Lime wrote:
> 
> MapServer supports what's called a query map. It basically replaces the
> color of the top-most
> style for a layer with one defined in the query map object (default is
> yellow). Typically in MapScript
> you'd do:
> 
>   a_layer.queryByAttributes(m_map, null, a_query, 1);
>   img = m_map.drawQuery();
> 
> You can of course get fancier and step through the result set by hand but
> I wouldn't recommend 
> starting that way.
> 
> Steve
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] ArcSDE 9.2 support

2008-09-03 Thread Liz Godwin
Hey folks,

I noticed there was a closed bug on this issue, but I am still having
problems connecting to SDE with Unicade enabled.
http://trac.osgeo.org/mapserver/ticket/2225

We have the most recent version of Mapserver (5.2) and all the libraries are
updated, and it still does not work.  On windows with MS4W 2.2.9 and the SDE
9.2 plugin, I get the attached image (unicode.png).  On Linux, I get an
Internal Server Error (Premature End of Script Error in Apache log) and no
debug information is written to the mapserver log.

Is there something to configure that we're missing to support this change?

We have a workaround in mind, but it's a lot of work to reload all the data
to remove unicode.

  LAYER # on Linux
DEBUG 5
NAME myname
TYPE point
STATUS DEFAULT
CONNECTIONTYPE SDE
CONNECTION "host,port:,instance,user,pass"
DATA "MARTVECTOR.CUL_NSF_POP_PLACE,SHAPE"

LABELITEM ""
CLASS
  NAME "Points"
  SYMBOL 'tent'
  COLOR 255 0 0
  OUTLINECOLOR 125 125 125
  SIZE 10
  LABEL

COLOR 255 0 0
FONT arial
TYPE truetype
size 10
  END
END
<>___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Problem with MapServer WCS's (ms4w-2.2.8) support for ArcSDE 9.2

2008-09-03 Thread Yaxing Wei
I'm trying to connect MapServer (ms4w-2.2.8) WMS and WCS with ArcSDE 9.2 
database.


I used the following configuration in the WMS mapfile and MapServer WMS 
works fine with ArcSDE data sources:

 LAYER
   NAME "dem_layer"
   TYPE RASTER
   CONNECTIONTYPE PLUGIN
   PLUGIN "C:/Program Files/ms4w/Apache/specialplugins/msplugin_sde_92.dll"
   DATA "SDE:host,port:5151,sde,username,password,SDE.SDE.DEM_LAYER,RASTER"
   STATUS ON
   METADATA
 "wms_title" "dem_layer"
 "wms_srs" "EPSG:4326"
   END
 END


I tried to use a similar configuration in WCS mapfile:
 LAYER
   NAME "dem_layer"
   TYPE RASTER
   CONNECTIONTYPE PLUGIN
   PLUGIN "C:/Program Files/ms4w/Apache/specialplugins/msplugin_sde_92.dll"
   DATA "SDE:host,port:5151,sde,username,password,SDE.SDE.DEM_LAYER,RASTER"
   STATUS ON
   METADATA
 "wcs_label"   "dem_layer" 
 "wcs_srs" "EPSG:4326"

 "wcs_formats" "GeoTIFF"
 "wcs_rangeset_name"   "Rangeset"
 "wcs_rangeset_label"  "Rangeset"
   END
   PROJECTION
 "init=epsg:4326"
   END
   DUMP TRUE
 END 


The Exception message for a WCS request to this layer looks like:
msWCSGetCoverageMetadata(): Unable to access file. 
`D:/Data/wcs_data/SDE:host,port:5151,sde,username,password,SDE.SDE.DEM_LAYER,RASTER' 
does not exist in the file system, and is not recognised as a supported 
dataset name.


Seems MapServer WCS doesn't recoganise this data is in fact from ArcSDE. 
It always tries to access a file in a local directory 
(D:/Data/wcs_data/), which is specified by parameter SHAPEPATH.


Can anyone help me to figure this out? Thanks.

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


[mapserver-users] How to make MapServer WMS/WCS support multi-band raster data

2008-09-03 Thread Yaxing Wei
I'm trying to put some GeoTIFF format raster data with multiple bands 
into MapServer WMS and WCS.


My goal is:
- For WMS, use something like "bands=2" in a WMS request to retrieve an 
image of a specific band.
- For WCS, use something like "bands=2" or "bands=2,4,7" in a WCS 
request to retrieve data of some specific bands.


What I did is:
- In the mapfile for WCS, I added
   "wcs_rangeset_axes"   "bands"
  in the LAYER's METADATA part, so I'm able to use "band=2" or "band=4" 
to retrieve only ONE band in each WCS request. But I can't retrieve 
multiple bands using something like "bands=2,4,7", the Exception message 
looks like:
  locator="bands">msWCSGetCoverage(): WCS server error. Error specifying 
"bands" parameter value(s).


I have no idea at all about how to configure WMS mapfile to enable the 
bands parameter.


Can anyone help me to solve this issue? Thank you very much.

Sincerely,
Yaxing

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


[MAPSERVER-USERS] Joining two tables and directing multiple row results to a template

2008-09-03 Thread udaysr

Hi,

I have a question about joining two tables and viewing my multiple row
(one-to-many) results. Essentially, I am doing what is described in an
earlier post by Steven Monai on joining two tables 'opo' and 'pippo':
http://www.nabble.com/Re%3A--UMN_MAPSERVER-USERS--Join-between-Postgis-table-and-Postgresql-table-p1477848.html

I have two tables, x_addresses and x_voters. Multiple voters can reside in
the same address. I want to display points for each address, and when these
points are clicked on, I want to display all the voters who reside at this
address. Each address could have 0 or more voters associated with it. Each
voter has either 0 or 1 address. This is exactly the situation described in
the post above, and I am doing the following in my map file:

LAYER
NAME "MyAddressPoints"  
TYPE POINT
STATUS OFF
# database
  CONNECTIONTYPE postgis
  CONNECTION "user= dbname= host=localhost"
  PROCESSING "CLOSE_CONNECTION=DEFER"
  DATA "the_geom from (select addr.the_geom, addr.house_number,
addr.street_info, addr.city, addr.state, addr.zip, addr.county_fips,
addr.precinct_name, addr.latitude, addr.longitude, addr.address_id, vtr.gid,
addr.voters, vtr.first_name, vtr.last_name, vtr.voter_id, vtr.status from
x_addresses as addr LEFT OUTER JOIN x_voters as vtr on
addr.address_id=vtr.address_id where addr.latitude is not null and
addr.longitude is not null) as temp using unique gid using SRID=4326"  
MAXSCALEDENOM 40
PROJECTION
"init=epsg:4326"
END   
TEMPLATE "templates/repeat.html"
HEADER "templates/header.html"
FOOTER "templates/footer.html"

My query works (as intended, I believe). The issue is that I want to be able
to display all results on double clicking on the point displayed. I think
there is an inefficiency in that points are displayed one over the other
when there are multiple voters at the same address, per this query. (Smaller
question - can that be optimized? Should I preferably be using the JOIN
tag?)

But my primary issue is that I am not able to display the details of the
multiple persons using the templates.

The repeat.html template just has table rows in it:

  Street[street_info]
  City, State[city], [state]
  Zip[zip]
  Lat/Long[latitude]/[longitude]
  County FIPS[county_fips]
  PrecinctName[precinct_name]
  Voter Count[voters]
  Voter
  Voter ID[voter_id]
  First Name[first_name]
  Last Name[last_name]
  Status([status])

BTW, I set the mode query parameter in the URL to the map file to NQUERY.

The web application uses OpenLayers and php, and the URL accessed when
double clicking on an address point is specified in Javascript as follows:

var url =  MyAddressPoints.getFullRequestString({
REQUEST: "GetFeatureInfo",
EXCEPTIONS: "application/vnd.ogc.se_xml",
BBOX: MyAddressPoints.map.getExtent().toBBOX(),
X: e.xy.x,
Y: e.xy.y,
INFO_FORMAT: 'text/html',
QUERY_LAYERS: MyAddressPoints.params.LAYERS,
WIDTH: MyAddressPoints.map.size.w,
HEIGHT: MyAddressPoints.map.size.h});
OpenLayers.loadURL(url, '', this, setHTML);


This just displays a single voter all the time in the table, instead of the
multiple I would like to display. Is there a way to  obtain multiple row
results from a single point double click and display them?

Thank you!

- Uday

-- 
View this message in context: 
http://www.nabble.com/Joining-two-tables-and-directing-multiple-row-results-to-a-template-tp19293398p19293398.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] Brand New User

2008-09-03 Thread Bob Pawley

Hi

This is my first foray into servers et al. I have a couple of questions for 
anyone who wishes to answer.


I have downloaded ms4w (Windows install package) installed it and tested for 
working by asking for version number through command line as well as an HTTP 
request to mapserver.exe. Both were successful.


Eventually I want to access a Postgis database.

I have also downloaded Workshp -5 and installed it under ms4w/Apache/htdocs

My first challenge comes with setting the url and pathways in Workshop-5 Map 
File and html pages.


I want to set the system up as a local app until I get it running.

1. Can Someone give me a url and pathway example of a local setup? (I've 
attempted variations on localhost and localhost.localdomain with no 
success).


2. Since Map File appears to be project oriented is this a file that I need 
to generate in order to access Poistgis?


Bob



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


[mapserver-users] Re: How to make MapServer WMS/WCS support multi-band raster data

2008-09-03 Thread Yaxing Wei

FYI.

Yaxing Wei

Postdoctoral Research Associate

Environmental Science Division
Oak Ridge National Laboratory
P.O. Box 2008, MS 6407
Oak Ridge, TN 37830

Phone: 865-241-3403
Fax:   865-574-4665



Yaxing Wei wrote:
I'm trying to put some GeoTIFF format raster data with multiple bands 
into MapServer WMS and WCS.


My goal is:
- For WMS, use something like "bands=2" in a WMS request to retrieve 
an image of a specific band.
- For WCS, use something like "bands=2" or "bands=2,4,7" in a WCS 
request to retrieve data of some specific bands.


What I did is:
- In the mapfile for WCS, I added
   "wcs_rangeset_axes"   "bands"
  in the LAYER's METADATA part, so I'm able to use "band=2" or 
"band=4" to retrieve only ONE band in each WCS request. But I can't 
retrieve multiple bands using something like "bands=2,4,7", the 
Exception message looks like:
  locator="bands">msWCSGetCoverage(): WCS server error. Error specifying 
"bands" parameter value(s).


I have no idea at all about how to configure WMS mapfile to enable the 
bands parameter.


Can anyone help me to solve this issue? Thank you very much.

Sincerely,
Yaxing



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


Re: [mapserver-users] ArcSDE 9.2 support

2008-09-03 Thread Jeff McKenna

My only comment is that the SDE plugins in MS4W are quite old
(~2007/09/17), but Howard would have to speak to whether that could be
an issue.  Liz, what happens when u try CONNECTIONTYPE PLUGIN (as 
instructed in the MS4W readme[1])?


[1] http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/

Liz Godwin wrote:

Hey folks,

I noticed there was a closed bug on this issue, but I am still having 
problems connecting to SDE with Unicade enabled.

http://trac.osgeo.org/mapserver/ticket/2225

We have the most recent version of Mapserver (5.2) and all the libraries 
are updated, and it still does not work.  On windows with MS4W 2.2.9 and 
the SDE 9.2 plugin, I get the attached image (unicode.png).  On Linux, I 
get an Internal Server Error (Premature End of Script Error in Apache 
log) and no debug information is written to the mapserver log.


Is there something to configure that we're missing to support this change?

We have a workaround in mind, but it's a lot of work to reload all the 
data to remove unicode.


  LAYER # on Linux
DEBUG 5
NAME myname
TYPE point
STATUS DEFAULT
CONNECTIONTYPE SDE
CONNECTION "host,port:,instance,user,pass"
DATA "MARTVECTOR.CUL_NSF_POP_PLACE,SHAPE"
   
LABELITEM ""

CLASS
  NAME "Points"
  SYMBOL 'tent'
  COLOR 255 0 0
  OUTLINECOLOR 125 125 125
  SIZE 10
  LABEL
   
COLOR 255 0 0

FONT arial
TYPE truetype
size 10
  END
END



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


Re: [mapserver-users] Brand New User

2008-09-03 Thread Jeff McKenna

Hello,

Welcome into the foray :)  I have some comments below inline:


Bob Pawley wrote:

Hi

This is my first foray into servers et al. I have a couple of questions 
for anyone who wishes to answer.


I have downloaded ms4w (Windows install package) installed it and tested 
for working by asking for version number through command line as well as 
an HTTP request to mapserver.exe. Both were successful.


great!



Eventually I want to access a Postgis database.

I have also downloaded Workshp -5 and installed it under ms4w/Apache/htdocs


MS4W is designed to have all of the add-on applications live in 
/ms4w/apps/.


Also, to quote from the MS4W README:

"...a new httpd_*.conf file should [also] be added to 
/ms4w/httpd.d/httpd_*.conf. (The /httpd.d/ directory contains Apache 
configuration files that define which files on your computer/server are 
Web-accessible. For each Web application that you install, a new 
configuration file [will need to be created]."


Once you have created the new Apache alias that way, then you should 
restart Apache (run /ms4w/restart-apache.bat from the commandline) and 
goto 127.0.0.1/youralias





My first challenge comes with setting the url and pathways in Workshop-5 
Map File and html pages.


I want to set the system up as a local app until I get it running.

1. Can Someone give me a url and pathway example of a local setup? (I've 
attempted variations on localhost and localhost.localdomain with no 
success).


see above



2. Since Map File appears to be project oriented is this a file that I 
need to generate in order to access Poistgis?




Yes you will need to generate a custom mapfile.  Here are some resources 
for you:


- Vector Data Reference guide, for PostGIS: 
http://mapserver.gis.umn.edu/docs/reference/vector_data/postgis
- testing your .map file with the shp2img.exe utility (after executing 
/ms4w/setenv.bat at the commandline): 
http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img


Also, please note that MS4W does have its own mailing list for 
configuration issues (join at: 
http://lists.maptools.org/mailman/listinfo/ms4w-users_


have fun.

--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/

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


Re: [MAPSERVER-USERS] Highlighting query results

2008-09-03 Thread Steve Lime
Are you sure the search is returning something? (e.g. it worked)

Steve

>>> On 9/3/2008 at 7:54 AM, in message
<[EMAIL PROTECTED]>, shurhen <[EMAIL PROTECTED]>
wrote:
> Thank you, Steve!
> 
> I tried your way, but I have not got result - selected object still remains 
> same as others. 
> I've added these lines in map-file but there are no results:
> 
> QUERYMAP
>   COLOR 0 0 255
>   STATUS ON
>   STYLE HILITE
> END
> 
> What I've missed?
> 
> 
> 2BrainDrain: Thank you, I'll try and your way too. 
> 
> Steve Lime wrote:
>> 
>> MapServer supports what's called a query map. It basically replaces the
>> color of the top-most
>> style for a layer with one defined in the query map object (default is
>> yellow). Typically in MapScript
>> you'd do:
>> 
>>   a_layer.queryByAttributes(m_map, null, a_query, 1);
>>   img = m_map.drawQuery();
>> 
>> You can of course get fancier and step through the result set by hand but
>> I wouldn't recommend 
>> starting that way.
>> 
>> Steve
> ___
> 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] Question related to MapScript

2008-09-03 Thread Roberto Caron
Hi,
 
  In our infrastructure,
Map Server will be installed on a machine and our Web Apps Servlet will on
another machine. Some Web Apps Servlet will have to use MapScript Jar file to
create map file. We were wondering if the both must be sit on the same machine
or they can leave separate as long as we provide all the dependencies. 
 
  Thanks
  Roberto (Fujitsu)


  __
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers and share what you know at http://ca.answers.yahoo.com___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] how do you unsubscribe from this list

2008-09-03 Thread Pete Kennedy

anyone know?

thanks

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


Re: [mapserver-users] how do you unsubscribe from this list

2008-09-03 Thread Kristian Thy
On Wed, Sep 03, Pete Kennedy wrote:
> anyone know?

Have you tried looking at the link at the bottom of each and every mail
you receive from the list?

\\kristian
-- 
... et nemo ex vobis interrogat me: »Quo vadis?«
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] how do you unsubscribe from this list

2008-09-03 Thread Gregor Mosheh

http://mapserver.gis.umn.edu/community/mailinglists/mapserver-users/

http://lists.osgeo.org/mailman/listinfo/mapserver-users

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] rfc43 gtile returning blank images, while WMS works

2008-09-03 Thread akrherz

Hi Mapsurfers,

I have been messing around with RFC43 (GTile support) and only seem to get 
blank tiles.  For example, here is a GTile request


http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?layers=nexrad-n0r-900913&mode=tile&tilemode=gmap&tile=0+1+2

I then turn that URL into an equivalent WMS request:

http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?width=256&height=256&FORMAT=image/png&srs=EPSG:900913&request=GetMap&service=WMS&version=1.1.1&layers=nexrad-n0r-900913&bbox=-20026376.390922,11131.949078,-10029886.119078,10007622.220922

and get data.  Any ideas what I may be doing wrong?


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


Re: [mapserver-users] Brand New User

2008-09-03 Thread Bob Pawley

Thanks Jeff

"...a new httpd_*.conf file should [also] be added to
/ms4w/httpd.d/httpd_*.conf."

Does this mean that these files are installed when the Web application (in
this case Workshop-5) is extracted into ms4w/app or is this a file which I
need to generate?? At the moment I can't find any such file under
ms4w/httpd.

If I need to generate the file is there an example around??

Bob
- Original Message - 
From: "Jeff McKenna" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, September 03, 2008 10:57 AM
Subject: Re: [mapserver-users] Brand New User



Hello,

Welcome into the foray :)  I have some comments below inline:


Bob Pawley wrote:

Hi

This is my first foray into servers et al. I have a couple of questions 
for anyone who wishes to answer.


I have downloaded ms4w (Windows install package) installed it and tested 
for working by asking for version number through command line as well as 
an HTTP request to mapserver.exe. Both were successful.


great!



Eventually I want to access a Postgis database.

I have also downloaded Workshp -5 and installed it under 
ms4w/Apache/htdocs


MS4W is designed to have all of the add-on applications live in 
/ms4w/apps/.


Also, to quote from the MS4W README:

"...a new httpd_*.conf file should [also] be added to 
/ms4w/httpd.d/httpd_*.conf. (The /httpd.d/ directory contains Apache 
configuration files that define which files on your computer/server are 
Web-accessible. For each Web application that you install, a new 
configuration file [will need to be created]."


Once you have created the new Apache alias that way, then you should 
restart Apache (run /ms4w/restart-apache.bat from the commandline) and 
goto 127.0.0.1/youralias





My first challenge comes with setting the url and pathways in Workshop-5 
Map File and html pages.


I want to set the system up as a local app until I get it running.

1. Can Someone give me a url and pathway example of a local setup? (I've 
attempted variations on localhost and localhost.localdomain with no 
success).


see above



2. Since Map File appears to be project oriented is this a file that I 
need to generate in order to access Poistgis?




Yes you will need to generate a custom mapfile.  Here are some resources 
for you:


- Vector Data Reference guide, for PostGIS: 
http://mapserver.gis.umn.edu/docs/reference/vector_data/postgis
- testing your .map file with the shp2img.exe utility (after executing 
/ms4w/setenv.bat at the commandline): 
http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img


Also, please note that MS4W does have its own mailing list for 
configuration issues (join at: 
http://lists.maptools.org/mailman/listinfo/ms4w-users_


have fun.

--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.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] ArcSDE 9.3 support?

2008-09-03 Thread Robert Sanson
Does anyone know if ArcSDE v 9.3 will be supported? We will soon be migrating 
from v9.1 to 9.3.
 
Many thanks,
 
Robert Sanson
--
The contents of this email are confidential to AsureQuality. If you have 
received this communication in error please notify the sender immediately and 
delete the message and any attachments. The opinions expressed in this email 
are not necessarily those of AsureQuality. This message has been scanned for 
known viruses before delivery. AsureQuality supports the Unsolicited Electronic 
Messages Act 2007. If you do not wish to receive similar communications in 
future, please notify the sender of this message.
--


This message has been scanned for malware by SurfControl plc. 
www.surfcontrol.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Brand New User

2008-09-03 Thread Jeff McKenna
Again, MS4W does have its own mailing list so it would be better to use 
that for configuration questions.


You could download an MS4W add-on package from the MS4W downloads page, 
extract it at the same drive root, and look in ms4w/httpd.d/ again.


Once more, please move this discussion to the MS4W mailing list.  thank you.


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/

Bob Pawley wrote:

Thanks Jeff

"...a new httpd_*.conf file should [also] be added to
/ms4w/httpd.d/httpd_*.conf."

Does this mean that these files are installed when the Web application (in
this case Workshop-5) is extracted into ms4w/app or is this a file which I
need to generate?? At the moment I can't find any such file under
ms4w/httpd.

If I need to generate the file is there an example around??

Bob
- Original Message - From: "Jeff McKenna" 
<[EMAIL PROTECTED]>

To: 
Sent: Wednesday, September 03, 2008 10:57 AM
Subject: Re: [mapserver-users] Brand New User



Hello,

Welcome into the foray :)  I have some comments below inline:


Bob Pawley wrote:

Hi

This is my first foray into servers et al. I have a couple of 
questions for anyone who wishes to answer.


I have downloaded ms4w (Windows install package) installed it and 
tested for working by asking for version number through command line 
as well as an HTTP request to mapserver.exe. Both were successful.


great!



Eventually I want to access a Postgis database.

I have also downloaded Workshp -5 and installed it under 
ms4w/Apache/htdocs


MS4W is designed to have all of the add-on applications live in 
/ms4w/apps/.


Also, to quote from the MS4W README:

"...a new httpd_*.conf file should [also] be added to 
/ms4w/httpd.d/httpd_*.conf. (The /httpd.d/ directory contains Apache 
configuration files that define which files on your computer/server 
are Web-accessible. For each Web application that you install, a new 
configuration file [will need to be created]."


Once you have created the new Apache alias that way, then you should 
restart Apache (run /ms4w/restart-apache.bat from the commandline) and 
goto 127.0.0.1/youralias





My first challenge comes with setting the url and pathways in 
Workshop-5 Map File and html pages.


I want to set the system up as a local app until I get it running.

1. Can Someone give me a url and pathway example of a local setup? 
(I've attempted variations on localhost and localhost.localdomain 
with no success).


see above



2. Since Map File appears to be project oriented is this a file that 
I need to generate in order to access Poistgis?




Yes you will need to generate a custom mapfile.  Here are some 
resources for you:


- Vector Data Reference guide, for PostGIS: 
http://mapserver.gis.umn.edu/docs/reference/vector_data/postgis
- testing your .map file with the shp2img.exe utility (after executing 
/ms4w/setenv.bat at the commandline): 
http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img


Also, please note that MS4W does have its own mailing list for 
configuration issues (join at: 
http://lists.maptools.org/mailman/listinfo/ms4w-users_


have fun.

--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.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] ArcSDE 9.2 support

2008-09-03 Thread Liz Godwin
Hi Jeff,

I should have added that part.  On Windows with MS4W, I DO use the
CONNECTIONTYPE PLUGIN configuration with the plugin.  It renders properly
the points, but not the labels.  On Linux (the layer snippit I included) I
get a server failure, no rendering at all.

Liz

On Wed, Sep 3, 2008 at 1:29 PM, Jeff McKenna
<[EMAIL PROTECTED]>wrote:

> My only comment is that the SDE plugins in MS4W are quite old
> (~2007/09/17), but Howard would have to speak to whether that could be
> an issue.  Liz, what happens when u try CONNECTIONTYPE PLUGIN (as
> instructed in the MS4W readme[1])?
>
> [1] http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde
>
>
> --
> Jeff McKenna
> FOSS4G Consulting and Training Services
> http://www.gatewaygeomatics.com/
>
>
> Liz Godwin wrote:
>
>> Hey folks,
>>
>> I noticed there was a closed bug on this issue, but I am still having
>> problems connecting to SDE with Unicade enabled.
>> http://trac.osgeo.org/mapserver/ticket/2225
>>
>> We have the most recent version of Mapserver (5.2) and all the libraries
>> are updated, and it still does not work.  On windows with MS4W 2.2.9 and the
>> SDE 9.2 plugin, I get the attached image (unicode.png).  On Linux, I get an
>> Internal Server Error (Premature End of Script Error in Apache log) and no
>> debug information is written to the mapserver log.
>>
>> Is there something to configure that we're missing to support this change?
>>
>> We have a workaround in mind, but it's a lot of work to reload all the
>> data to remove unicode.
>>
>>  LAYER # on Linux
>>DEBUG 5
>>NAME myname
>>TYPE point
>>STATUS DEFAULT
>>CONNECTIONTYPE SDE
>>CONNECTION "host,port:,instance,user,pass"
>>DATA "MARTVECTOR.CUL_NSF_POP_PLACE,SHAPE"
>>  LABELITEM ""
>>CLASS
>>  NAME "Points"
>>  SYMBOL 'tent'
>>  COLOR 255 0 0
>>  OUTLINECOLOR 125 125 125
>>  SIZE 10
>>  LABEL
>>  COLOR 255 0 0
>>FONT arial
>>TYPE truetype
>>size 10
>>  END
>>END
>>
>>
> ___
> 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] ArcSDE 9.2 support

2008-09-03 Thread Jeff McKenna
Interesting.  And what happens on Windows when u use CONNECTIONTYPE SDE 
(and move the ogr_SDE.dll)?  just curious.



--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/

Liz Godwin wrote:

Hi Jeff,

I should have added that part.  On Windows with MS4W, I DO use the 
CONNECTIONTYPE PLUGIN configuration with the plugin.  It renders 
properly the points, but not the labels.  On Linux (the layer snippit I 
included) I get a server failure, no rendering at all.


Liz

On Wed, Sep 3, 2008 at 1:29 PM, Jeff McKenna 
<[EMAIL PROTECTED] > 
wrote:


My only comment is that the SDE plugins in MS4W are quite old
(~2007/09/17), but Howard would have to speak to whether that could be
an issue.  Liz, what happens when u try CONNECTIONTYPE PLUGIN (as
instructed in the MS4W readme[1])?

[1]
http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde


-- 
Jeff McKenna

FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/


Liz Godwin wrote:

Hey folks,

I noticed there was a closed bug on this issue, but I am still
having problems connecting to SDE with Unicade enabled.
http://trac.osgeo.org/mapserver/ticket/2225

We have the most recent version of Mapserver (5.2) and all the
libraries are updated, and it still does not work.  On windows
with MS4W 2.2.9 and the SDE 9.2 plugin, I get the attached image
(unicode.png).  On Linux, I get an Internal Server Error
(Premature End of Script Error in Apache log) and no debug
information is written to the mapserver log.

Is there something to configure that we're missing to support
this change?

We have a workaround in mind, but it's a lot of work to reload
all the data to remove unicode.

 LAYER # on Linux
   DEBUG 5
   NAME myname
   TYPE point
   STATUS DEFAULT
   CONNECTIONTYPE SDE
   CONNECTION "host,port:,instance,user,pass"
   DATA "MARTVECTOR.CUL_NSF_POP_PLACE,SHAPE"
 LABELITEM ""
   CLASS
 NAME "Points"
 SYMBOL 'tent'
 COLOR 255 0 0
 OUTLINECOLOR 125 125 125
 SIZE 10
 LABEL
 COLOR 255 0 0
   FONT arial
   TYPE truetype
   size 10
 END
   END


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


[mapserver-users] Combine Spatial & attribute queries

2008-09-03 Thread Hallgren, Johan
Hello

I'm working with Mapserver 5.2 and with the C# interface.

Now I use a Oracle spatial layer and we would like to query the layer with a 
combination of spatial and attribute queries. Today a first use queryByRect and 
then queryByAttribute. Two queries will be sent to Oracle and the resultCache 
will only have the result of the latest query.

How can I solve this? Primarily I only will send one query to the database, 
both with the spatial and the attribute part.

br
Johan

Johan Hallgren
Logica
Pelle Bergs backe 3
Box 1938, 791 19 Falun
Tel (och mobil): 023-547 46 (int: +46-2354746)
[EMAIL PROTECTED]
http://www.logica.se

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


RE: [mapserver-users] Combine Spatial & attribute queries

2008-09-03 Thread Venkat Rao Tammineni
Hi,

 

I have done code  for  spatial Query..

 

 

This is Spatial Query..

   protected void ContriesEnvelop()

{

layer = MapFunction.Map.getLayerByName("Countries"); // Get
Layer by name

string strSubRegionsClassItem = "cntry_name=";

string strDropDownSelectedItem = "'" +
lstContries.SelectedItem.Text + "'";

string strQuery = strSubRegionsClassItem +
strDropDownSelectedItem;

 

   

res = layer.queryByAttributes(MapFunction.Map, "CNTRY_NAME",
strQuery, 1);

 

 

if (res == (int)EnumMap.RESULT_CODE.MS_SUCCESS)

{

results = layer.getResults();

if (results != null)

{

resulCacheObj = results.getResult(0);

layer.open();

layer.close();

}

}

 

using (results = layer.getResults())

{

if (results != null && results.numresults > 0)

{

// calculating the extent of the results

if (query_bounds == null)

{ query_bounds = new rectObj(results.bounds.minx,
results.bounds.miny, results.bounds.maxx, results.bounds.maxy, 0); }

else

{

if (results.bounds.minx < query_bounds.minx)

{ query_bounds.minx = results.bounds.minx; }

if (results.bounds.miny < query_bounds.miny)

{ query_bounds.miny = results.bounds.miny; }

if (results.bounds.maxx > query_bounds.maxx)

{ query_bounds.maxx = results.bounds.maxx; }

if (results.bounds.maxy > query_bounds.maxy)

{ query_bounds.maxy = results.bounds.maxy; }

}

}

}

if (zoomToResults)

{

try

{

MapFunction.Map.setExtent(query_bounds.minx,
query_bounds.miny, query_bounds.maxx, query_bounds.maxy);

}

catch (NullReferenceException exp)

{}

}

MapFunction.IsMapInDirectory = true;

}

 

This Method is for Getting Non Spatial query and populates data in Listbox .
based on Listbox data zooms to the shape..

 

  public void PopulateContries()

{

strSelectedItem = lstSubRegions.SelectedValue;

conn = new NpgsqlConnection(_AppSetting.GetConnection);

conn.Open();

String strSql = string.Format(_AppSetting.GetCntryCmdText,
strSelectedItem);

dataAdapter = new NpgsqlDataAdapter(strSql, conn);

dataSet = new DataSet();

dataAdapter.Fill(dataSet, _AppSetting.GetCntryTblName);

lstContries.DataSource =
dataSet.Tables[_AppSetting.GetCntryTblName];

lstContries.DataTextField = _AppSetting.GetCntryDataFieldName;

lstContries.DataBind();

conn.Close();

}

 

Is it same you want?let me know..But I am using Postgresql..

 

Thanks and Regards

Venkat.

India

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hallgren,
Johan
Sent: Thursday, September 04, 2008 11:49 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Combine Spatial & attribute queries

 

Hello

 

I'm working with Mapserver 5.2 and with the C# interface. 

 

Now I use a Oracle spatial layer and we would like to query the layer with a
combination of spatial and attribute queries. Today a first use queryByRect
and then queryByAttribute. Two queries will be sent to Oracle and the
resultCache will only have the result of the latest query. 

 

How can I solve this? Primarily I only will send one query to the database,
both with the spatial and the attribute part.

 

br

Johan 

 


Johan Hallgren


Logica
Pelle Bergs backe 3
Box 1938, 791 19 Falun
Tel (och mobil): 023-547 46 (int: +46-2354746)
[EMAIL PROTECTED]
http://www.logica.se  

 

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