[mapserver-users] WFS Spatial Filter Problem

2011-08-05 Thread Bryan Hempen
The problem: I am trying to implement something similar to 
http://openlayers.org/dev/examples/wfs-spatial-filter.html with my own 
data served by MapServer through a WFS. I just changed some lines in the 
code to make it work with MapServer, so the code is almost equal to the 
code in the example at the moment. So far it's working fine UNTIL I drag 
the polygon to apply the spatial filter! According to the 
getCapabitilies the server should be able to handle the request:


...
ogc:Spatial_Capabilities
ogc:Spatial_Operators
ogc:Equals/
ogc:Disjoint/
ogc:Touches/
ogc:Within/
ogc:Overlaps/
ogc:Crosses/
ogc:Intersect/
ogc:Contains/
ogc:DWithin/
ogc:BBOX/
/ogc:Spatial_Operators
/ogc:Spatial_Capabilities
...

Both WFS GetFeature requests are sent via HTTP POST. The first one that 
works (called on page load) looks like this:


wfs:GetFeature xmlns:wfs=http://www.opengis.net/wfs; xmlns:xsi=http  
://www.w3.org/2001/XMLSchema-instance service=WFS version=1.0.0 
xsi:schemaLocation=http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd;

wfs:Query typeName=omega
ogc:Filter xmlns:ogc=http://www  .opengis.net/ogc
ogc:BBOX
ogc:PropertyNamemsGeometry/ogc:PropertyName
gml:Box xmlns:gml=http:  //www.opengis.net/gml srsName=EPSG:4326
gml:coordinates decimal=. cs=, ts= 135.45,-47.425 
157.95,-36.175/gml:coordinates

/gml:Box
/ogc:BBOX
/ogc:Filter
/wfs:Query
/wfs:GetFeature

The request not working looks like this:

wfs:GetFeature xmlns:wfs=http://www.opengis.net/wfs; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; service=WFS 
version=1.0.0 xsi:schemaLocation=http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd;
wfs:Query xmlns:ms=http://mapserver.gis.umn.edu/mapserver; 
typeName=ms:omega

ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;
ogc:And
ogc:Intersects
ogc:PropertyNamemsGeometry/ogc:PropertyName
gml:Polygon xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:4326
gml:outerBoundaryIs
gml:LinearRing
gml:coordinates decimal=. cs=, ts= 
145.72880866081,-40.709423872828 145.83867194206,-42.752880904078 
148.34355475456,-40.995068404078 
145.72880866081,-40.709423872828/gml:coordinates

/gml:LinearRing
/gml:outerBoundaryIs
/gml:Polygon
/ogc:Intersects
ogc:BBOX
ogc:PropertyNamemsGeometry/ogc:PropertyName
gml:Box xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:4326
gml:coordinates decimal=. cs=, ts= 135.45,-47.40302734375 
157.95,-36.15302734375/gml:coordinates

/gml:Box
/ogc:BBOX
/ogc:And
/ogc:Filter
/wfs:Query
/wfs:GetFeature

Does anyone have an idea? Any help is appreciated, I am stuck.

The setup:

   * OS: Red Hat Enterprise Linux 5.4
   * PostgreSQL 8.2
   * PostGIS 1.3
   * MapServer 5.6.5
   * OpenLayers, one of the latest versions. ProxyHost set and working
 (calling the proxy.cgi shows OpenLayers website)

Kind regards,
Bryan


This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, 

use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in 

error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by   

the sender. 


Please consider the environment before printing this email.
=

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


Re: [mapserver-users] WFS Spatial Filter Problem

2011-08-05 Thread Bryan Hempen

Sorry, I forgot to mention the Error message:

!DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhead
title500 Internal Server Error/title
/headbody
h1Internal Server Error/h1
pThe server encountered an internal error or
misconfiguration and was unable to complete
your request./p
pPlease contact the server administrator,
 root@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error./p
pMore information about this error may be available
in the server error log./p
hr
addressApache/2.2.3 (Red Hat) Server at localhost Port 80/address
/body/html

Thanks,
Bryan

On 05/08/2011 13:02, Bryan Hempen wrote:
The problem: I am trying to implement something similar to 
http://openlayers.org/dev/examples/wfs-spatial-filter.html with my own 
data served by MapServer through a WFS. I just changed some lines in 
the code to make it work with MapServer, so the code is almost equal 
to the code in the example at the moment. So far it's working fine 
UNTIL I drag the polygon to apply the spatial filter! According to the 
getCapabitilies the server should be able to handle the request:


...
ogc:Spatial_Capabilities
ogc:Spatial_Operators
ogc:Equals/
ogc:Disjoint/
ogc:Touches/
ogc:Within/
ogc:Overlaps/
ogc:Crosses/
ogc:Intersect/
ogc:Contains/
ogc:DWithin/
ogc:BBOX/
/ogc:Spatial_Operators
/ogc:Spatial_Capabilities
...

Both WFS GetFeature requests are sent via HTTP POST. The first one 
that works (called on page load) looks like this:


wfs:GetFeature xmlns:wfs=http://www.opengis.net/wfs; 
xmlns:xsi=http  ://www.w3.org/2001/XMLSchema-instance service=WFS 
version=1.0.0 xsi:schemaLocation=http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd;

wfs:Query typeName=omega
ogc:Filter xmlns:ogc=http://www  .opengis.net/ogc
ogc:BBOX
ogc:PropertyNamemsGeometry/ogc:PropertyName
gml:Box xmlns:gml=http:  //www.opengis.net/gml srsName=EPSG:4326
gml:coordinates decimal=. cs=, ts= 135.45,-47.425 
157.95,-36.175/gml:coordinates

/gml:Box
/ogc:BBOX
/ogc:Filter
/wfs:Query
/wfs:GetFeature

The request not working looks like this:

wfs:GetFeature xmlns:wfs=http://www.opengis.net/wfs; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; service=WFS 
version=1.0.0 xsi:schemaLocation=http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd;
wfs:Query xmlns:ms=http://mapserver.gis.umn.edu/mapserver; 
typeName=ms:omega

ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;
ogc:And
ogc:Intersects
ogc:PropertyNamemsGeometry/ogc:PropertyName
gml:Polygon xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:4326
gml:outerBoundaryIs
gml:LinearRing
gml:coordinates decimal=. cs=, ts= 
145.72880866081,-40.709423872828 145.83867194206,-42.752880904078 
148.34355475456,-40.995068404078 
145.72880866081,-40.709423872828/gml:coordinates

/gml:LinearRing
/gml:outerBoundaryIs
/gml:Polygon
/ogc:Intersects
ogc:BBOX
ogc:PropertyNamemsGeometry/ogc:PropertyName
gml:Box xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:4326
gml:coordinates decimal=. cs=, ts= 135.45,-47.40302734375 
157.95,-36.15302734375/gml:coordinates

/gml:Box
/ogc:BBOX
/ogc:And
/ogc:Filter
/wfs:Query
/wfs:GetFeature

Does anyone have an idea? Any help is appreciated, I am stuck.

The setup:

* OS: Red Hat Enterprise Linux 5.4
* PostgreSQL 8.2
* PostGIS 1.3
* MapServer 5.6.5
* OpenLayers, one of the latest versions. ProxyHost set and
  working (calling the proxy.cgi shows OpenLayers website)

Kind regards,
Bryan

This message and any attachments are intended for the use of the addressee or 
addressees only. The unauthorised disclosure,

use, dissemination or copying (either in whole or in part) of its content is 
not permitted. If you received this message in

error, please notify the sender and delete it from your system. Emails can be 
altered and their integrity cannot be guaranteed by

the sender.

Please consider the environment before printing this email.
=


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




This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, 

use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in 

error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by   

the sender. 


Please consider the environment before printing this email.

Re: [mapserver-users] WFS Spatial Filter Problem

2011-08-05 Thread John Callahan
This thread may or may not help:
http://osgeo-org.1803224.n2.nabble.com/WFS-intersect-request-td6458533.html

I have not tried using AND compound filters.  The following format does work
for me using the BBOX filter.

ogc:BBOX
ogc:PropertyNameSHAPE/ogc:PropertyName
gml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:26957
gml:lowerCorner149081.76574899518 163078.62572595105/gml:lowerCorner
gml:upperCorner205627.85303800018 194899.95291598293/gml:upperCorner
/gml:Envelope
/ogc:BBOX

- John

***
John Callahan, Research Scientist
Delaware Geological Survey
University of Delaware
URL: http://www.dgs.udel.edu
***


On Fri, Aug 5, 2011 at 7:02 AM, Bryan Hempen bhem...@sciops.esa.int wrote:

 **
 The problem: I am trying to implement something similar to
 http://openlayers.org/dev/examples/wfs-spatial-filter.html with my own
 data served by MapServer through a WFS. I just changed some lines in the
 code to make it work with MapServer, so the code is almost equal to the code
 in the example at the moment. So far it's working fine UNTIL I drag the
 polygon to apply the spatial filter! According to the getCapabitilies the
 server should be able to handle the request:

 ...
   ogc:Spatial_Capabilities
 ogc:Spatial_Operators
   ogc:Equals/
   ogc:Disjoint/
   ogc:Touches/
   ogc:Within/
   ogc:Overlaps/
   ogc:Crosses/
   ogc:Intersect/
   ogc:Contains/
   ogc:DWithin/
   ogc:BBOX/
 /ogc:Spatial_Operators
   /ogc:Spatial_Capabilities
 ...

 Both WFS GetFeature requests are sent via HTTP POST. The first one that
 works (called on page load) looks like this:

 wfs:GetFeature 
 xmlns:wfs=http://www.opengis.net/wfs;http://www.opengis.net/wfsxmlns:xsi=http
   ://
 www.w3.org/2001/XMLSchema-instance service=WFS version=1.0.0
 xsi:schemaLocation=http://www.opengis.net/wfs
 http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd;http://www.opengis.net/wfshttp://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd
 
 wfs:Query typeName=omega
 ogc:Filter xmlns:ogc=http://www  
 .opengis.net/ogchttp://www%C2%A0.opengis.net/ogc
 
 ogc:BBOX
 ogc:PropertyNamemsGeometry/ogc:PropertyName
 gml:Box xmlns:gml=http:  
 //www.opengis.net/gmlhttp:%C2%A0//www.opengis.net/gmlsrsName=EPSG:4326
 gml:coordinates decimal=. cs=, ts=
 135.45,-47.425 157.95,-36.175/gml:coordinates
 /gml:Box
 /ogc:BBOX
 /ogc:Filter
 /wfs:Query
 /wfs:GetFeature

 The request not working looks like this:

 wfs:GetFeature 
 xmlns:wfs=http://www.opengis.net/wfs;http://www.opengis.net/wfsxmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;http://www.w3.org/2001/XMLSchema-instanceservice=WFS
  version=1.0.0 xsi:schemaLocation=http://www.opengis.net/wfs
 http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd;http://www.opengis.net/wfshttp://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd
 
   wfs:Query 
 xmlns:ms=http://mapserver.gis.umn.edu/mapserver;http://mapserver.gis.umn.edu/mapservertypeName=ms:omega
 ogc:Filter 
 xmlns:ogc=http://www.opengis.net/ogc;http://www.opengis.net/ogc
 
   ogc:And
 ogc:Intersects
   ogc:PropertyNamemsGeometry/ogc:PropertyName
   gml:Polygon 
 xmlns:gml=http://www.opengis.net/gml;http://www.opengis.net/gmlsrsName=EPSG:4326
 gml:outerBoundaryIs
   gml:LinearRing
 gml:coordinates decimal=. cs=, ts=
 145.72880866081,-40.709423872828 145.83867194206,-42.752880904078
 148.34355475456,-40.995068404078
 145.72880866081,-40.709423872828/gml:coordinates
   /gml:LinearRing
 /gml:outerBoundaryIs
   /gml:Polygon
 /ogc:Intersects
 ogc:BBOX
   ogc:PropertyNamemsGeometry/ogc:PropertyName
   gml:Box 
 xmlns:gml=http://www.opengis.net/gml;http://www.opengis.net/gmlsrsName=EPSG:4326
 gml:coordinates decimal=. cs=, ts=
 135.45,-47.40302734375 157.95,-36.15302734375/gml:coordinates
   /gml:Box
 /ogc:BBOX
   /ogc:And
 /ogc:Filter
   /wfs:Query
 /wfs:GetFeature

 Does anyone have an idea? Any help is appreciated, I am stuck.

 The setup:

- OS: Red Hat Enterprise Linux 5.4
- PostgreSQL 8.2
- PostGIS 1.3
 - MapServer 5.6.5
- OpenLayers, one of the latest versions. ProxyHost set and working
(calling the proxy.cgi shows OpenLayers website)

 Kind regards,
 Bryan

 
 This message and any attachments are intended for the use of the addressee or 
 addressees only. The unauthorised disclosure,

 use, dissemination or copying (either in whole or in part) of its content is 
 not permitted. If you received this message in

 error, please notify the sender and delete it from your system. Emails can be 
 altered and their integrity cannot be guaranteed 

[mapserver-users] Missing 1/2 a raster image in Google tilemode

2011-08-05 Thread forums
I have a GeoTiff file with an extent of:

Upper Left  (   0.000,  90.000) (  0d 0' 0.01E, 90d 0' 0.00N)
Lower Left  (   0.000, -90.000) (  0d 0' 0.01E, 90d 0' 0.00S)
Upper Right ( 360.000,  90.000) (360d 0' 0.00E, 90d 0' 0.00N)
Lower Right ( 360.000, -90.000) (360d 0' 0.00E, 90d 0' 0.00S)
Center  ( 180.000,   0.000) (180d 0' 0.00E,  0d 0' 0.01N)

I set the extent in my map file to:

EXTENT 0 -90 360 90

When I set mode=map the full image displays as I would expect it.
But when I incorporate it into a Google Maps API using
mode=tiletilemode=gmap only the part of the image to show.  Only
the Eastern Hemisphere shows on the map.

I tried gdal_translate  to alter the corners, which shows the whole
map, but East/West hemispheres are swapped.

Are there any tricks I can do to get the whole thing to display?
I'm thinking I might have to some how programmaticly swap left/right
sides of the raster.

Thanks, I appreciate any insight anyone might have.

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


[mapserver-users] tile4ms throwing msSmallMalloc() Error

2011-08-05 Thread Joe Marlin
Hello! Quick question:

I'm running tile4ms roadwaylevel5_meta.txt roadwaylevel5_index, where 
roadwaylevel5_meta.txt is simply my list of shp files:

And getting: msSmallMalloc(): Out of memory allocating -4 bytes.

What does that mean? Why am I getting that? I've already tried:

-Compiling from SVN
-Compiling 6.0.1 from the website
-Trying on a different machine
-Trying to run the command with sudo


The documentation says no extensions in the input file; however, the examples 
in that exact same documentation page DO have the .shp extension. If I remove 
the extensions from my shape files, I get: Aborted. Unable to open 
DBF:./roadwaylevel5_index. ./roadwaylevel5_index.dbf is created, and left 
empty when this happens. Running with sudo makes no difference. 

Thanks for your help, and sorry if I'm missing anything obvious!

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


[mapserver-users] Forgot Password

2011-08-05 Thread Lokendra Singh
Dear,

   Pl. let me know how to retrieve forgot password for
mapserver-users.

-- 
Regards,
Lokendra Singh Tanwar
Mob: +91-9928738191
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] advice on books

2011-08-05 Thread John Callahan
Can anyone point me to a good book on learning Mapserver, and possibly
OpenLayers as well?   I don't usually buy books on software products as
there's so much available online.  However, I recently purchased PostGIS in
Action and it's helped significantly.  I wonder if there's a similar quality
book out there on Mapserver.  Something higher than intro level would be
preferable.  Thanks.

- John

***
John Callahan, Research Scientist
Delaware Geological Survey
University of Delaware
URL: http://www.dgs.udel.edu
***
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] advice on books

2011-08-05 Thread PORTER . DANIEL
John,

I believe there is only one English book out on OpenLayers, called OpenLayers 
2.10 Beginner's Guide 
(https://www.packtpub.com/openlayers-2-1-javascript-web-mapping-library-beginners-guide/book),
 which as the name says, it's a beginner's guide.  He assumes little technical 
knowledge, which makes it very good for getting your bearings.  If you can 
figure out what to do from the OpenLayers examples and API docs, I don't know 
that it has much to offer.  If you're struggling with that, I think it would be 
excellent (disclosure: I worked with Erik, the author of the book).

I have read that this mapserver book is somewhat outdated: 
http://www.amazon.com/Beginning-MapServer-Source-Development-Experts/dp/1590594908
  I have not seen it, though.  It's the only one I know about.

Daniel
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of John Callahan
Sent: Friday, August 05, 2011 1:17 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] advice on books

Can anyone point me to a good book on learning Mapserver, and possibly 
OpenLayers as well?   I don't usually buy books on software products as there's 
so much available online.  However, I recently purchased PostGIS in Action and 
it's helped significantly.  I wonder if there's a similar quality book out 
there on Mapserver.  Something higher than intro level would be preferable.  
Thanks.

- John

***
John Callahan, Research Scientist
Delaware Geological Survey
University of Delaware
URL: http://www.dgs.udel.edu
***
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] advice on books

2011-08-05 Thread John Callahan
Thanks Daniel.  The OpenLayers book looks interesting.  Even though I
typically do fine with online examples, it's probably worth the purchase,
especially since I may be migrating several Google Maps apps to OpenLayers
at some point.

That Mapserver book is from 2005, I agree a bit too old but the only one I
can find as well.   Luckily the Mapserver documentation wiki has everything
we need!

- John





On Fri, Aug 5, 2011 at 1:43 PM, PORTER.DANIEL porter.dan...@flsenate.govwrote:

 John,

 ** **

 I believe there is only one English book out on OpenLayers, called
 “OpenLayers 2.10 Beginner’s Guide” (
 https://www.packtpub.com/openlayers-2-1-javascript-web-mapping-library-beginners-guide/book),
 which as the name says, it’s a beginner’s guide.  He assumes little
 technical knowledge, which makes it very good for getting your bearings.  If
 you can figure out what to do from the OpenLayers examples and API docs, I
 don’t know that it has much to offer.  If you’re struggling with that, I
 think it would be excellent (disclosure: I worked with Erik, the author of
 the book).

 ** **

 I have read that this mapserver book is somewhat outdated:
 http://www.amazon.com/Beginning-MapServer-Source-Development-Experts/dp/1590594908
  I have not seen it, though.  It’s the only one I know about.
 

 ** **

 Daniel

 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *John Callahan
 *Sent:* Friday, August 05, 2011 1:17 PM
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] advice on books

 ** **

 Can anyone point me to a good book on learning Mapserver, and possibly
 OpenLayers as well?   I don't usually buy books on software products as
 there's so much available online.  However, I recently purchased PostGIS in
 Action and it's helped significantly.  I wonder if there's a similar quality
 book out there on Mapserver.  Something higher than intro level would be
 preferable.  Thanks.

 ** **

 - John


 ***
 John Callahan, Research Scientist
 Delaware Geological Survey
 University of Delaware
 URL: http://www.dgs.udel.edu
 ***

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


Re: [mapserver-users] KML output and timestamp

2011-08-05 Thread Yewondwossen Assefa

Sorry for the delay.
It is not supported for now. I have added trac bug on it [1].
You are right that similar mechanism (in terms for metedata) can be used 
to extract time specfic value for the attributes and write it to the kml.


best regards,

[1] http://trac.osgeo.org/mapserver/ticket/3980


On 04/08/2011 9:13 AM, Jørn Vegard Røsnes wrote:

Hi all,

do you know if Mapserver support KML Timestamp for KML output.
http://code.google.com/apis/kml/documentation/time.html

The documentation (http://mapserver.org/output/kml_output.html) says
TimePrimitive:  No
but it's kinda strange because Mapserver supports WMS Time.

Thanks.

kind regards
Jorn Vegard

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




--

Assefa Yewondwossen
Software Analyst

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

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



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


[mapserver-users] mapserver user-Debdut Mitra from India,Kolkata

2011-08-05 Thread Devdut Mitra
What is the job potential of webGis using mapserver with Php scripting
language?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users