Re: [mapserver-users] mapserver-users Digest, Vol 54, Issue 5

2012-07-05 Thread Wang, Ya
Flavio,
Thank you very much for your help. Really appreciate it. 

Ya

-Original Message-
From: Flavio Hendry [mailto:fla...@tydac.ch] 
Sent: Thursday, July 05, 2012 1:38 AM
To: Wang, Ya
Cc: mapserver-users@lists.osgeo.org
Subject: Re: mapserver-users Digest, Vol 54, Issue 5

Hi Ya

yeah, you'd need ArcGIS Server ... which has a very big price tag on it. 
The best way to use MapServer Layers and Maps in other sw is WMS and/or 
WFS. Same for ArcGIS. See i.e.

http://mapserver.org/ogc/wms_server.html

Mit freundlichem Gruss / Best regards
Flavio Hendry


TYDAC Inc.  - http://www.tydac.ch
Web Mapping - http://www.mapserver.ch
Swiss Maps  - http://www.mapplus.ch

  Mit freundlichen Gruessen / Kind Regards
 Flavio Hendry, CEO - mailto:fla...@tydac.ch
 TYDAC AG - http://www.tydac.ch
Geographic Information Solutions
   Optingenstrasse 27 -- CH-3013 Bern
   Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860

Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27




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


Re: [mapserver-users] mapserver-users Digest, Vol 54, Issue 5

2012-07-04 Thread Wang, Ya
Flavio,

Thank you very much for sharing. Just like Mike's, your information is also 
very helpful. I really appreciate it. Follow your link, I see a rich inventory 
of web services offered by ESRI, which are available through ARCGIS Server API 
interface. If I understand it correctly, I need to have ARC GIS Server in order 
to use those web services in my web application or in my smart phone 
application developed with SDK. Do let me know if I am wrong. The use of Map 
Service Layers created with MapServer on the other hand doesn't require any 
expensive software.  However, there is no big player like ESRI to compile a 
list of MapServer map service layers out there in the world. This leads to my 
other question. I know I can load MapServer map service layers into all kinds 
of desktop clients such as UDig, QGIS, etc. How about service layers created by 
ARCGIS Server? Can I do the same thing?

Regard,

Ya




-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
mapserver-users-requ...@lists.osgeo.org
Sent: Wednesday, July 04, 2012 5:44 AM
To: mapserver-users@lists.osgeo.org
Subject: mapserver-users Digest, Vol 54, Issue 5

Send mapserver-users mailing list submissions to
mapserver-users@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
mapserver-users-requ...@lists.osgeo.org

You can reach the person managing the list at
mapserver-users-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of mapserver-users digest...


Today's Topics:

   1. One template for every text type (Andrea Peri)
   2. MapServer vs ArcGIS server (Wang, Ya)
   3. Re: MapServer vs ArcGIS server (Smith, Michael ERDC-RDE-CRREL-NH)
   4. Re: MapServer vs ArcGIS server (Wang, Ya)
   5. Re: MapServer vs ArcGIS server (Mr. Puneet Kishor)
   6. World file creation (Jeff Lake)
   7. Re: MapServer vs ArcGIS server (Flavio Hendry)
   8. Re: wms_accessconstraints (Stephan Mei?l)
   9. Re: Mapserver docs and i18n (Yves Jacolin)


--

Message: 1
Date: Wed, 4 Jul 2012 00:42:24 +0200
From: Andrea Peri aperi2...@gmail.com
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] One template for every text type
Message-ID:
cabqtjk_mo6oppd_yf4mwba-mo8vvm+blhrdtzv0cjblw--c...@mail.gmail.com
Content-Type: text/plain; charset=iso-8859-1

Hi,

As report from documentation, MapServer will allow to define a template to
set the return from an identify.

I need to define almost two distinct kind of returns:
One for user (text/plain or text/html) and one for business application
(text/xml).

So I like to define not only a template for return an XML but also a
template for return an html page.

I don't know how to say to MapServer what template us for text/html and
what for text/xml.

Is this possibile ?

Thx.

-- 
-
Andrea Peri
. . . . . . . . .
qwerty ?
-
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120704/13fe054b/attachment-0001.html

--

Message: 2
Date: Tue, 3 Jul 2012 23:50:56 +
From: Wang, Ya ya.w...@vta.org
To: mapserver-users@lists.osgeo.org
mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapServer vs ArcGIS server
Message-ID: cd4beeccebbaa545974d52eb0a5b6ef128223...@romail4.vta.org
Content-Type: text/plain; charset=us-ascii

Hello All,

I am  wondering if any of you have experience with both MapServer and ArcGIS 
server. How does MapServer compare with ArcGIS server? Besides the fact that 
MapServer is more customizable and more extensible and less expensive, what 
other advantages do MapServer have against ArcGIS server?  


Thanks in advance!

Ya




--

Message: 3
Date: Wed, 4 Jul 2012 00:25:27 +
From: Smith, Michael ERDC-RDE-CRREL-NH michael.sm...@erdc.dren.mil
To: Wang, Ya ya.w...@vta.org, mapserver-users@lists.osgeo.org
mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] MapServer vs ArcGIS server
Message-ID: cc19108a.2e23a%michael.sm...@erdc.dren.mil
Content-Type: text/plain; charset=us-ascii

Ya,

MapServer is cgi (or fastcgi). So it doesn't hold data in memory like
ArcGIS Server does. Also, each MapServer session (since its cgi) is
independent of each other so there is no service to go down. As long as
Apache is running, so is MapServer.

I find that MapServer scales much better for large numbers of request and
multiple maps. ArcGIS Server does well with smaller data sets and less
services (due to ram issues). ArcGIS server can be faster to start with,
since you are composing your maps graphically, but I find

[mapserver-users] MapServer vs ArcGIS server

2012-07-03 Thread Wang, Ya
Hello All,

I am  wondering if any of you have experience with both MapServer and ArcGIS 
server. How does MapServer compare with ArcGIS server? Besides the fact that 
MapServer is more customizable and more extensible and less expensive, what 
other advantages do MapServer have against ArcGIS server?  


Thanks in advance!

Ya


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


Re: [mapserver-users] MapServer vs ArcGIS server

2012-07-03 Thread Wang, Ya
Mike:
Thank you very much for the sharing. It is really great information. I have 
another question now.  How does MapServer compare with ArcGIS server in terms 
of providing API or service layers to support the enthusiasm of the online 
development community?

Regards,

Ya





-Original Message-
From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:michael.sm...@erdc.dren.mil] 
Sent: Tuesday, July 03, 2012 5:26 PM
To: Wang, Ya; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] MapServer vs ArcGIS server

Ya,

MapServer is cgi (or fastcgi). So it doesn't hold data in memory like
ArcGIS Server does. Also, each MapServer session (since its cgi) is
independent of each other so there is no service to go down. As long as
Apache is running, so is MapServer.

I find that MapServer scales much better for large numbers of request and
multiple maps. ArcGIS Server does well with smaller data sets and less
services (due to ram issues). ArcGIS server can be faster to start with,
since you are composing your maps graphically, but I find the MapServer
mapfile editing much (much) faster for repetitive operations. I can script
and copy/paste and (with includes) reuse more styling. With ArcGIS Server,
for anything other that setting basic colors, I find it much slower and
quite tedious.

I find that MapServer works at small or large scale, I run into issues
with ArcGIS server at large scales (lots of data and lots of services).

Then there is the fact that ArcGIS will change on you over time and the
whole architecture can go away and any time. In the time we have been
doing MapServer (coming up on 12 years now), ESRI has gone through 6
different (and incompatible) web mapping engines. Our mapserver stuff
still works. Something to think about when you are in it for the long haul.

Also, when something critical has come up and I need a fix NOW, I have
both made my own code changes and requested fixes from the community and
had responses within hours (sometimes minutes). That is just not possible
with ArcGIS Server. MapServer has a truly impressive community with both
enthusiasts and mature business providing development and support
(MapGears and Gateway Geomatics are two that I am very familiar with and
they are top notch).

We are a government agency and MapServer is production code for us, for
over a decade. And we serve out a lot of data with it.

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center

   

On 7/3/12 8:50 PM, Wang, Ya ya.w...@vta.org wrote:

Hello All,

I am  wondering if any of you have experience with both MapServer and
ArcGIS server. How does MapServer compare with ArcGIS server? Besides the
fact that MapServer is more customizable and more extensible and less
expensive, what other advantages do MapServer have against ArcGIS server?
 


Thanks in advance!

Ya


___
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] Re: Re: Can't get Tinyows WFS Layer to show in OpenLayer

2012-02-03 Thread Wang, Ya
The version is 1.1.0rc1. Seems I need to specify both prefix/server and 
ns_prefix/ns_ur for it to work.. I am wondering why. Thanks.

Ya


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
mapserver-users-requ...@lists.osgeo.org
Sent: Friday, February 03, 2012 1:24 AM
To: mapserver-users@lists.osgeo.org
Subject: mapserver-users Digest, Vol 49, Issue 7

Send mapserver-users mailing list submissions to
mapserver-users@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
mapserver-users-requ...@lists.osgeo.org

You can reach the person managing the list at
mapserver-users-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of mapserver-users digest...


Today's Topics:

   1. Re: How to label only largest displayed areas? (Rahkonen Jukka)
   2. Re: Can't get Tinyows WFS Layer to show inOpenLayer (Wang, Ya)
   3. Re: Re: Can't get Tinyows WFS Layer to show inOpenLayer
  (Rahkonen Jukka)
   4. Using WFS gml_[item name]_alias (Dejan Gambin)
   5. Re: PostGIS Connection String - Thread Issue? (thomas bonfort)
   6. Legend size problem in GetLegendGraphic request (Dejan Gambin)
   7. WFS GetCapabilities does not work with non-ascii characters
  in mapfile (Rahkonen Jukka)


--

Message: 1
Date: Thu, 2 Feb 2012 23:01:23 +
From: Rahkonen Jukka jukka.rahko...@mmmtike.fi
Subject: [mapserver-users] Re: How to label only largest displayed
areas?
To: Lime, Steve D (DNR) steve.l...@state.mn.us, Anzel, Phil -
NRCS, Fort  Collins, CO phil.an...@ftc.usda.gov,
mapserver-users@lists.osgeo.org   
mapserver-users@lists.osgeo.org
Message-ID:
84446def76453c439e9e97e438e13a63067...@suutari.haapa.mmm.fi
Content-Type: text/plain; charset=us-ascii

Hi,

I understood that meaning was to put exactly one label per state. Each state, 
even tiny ones, should be labeled. But one state should get only one label even 
if the map window is splitting the state polygon into two or more 
intersections. Those intersections may be bigger than the tiny state. Not 
extremely simple.

-Jukka-


L Lime, Steve D (DNR) wrote:

 I'd do this by sorting features based on area (ascending order). This would 
 draw the smallest polygons first, but would put the labels for the shapes 
 with the largest area into the label cache last (where they would be placed 
 and drawn first). I've done this with labeling lakes and it works fine.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Anzel, Phil - 
NRCS, Fort Collins, CO
Sent: Thursday, February 02, 2012 1:43 PM
To: mapserver-users@lists.osgeo.org
Cc: Anzel, Phil - NRCS, Fort Collins, CO
Subject: [mapserver-users] How to label only largest displayed areas?

Hi, All,

How can I label only the largest displayed areas within an extent? For example, 
if I'm labeling states of the United States and my extent covers a small region 
around the Maine, New Hampshire and Massachusetts junction, I only want a 
single label for each state, chosen by the largest displayed area (within the 
current map extent) in each state.

I'm using spatial data stored in Microsoft's SQL Server 2008.

I've created an enhancement request ticket (#4173: Define a current layer 
extent's WKT string for use in Data statement) as one possible approach, but 
this approach requires a change to MapServer.

Is there a better way?

Thanks.

- Phil Anzel
  Vistronix Inc for USDA/NRCS/ITC

This electronic message contains information generated by the USDA solely for 
the intended recipients.  Any unauthorized interception of this message or the 
use or disclosure of the information it contains may violate the law and 
subject the violator to civil or criminal penalties.  If you believe you have 
received this message in error, please notify the sender and delete the email 
immediately.


___
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


--

Message: 2
Date: Fri, 3 Feb 2012 00:16:21 +
From: Wang, Ya ya.w...@vta.org
Subject: [mapserver-users] Re: Can't get Tinyows WFS Layer to show in
OpenLayer
To: mapserver-users@lists.osgeo.org
mapserver-users@lists.osgeo.org
Message-ID: cd4beeccebbaa545974d52eb0a5b6ef1281b2...@romail4.vta.org
Content-Type: text/plain

[mapserver-users] RE: RE: Re: Can't get Tinyows WFS Layer to show in OpenLayer

2012-02-03 Thread Wang, Ya
Sorry, I took back what I said earlier. After I removed prefix/server from 
the configuration, it is still working.  Jukka Rahkonen was right. Now, I am 
clueless what I did differently. 

Ya


-Original Message-
From: Wang, Ya 
Sent: Friday, February 03, 2012 10:41 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: Re: Can't get Tinyows WFS Layer to show in OpenLayer

The version is 1.1.0rc1. Seems I need to specify both prefix/server and 
ns_prefix/ns_ur for it to work.. I am wondering why. Thanks.

Ya


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
mapserver-users-requ...@lists.osgeo.org
Sent: Friday, February 03, 2012 1:24 AM
To: mapserver-users@lists.osgeo.org
Subject: mapserver-users Digest, Vol 49, Issue 7

Send mapserver-users mailing list submissions to
mapserver-users@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
mapserver-users-requ...@lists.osgeo.org

You can reach the person managing the list at
mapserver-users-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of mapserver-users digest...


Today's Topics:

   1. Re: How to label only largest displayed areas? (Rahkonen Jukka)
   2. Re: Can't get Tinyows WFS Layer to show inOpenLayer (Wang, Ya)
   3. Re: Re: Can't get Tinyows WFS Layer to show inOpenLayer
  (Rahkonen Jukka)
   4. Using WFS gml_[item name]_alias (Dejan Gambin)
   5. Re: PostGIS Connection String - Thread Issue? (thomas bonfort)
   6. Legend size problem in GetLegendGraphic request (Dejan Gambin)
   7. WFS GetCapabilities does not work with non-ascii characters
  in mapfile (Rahkonen Jukka)


--

Message: 1
Date: Thu, 2 Feb 2012 23:01:23 +
From: Rahkonen Jukka jukka.rahko...@mmmtike.fi
Subject: [mapserver-users] Re: How to label only largest displayed
areas?
To: Lime, Steve D (DNR) steve.l...@state.mn.us, Anzel, Phil -
NRCS, Fort  Collins, CO phil.an...@ftc.usda.gov,
mapserver-users@lists.osgeo.org   
mapserver-users@lists.osgeo.org
Message-ID:
84446def76453c439e9e97e438e13a63067...@suutari.haapa.mmm.fi
Content-Type: text/plain; charset=us-ascii

Hi,

I understood that meaning was to put exactly one label per state. Each state, 
even tiny ones, should be labeled. But one state should get only one label even 
if the map window is splitting the state polygon into two or more 
intersections. Those intersections may be bigger than the tiny state. Not 
extremely simple.

-Jukka-


L Lime, Steve D (DNR) wrote:

 I'd do this by sorting features based on area (ascending order). This would 
 draw the smallest polygons first, but would put the labels for the shapes 
 with the largest area into the label cache last (where they would be placed 
 and drawn first). I've done this with labeling lakes and it works fine.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Anzel, Phil - 
NRCS, Fort Collins, CO
Sent: Thursday, February 02, 2012 1:43 PM
To: mapserver-users@lists.osgeo.org
Cc: Anzel, Phil - NRCS, Fort Collins, CO
Subject: [mapserver-users] How to label only largest displayed areas?

Hi, All,

How can I label only the largest displayed areas within an extent? For example, 
if I'm labeling states of the United States and my extent covers a small region 
around the Maine, New Hampshire and Massachusetts junction, I only want a 
single label for each state, chosen by the largest displayed area (within the 
current map extent) in each state.

I'm using spatial data stored in Microsoft's SQL Server 2008.

I've created an enhancement request ticket (#4173: Define a current layer 
extent's WKT string for use in Data statement) as one possible approach, but 
this approach requires a change to MapServer.

Is there a better way?

Thanks.

- Phil Anzel
  Vistronix Inc for USDA/NRCS/ITC

This electronic message contains information generated by the USDA solely for 
the intended recipients.  Any unauthorized interception of this message or the 
use or disclosure of the information it contains may violate the law and 
subject the violator to civil or criminal penalties.  If you believe you have 
received this message in error, please notify the sender and delete the email 
immediately.


___
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

[mapserver-users] Re: Can't get Tinyows WFS Layer to show in OpenLayer

2012-02-02 Thread Wang, Ya
Thank you, Olivier. 

The TinyOWS version is 1.0.0rc1. I can load both WFS and WMS layers in desktop 
clients such as QGIS and UDIG. I did activate the error log for TinyOWS. It is 
just that nothing got logged. My TinyOWS configuration is as follows:
tinyows online_resource=http://127.0.0.1:8080/cgi-bin/tinyows.exe;
 schema_dir=/towsschema/
 check_schema=0
 log=/mstmp/tows.log
 log_level=1

#here /towsschema/  and /mstmp/ are alias I defined in apache configuration. I 
changed it into directory in windows as C:\..\.., it makes no difference 
anyway. 

  pg host=127.0.0.1 user=*** password=*** dbname=*** port=5432/

  metadata name=TinyOWS Server
title=TinyOWS Server - Demo Service /

  layer retrievable=1
 writable=0
 ns_prefix=tows
 ns_uri=http://127.0.0.1:8080/;
 schema=transit
 name=lightrail
 srid=2227
 title=lightrail /

  layer retrievable=1
 writable=0
 ns_prefix=tows
 ns_uri=http://127.0.0.1:8080/;
 schema=transit
 name=lrtstops
 srid=2227
 title=LRT Stops /
/tinyows

I thought the existence of multiple versions of python might be the problem. 
The python 2.5 is used by QGIS and GRASS, installed as part of the bundle in 
the OSGEO4W package. Another is a standalone installation of Python2.7, which 
is specified as the interpreter for Proxy.CGi. So I started to uninstall and 
reinstall python and QGIS multiple times. It didn't solve the problem. WFS 
layer is still not showing in OpenLayers while WMS layer is.  Somehow it did 
change the error message. 
Now I got Internal Server Error. The APACHE server logged the following error:

[Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] Premature end of 
script headers: tinyows.exe, referer: 
http://myserver:8080/openlayers/examples/tinyows.html
[Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] Assertion failed: 
buf-buf, file src\\struct\\buffer.c, line 86\r, referer: http:// 
myserver:8080/openlayers/examples/tinyows.html
[Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] \r, referer: http:// 
myserver:8080/openlayers/examples/tinyows.html
[Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] This application has 
requested the Runtime to terminate it in an unusual way., referer: http:// 
myserver:8080/openlayers/examples/tinyows.html
[Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] Please contact the 
application's support team for more information.\r, referer: http:// 
myserver:8080/openlayers/examples/tinyows.html


I don't know how to use Firebug with OpenLayers to check the TinyOWS output 
stream yet. Once I figured it out, I will post that as well. 


Many Thanks!

Ya


__
mapserver-users mailing list mapserver-users@lists.osgeo.org 
http://lists.osgeo.org/mailman/listinfo/mapserver-users 
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/9484cf76/attachment-0001.html

--

Message: 5
Date: Thu, 2 Feb 2012 08:57:52 +0100
From: Olivier Courtin olivier.cour...@gmail.com
Subject: Re: [mapserver-users] Can't get Tinyows WFS Layer to show in
OpenLayer
To: mapserver-users@lists.osgeo.org
mapserver-users@lists.osgeo.org
Message-ID:
cad+a4nz+q5m4dxjxfmrpaygx9c7eryfu705f330vxe+qrgg...@mail.gmail.com
Content-Type: text/plain; charset=windows-1252

On Wed, Feb 1, 2012 at 7:33 PM, Wang, Ya ya.w...@vta.org wrote:

Hi,

 I am a newbie of mapserver and other online mapping technologies.
 Recently, I have been struggling to load a TinyOWS WFS Layer to an
 OpenLayers map.  I set up proxy.cgi, which works fine. I checked TinyOWS
 using command ?tinyows ?check?, which also seems to be working. The page
 http://.../cgi-bin/tinyows.exe?service=wfsrequest=getCapabilitiesversion=1.1.0typename=tows:lrtstopsdoesn?t
  return any error either.  I can also load a mapserver WMS layer
 into the OpenLayers Map with no problem. However, no feature from the WFS
 layer would show in the OpenLayers map.  Since both the WMS and WFS layers
 are of the same projection, which is EPSG:2227, I assume that the
 misspecification of projection is not likely to be the caprice here.   The
 following is the JavaScript I used and the response returned. Could someone
 help me find out what I did wrong? Many thanks in advance!

 **

 **


Several questions related to your issue:

- What TinyOWS version do you use ?

- What happen if you use QGIS as WMS/WFS client rather than OpenLayers ?

- Could you activate TinyOWS log and check if there's any error message in
it ?

- Could you use Firebug with OpenLayers to check the TinyOWS output stream ?


HTH,

-- 
Olivier
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.osgeo.org/pipermail/mapserver-users

[mapserver-users] Re: Can't get Tinyows WFS Layer to show in OpenLayer

2012-02-02 Thread Wang, Ya
Hello All,

The problem got solved finally. It seems all I need to do is to add two more 
lines into my TinyOWS configuration.  Maybe fixing the PythonPath helped as 
well. But this change is what really makes a difference.

Before (not working): 
layer retrievable=1
 writable=0
 ns_prefix=tows
 ns_uri=http://myserver:8080/;
   schema=transit
 name=lrtstops
 srid=2227
 title=LRT Stops /

After (working now):
layer retrievable=1
 writable=0
ns_prefix=tows
ns_uri=http://myserver:8080/;
prefix=tows
 server=http://myserver:8080/;
   schema=transit
   name=lrtstops
   srid=2227
   title=LRT Stops /

I was relieved of the frustration I have been suffering during the past two 
days. Thanks everyone.

Ya







___
Message: 5
Date: Thu, 2 Feb 2012 08:57:52 +0100
From: Olivier Courtin olivier.cour...@gmail.com
Subject: Re: [mapserver-users] Can't get Tinyows WFS Layer to show in
OpenLayer
To: mapserver-users@lists.osgeo.org
mapserver-users@lists.osgeo.org
Message-ID:
cad+a4nz+q5m4dxjxfmrpaygx9c7eryfu705f330vxe+qrgg...@mail.gmail.com
Content-Type: text/plain; charset=windows-1252

On Wed, Feb 1, 2012 at 7:33 PM, Wang, Ya ya.w...@vta.org wrote:

Hi,

 I am a newbie of mapserver and other online mapping technologies.
 Recently, I have been struggling to load a TinyOWS WFS Layer to an
 OpenLayers map.  I set up proxy.cgi, which works fine. I checked TinyOWS
 using command ?tinyows ?check?, which also seems to be working. The page
 http://.../cgi-bin/tinyows.exe?service=wfsrequest=getCapabilitiesversion=1.1.0typename=tows:lrtstopsdoesn?t
  return any error either.  I can also load a mapserver WMS layer
 into the OpenLayers Map with no problem. However, no feature from the WFS
 layer would show in the OpenLayers map.  Since both the WMS and WFS layers
 are of the same projection, which is EPSG:2227, I assume that the
 misspecification of projection is not likely to be the caprice here.   The
 following is the JavaScript I used and the response returned. Could someone
 help me find out what I did wrong? Many thanks in advance!

 **

 **


Several questions related to your issue:

- What TinyOWS version do you use ?

- What happen if you use QGIS as WMS/WFS client rather than OpenLayers ?

- Could you activate TinyOWS log and check if there's any error message in
it ?

- Could you use Firebug with OpenLayers to check the TinyOWS output stream ?


HTH,

-- 
Olivier
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/dc523795/attachment.html

--

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


End of mapserver-users Digest, Vol 49, Issue 4
**
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Can't get Tinyows WFS Layer to show in OpenLayer

2012-02-01 Thread Wang, Ya
Dear All,

I am a newbie of mapserver and other online mapping technologies. Recently, I 
have been struggling to load a TinyOWS WFS Layer to an OpenLayers map.  I set 
up proxy.cgi, which works fine. I checked TinyOWS using command tinyows 
-check, which also seems to be working. The page 
http://.../cgi-bin/tinyows.exe?service=wfsrequest=getCapabilitiesversion=1.1.0typename=tows:lrtstops
 doesn't return any error either.  I can also load a mapserver WMS layer into 
the OpenLayers Map with no problem. However, no feature from the WFS layer 
would show in the OpenLayers map.  Since both the WMS and WFS layers are of the 
same projection, which is EPSG:2227, I assume that the misspecification of 
projection is not likely to be the caprice here.   The following is the 
JavaScript I used and the response returned. Could someone help me find out 
what I did wrong? Many thanks in advance!

OpenLayers.ProxyHost = /fcgi-bin/proxy.cgi?url=;
function init() {
 map = new OpenLayers.Map('map', {
projection: new OpenLayers.Projection(EPSG:2227),
units: feet,
maxResolution: auto,
maxExtent: new OpenLayers.Bounds(6103631,1911230,6186389,1976404),
controls: [
new OpenLayers.Control.PanZoom()
]
});
var wms= new OpenLayers.Layer.WMS(
parcel,
   http://.../cgi-bin/mapserv.fcgi?MAP=.../Parcel.map;,
{layers: 'Parcel', format: 'image/jpeg'}
   );

var wfs = new OpenLayers.Layer.Vector(Editable Features, {
strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
projection: new OpenLayers.Projection(EPSG:2227),
protocol: new OpenLayers.Protocol.WFS({
version: 1.1.0,
srsName: urn:ogc:def:crs:EPSG::2227,
url: http://.../cgi-bin/tinyows.fcgi;,
featureNS :  http://roappdev1:8080/;,
featureType: lrtstops,
geometryName: the_geom,
outputFormat: text/xml; subtype=gml/3.1.1,
   schema: 
http://.../cgi-bin/tinyows.fcgi?service=wfsrequest=DescribeFeatureTypeversion=1.1.0typename=tows:lrtstops;
})
});

map.addLayers([wms, wfs]);
---
ows:ExceptionReport xmlns=http://www.opengis.net/ows; 
xmlns:ows=http://www.opengis.net/ows; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://www.opengis.net/ows 
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd; version=1.1.0 
language=en
ows:Exception exceptionCode=InvalidParameterValue locator=request
ows:ExceptionTextXML request isn't valid/ows:ExceptionText
/ows:Exception
/ows:ExceptionReport



?xml version='1.0' encoding='UTF-8'?

ows:ExceptionReport

 xmlns='http://www.opengis.net/ows'

 xmlns:ows='http://www.opengis.net/ows'

 xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'

 xsi:schemaLocation='http://www.opengis.net/ows 
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd'

 version='1.1.0' language='en'

 ows:Exception exceptionCode='InvalidParameterValue' locator='request'

  ows:ExceptionTextXML request isn't valid/ows:ExceptionText

 /ows:Exception

/ows:ExceptionReport

wfs:GetFeature xmlns:wfs=http://www.opengis.net/wfs; service=WFS 
version=1.1.0 outputFormat=text/xml; subtype=gml/3.1.1 
xsi:schemaLocation=http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://myserver/ 
http://myserver/cgi-bin/tinyows.fcgi?service=wfsamp;request=DescribeFeatureTypeamp;version=1.1.0amp;typename=tows:lrtstops;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
resultType=resultswfs:Query typeName=feature:lrtstops 
srsName=urn:ogc:def:crs:EPSG::2227 
xmlns:feature=http://myserver/;ogc:Filter 
xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamethe_geom/ogc:PropertyNamegml:Envelope
 xmlns:gml=http://www.opengis.net/gml; 
srsName=EPSG:2227gml:lowerCorner6040731.6 
1878643/gml:lowerCornergml:upperCorner6249288.4 
2008991/gml:upperCorner/gml:Envelope/ogc:BBOX/ogc:Filter/wfs:Query/wfs:GetFeature

Response Headers
Connection

Keep-Alive

Content-Type

application/xml

Date

Wed, 01 Feb 2012 18:04:29 GMT

Keep-Alive

timeout=5, max=66

Proxy-Connection

Keep-Alive

Server

Apache/2.2.16 (Win32) PHP/5.3.3 mod_fcgid/2.3.6

Transfer-Encoding

chunked

Via



Request Headers
Accept

text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Charset

ISO-8859-1,utf-8;q=0.7,*;q=0.7

Accept-Encoding

gzip, deflate

Accept-Language

en-us,en;q=0.5

Content-Length

917

Content-Type

application/xml; charset=UTF-8

Cookie

SESSd43c6da11a8841c94fab47ef368714de=576ee6deef9974c049b58c8494e0b122; 
__utma=116482309.238053724.1327699956.1327699956.1327709334.2; 
__utmz=116482309.1327699956.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Host

myhost

Proxy-Connection

keep-alive

Referer

http://myserver/.../tinyows_test.html

User-Agent

Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0