Re: [mapserver-users] defresolution & resolution in 6.0

2011-07-19 Thread thomas bonfort
I still haven't been able to reproduce the issue with my simple
testcase, so please attach the complete mapfile that triggers this to
the bugreport.

--
thomas

On Tue, Jul 19, 2011 at 08:37, thomas bonfort  wrote:
> On Mon, Jul 18, 2011 at 21:31, Richard Greenwood
>  wrote:
>> thomas,
>>
>> Thank you for your reply. This link should produce an image with lines 
>> rendered:
>>
>> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=72&map.resolution=144
>>
>> This is the same except with map.resolution=100 and lines are not
>> rendered, image is blank:
>>
>> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=72&map.resolution=100
>>
>> When map.defresolution=72, any value for map.resolution between 73 and
>> 143 fails to render lines. Similarly when map.defresolution=10, any
>> value for map.resolution between 11 and 19 fails to render lines.
>>
>> You can easily change defresolution and resolution in the URL yourself
>> to see the behavior.
>>
>> If you consider this a bug I am happy to file a ticket, but I'd like
>> another set of eyes on it before I do so.
> This definitely seems like a bug, go ahead and file a ticket !
>
> thanks,
> thomas
>
>>
>> Thank you,
>> Rich
>>
>> On Mon, Jul 18, 2011 at 11:52 AM, thomas bonfort
>>  wrote:
>>> Richard,
>>> I was also unable to reproduce your issue (see the similar titled
>>> thread initiated by Mike Smith), using the
>>> msautotest/renderers/polygon-as-line.map
>>>
>>> please submit a self-contained test-case where the issue can be reproduced.
>>>
>>> thanks,
>>> thomas
>>>
>>> On Sun, Jul 17, 2011 at 21:35, Richard Greenwood
>>>  wrote:
 When I use defresolution & resolution in MapServer 6.0 on lines with a
 width of 1 nothing is displayed. Specifically I am using:
   map.defresolution=96&map.resolution=144
 on a polygon layer defined as:

  CLASS
    NAME "Lot and Parcel Lines"
    STYLE
      OUTLINECOLOR 255 0 0
      WIDTH 1
    END
  END

 Example (works):

 http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map

 Example, with defresolution & resolution doesn't work:

 http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=96&map.resolution=144

 Any insight would be appreciated.

 Thanks,
 Rich

 --
 Richard Greenwood
 richard.greenw...@gmail.com
 www.greenwoodmap.com
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

>>>
>>
>>
>>
>> --
>> Richard Greenwood
>> richard.greenw...@gmail.com
>> www.greenwoodmap.com
>>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver publish road

2011-07-19 Thread thomas bonfort
I don't think there's a way to do this, as when rendering roads the
mapserver method is usually what is desired.
You might want to file an enhancement ticket so that this behavior can be
configured with a mapfile keyword.
On a side note, cartolines in mapserver are deprecated since version 5.0 and
completely unsupported sincce 6.0, so you should not be using them for a new
project: use the agg outputformat and STYLE->WIDTH for thick lines.

--
thomas

2011/7/19 赫玄惠 

> I encounter a question. use one  same shape file, when I use it in
> mapserver it like
>
> but in udig it like
>
> when two street intersect together, udig can paint map with the black
> border,but mapserver can't. Anyone know why?
> my mapfile is this:
> MAP
>   SIZE 800 450
>   EXTENT -200 0 200 100
>   IMAGECOLOR 180 180 250
>   UNITS DD
>   debug 5
>   CONFIG "MS_ERRORFILE" "\ms4w\tmp\ms_error.txt"
>   FONTSET "D:\ms4w\apps\fonts\fonts.list"
> PROJECTION
> "init=epsg:4326"
> END
> OUTPUTFORMAT
> NAME png24#AGG
> DRIVER "GD/PNG" #AGG/PNG*IMAGEMODE RGB
> MIMETYPE IMAGE/PNG
> EXTENSION PNG
> #FORMATOPTION TRANSPARENT=ON
> #FORMATOPTION INTERLANCE=OFF
> END
> IMAGETYPE png24 #AGG
> WEB
> IMAGEPATH "\ms4w\Apache\htdocs\tmp\"
> IMAGEURL "\tmp\"
> END
>
> SYMBOL
>   NAME 'cartoline'
>   TYPE CARTOLINE
>   LINECAP  butt
>LINEJOIN  bevel
>LINEJOINMAXSIZE 3
> END
>
> LAYER
> NAME 01
> TYPE LINE
> debug 5
> STATUS on
> TRANSPARENCY alpha
> CONNECTIONTYPE postgis
> CONNECTION "user=* dbname=* host=* port=* password=* "
> DATA "the_geom from *** using unique gid"
> processing "slose_connection=defer"
> DUMP TRUE
> CLASS
>   STYLE
>COLOR 0 0 0
>SYMBOL 'cartoline'
>ANTIALIAS TRUE
> SIZE 10
> END
>  STYLE
>COLOR 255 255 0
>SYMBOL 'cartoline'
>ANTIALIAS TRUE
>  &nbs p;  SIZE 8
> END
> END
> END
> END
>
> *
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
<<22.png>><<11.png>>___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapscript - java exception

2011-07-19 Thread ahmet temiz
hello

I am dealing with mapscript - java.

I received this error message.
Could you tell me what the reason might be ?

regards


Caused by: java.io.NotSerializableException: edu.umn.gis.mapscript.mapObj
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at 
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1676)

-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Planlama ve Zarar Azaltma Dairesi Başkanlığı
Bilgi ve CBS grubu
Eskişehir Yolu 10. km.
Lodumlu / Ankara
Tel : 0 312 2872680 / 1535


Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] ms4w 2.3.1. and ArcSDE

2011-07-19 Thread Flavio Hendry

Hi all

Anyone successful installing and connecting to ArcSDE (9.0, SQL Server) 
with ms4w 2.3.1? We followed all instructions, however we get an 
internal server error ([error] [client 127.0.0.1] Premature end of 
script headers: php-cgi.exe) when trying to connect (see MapFile extract 
below). One problem could be that in 2.3.1 ms4w was compiled using GDAL 
1.6 and the GDAL/OGR SDE DLLs with GDAL 1.5 ... However, I do not see 
any dependency problems ...


- ArcSDE SDK is installed, added to path
- GDAL/OGR plug-ins are copied to "gdalplugins" dir and load the 
sde90.dll (dependencies), however work with GDAL 1.5
- msplugin_sde_90.dll loads sde90.dll etc. (dependencies), works with 
GDAL 1.6

- ogrinfo --formats does not show SDE

Any hints or ideas? THX!

***
LAYER
  NAME "Basemap"
  TYPE POINT
CONNECTIONTYPE PLUGIN
CONNECTION "xxx.xxx.xx.x,port:5151,sde,uid,password"
PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_90.dll"
DATA "SDE.Test,SHAPE,SDE.DEFAULT"
  CLASS
  STYLE
  SYMBOL 'continue'
  SIZE 1
  COLOR -255 0 0
  END
  END
  PROJECTION
"init=epsg:23033"
  END
END

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

2011-07-19 Thread Rahkonen Jukka
Hi,

I believe that most cartographers would say that the uDig way to to draw the 
outlines is ugly and the Mapserver way looks better but it is partly a matter 
of taste.  However, at least for me the continuous black lines also give a 
feeling that it is not possible or allowed to drive from one street to another.

I would try to draw the streets as two separate layers with own styels instead 
of a single layer with two styles, perhaps that would lead to continuos black 
outlines.

-Jukka Rahkonen-


 赫玄惠 [xiaoshitou1986...@126.com] wrote:

> I encounter a question. use one  same shape file, when I use it in mapserver 
> it like
[cid:752891ff$1$13140d5bf06$Coremail$xiaoshitou1986...@126.com]
but in udig it like
[cid:3a893870$2$13140d5bf06$Coremail$xiaoshitou1986...@126.com]
when two street intersect together, udig can paint map with the black 
border,but mapserver can't. Anyone know why?
my mapfile is this:
MAP
  SIZE 800 450
  EXTENT -200 0 200 100
  IMAGECOLOR 180 180 250
  UNITS DD
  debug 5
  CONFIG "MS_ERRORFILE" "\ms4w\tmp\ms_error.txt"
  FONTSET "D:\ms4w\apps\fonts\fonts.list"
PROJECTION
"init=epsg:4326"
END
OUTPUTFORMAT
NAME png24#AGG
DRIVER "GD/PNG" #AGG/PNGIMAGEMODE RGB
MIMETYPE IMAGE/PNG
EXTENSION PNG
#FORMATOPTION TRANSPARENT=ON
#FORMATOPTION INTERLANCE=OFF
END
IMAGETYPE png24 #AGG
WEB
IMAGEPATH "\ms4w\Apache\htdocs\tmp\"
IMAGEURL "\tmp\"
END

SYMBOL
  NAME 'cartoline'
  TYPE CARTOLINE
  LINECAP  butt
   LINEJOIN  bevel
   LINEJOINMAXSIZE 3
END

LAYER
NAME 01
TYPE LINE
debug 5
STATUS on
TRANSPARENCY alpha
CONNECTIONTYPE postgis
CONNECTION "user=* dbname=* host=* port=* password=* "
DATA "the_geom from *** using unique gid"
processing "slose_connection=defer"
DUMP TRUE
CLASS
  STYLE
   COLOR 0 0 0
   SYMBOL 'cartoline'
   ANTIALIAS TRUE
SIZE 10
END
 STYLE
   COLOR 255 255 0
   SYMBOL 'cartoline'
   ANTIALIAS TRUE
 &nbs p;  SIZE 8
END
END
END
END



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


Re: [mapserver-users] mapserver publish road

2011-07-19 Thread thomas bonfort
2011/7/19 Rahkonen Jukka :
> Hi,
>
> I believe that most cartographers would say that the uDig way to to draw the 
> outlines is ugly and the Mapserver way looks better but it is partly a matter 
> of taste.  However, at least for me the continuous black lines also give a 
> feeling that it is not possible or allowed to drive from one street to 
> another.
>
> I would try to draw the streets as two separate layers with own styels 
> instead of a single layer with two styles, perhaps that would lead to 
> continuos black outlines.

Doing so this way would also result in the black lines disappearing.

--
thomas

>
> -Jukka Rahkonen-
>
>
>  赫玄惠 [xiaoshitou1986...@126.com] wrote:
>
>> I encounter a question. use one  same shape file, when I use it in mapserver 
>> it like
> [cid:752891ff$1$13140d5bf06$Coremail$xiaoshitou1986...@126.com]
> but in udig it like
> [cid:3a893870$2$13140d5bf06$Coremail$xiaoshitou1986...@126.com]
> when two street intersect together, udig can paint map with the black 
> border,but mapserver can't. Anyone know why?
> my mapfile is this:
> MAP
>  SIZE 800 450
>  EXTENT -200 0 200 100
>  IMAGECOLOR 180 180 250
>  UNITS DD
>  debug 5
>  CONFIG "MS_ERRORFILE" "\ms4w\tmp\ms_error.txt"
>  FONTSET "D:\ms4w\apps\fonts\fonts.list"
> PROJECTION
>    "init=epsg:4326"
> END
> OUTPUTFORMAT
>    NAME png24#AGG
>    DRIVER "GD/PNG" #AGG/PNG    IMAGEMODE RGB
>    MIMETYPE IMAGE/PNG
>    EXTENSION PNG
>    #FORMATOPTION TRANSPARENT=ON
>    #FORMATOPTION INTERLANCE=OFF
> END
> IMAGETYPE png24 #AGG
> WEB
>    IMAGEPATH "\ms4w\Apache\htdocs\tmp\"
>    IMAGEURL "\tmp\"
> END
>
> SYMBOL
>  NAME 'cartoline'
>  TYPE CARTOLINE
>  LINECAP  butt
>   LINEJOIN  bevel
>   LINEJOINMAXSIZE 3
> END
>
> LAYER
>    NAME 01
>    TYPE LINE
>    debug 5
>    STATUS on
>    TRANSPARENCY alpha
>    CONNECTIONTYPE postgis
>    CONNECTION "user=* dbname=* host=* port=* password=* "
>    DATA "the_geom from *** using unique gid"
>    processing "slose_connection=defer"
>    DUMP TRUE
>    CLASS
>      STYLE
>           COLOR 0 0 0
>           SYMBOL 'cartoline'
>           ANTIALIAS TRUE
>        SIZE 10
>        END
>         STYLE
>           COLOR 255 255 0
>           SYMBOL 'cartoline'
>           ANTIALIAS TRUE
>  &nbs p;      SIZE 8
>        END
>    END
> 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] ms4w 2.3.1. and ArcSDE

2011-07-19 Thread Brent Fraser

Flavio,

  Last year I experimented with MS4W and SDE 9.3 
(http://lists.maptools.org/pipermail/ms4w-users/2010-January/001402.html).  
I used a couple of Windows tools: Dependency Walker (to see which DLLs a 
DLL depends on), and Process Monitor (to see which files, including 
DLLs, a process is trying to load at run time).


Best Regards,
Brent Fraser


On 7/19/2011 2:46 AM, Flavio Hendry wrote:

Hi all

Anyone successful installing and connecting to ArcSDE (9.0, SQL 
Server) with ms4w 2.3.1? We followed all instructions, however we get 
an internal server error ([error] [client 127.0.0.1] Premature end of 
script headers: php-cgi.exe) when trying to connect (see MapFile 
extract below). One problem could be that in 2.3.1 ms4w was compiled 
using GDAL 1.6 and the GDAL/OGR SDE DLLs with GDAL 1.5 ... However, I 
do not see any dependency problems ...


- ArcSDE SDK is installed, added to path
- GDAL/OGR plug-ins are copied to "gdalplugins" dir and load the 
sde90.dll (dependencies), however work with GDAL 1.5
- msplugin_sde_90.dll loads sde90.dll etc. (dependencies), works with 
GDAL 1.6

- ogrinfo --formats does not show SDE

Any hints or ideas? THX!

***
LAYER
  NAME "Basemap"
  TYPE POINT
CONNECTIONTYPE PLUGIN
CONNECTION "xxx.xxx.xx.x,port:5151,sde,uid,password"
PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_90.dll"
DATA "SDE.Test,SHAPE,SDE.DEFAULT"
  CLASS
  STYLE
  SYMBOL 'continue'
  SIZE 1
  COLOR -255 0 0
  END
  END
  PROJECTION
"init=epsg:23033"
  END
END

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



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


Re: [mapserver-users] ms4w 2.3.1. and ArcSDE

2011-07-19 Thread Jeff McKenna
Thanks Brent.  Indeed to access SDE layers with MS4W 3.0.x please follow 
your local README (or online at: 
http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde).


-jeff


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



On 11-07-19 11:26 AM, Brent Fraser wrote:

Flavio,

Last year I experimented with MS4W and SDE 9.3
(http://lists.maptools.org/pipermail/ms4w-users/2010-January/001402.html).
I used a couple of Windows tools: Dependency Walker (to see which DLLs a
DLL depends on), and Process Monitor (to see which files, including
DLLs, a process is trying to load at run time).

Best Regards,
Brent Fraser


On 7/19/2011 2:46 AM, Flavio Hendry wrote:

Hi all

Anyone successful installing and connecting to ArcSDE (9.0, SQL
Server) with ms4w 2.3.1? We followed all instructions, however we get
an internal server error ([error] [client 127.0.0.1] Premature end of
script headers: php-cgi.exe) when trying to connect (see MapFile
extract below). One problem could be that in 2.3.1 ms4w was compiled
using GDAL 1.6 and the GDAL/OGR SDE DLLs with GDAL 1.5 ... However, I
do not see any dependency problems ...

- ArcSDE SDK is installed, added to path
- GDAL/OGR plug-ins are copied to "gdalplugins" dir and load the
sde90.dll (dependencies), however work with GDAL 1.5
- msplugin_sde_90.dll loads sde90.dll etc. (dependencies), works with
GDAL 1.6
- ogrinfo --formats does not show SDE

Any hints or ideas? THX!

***
LAYER
NAME "Basemap"
TYPE POINT
CONNECTIONTYPE PLUGIN
CONNECTION "xxx.xxx.xx.x,port:5151,sde,uid,password"
PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_90.dll"
DATA "SDE.Test,SHAPE,SDE.DEFAULT"
CLASS
STYLE
SYMBOL 'continue'
SIZE 1
COLOR -255 0 0
END
END
PROJECTION
"init=epsg:23033"
END
END

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] ms4w 2.3.1. and ArcSDE

2011-07-19 Thread Flavio Hendry

Hi Jeff / Brent

Thanks for the help.

We installed ms4w 2.3.0 ... seems to work (shows SDE with ogrinfo, still 
fiddling with the connection). I think the problem we had, was related 
to msw4w 2.3.1 having the gdal/ogr dlls not compiled for gdal 1.6 as all 
the rest ... as the client has SDE 9.0 we go with very old stuff too :-) 
... no fancy ms4w3.0/ms6.0 ...


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] ms4w 2.3.1. and ArcSDE

2011-07-19 Thread Brent Fraser

Jeff,

  It's been a while, but I seem to recall I had a problem with 
accessing SDE raster the way it was documented on the MS4W site; I had 
to use CONNECTIONTYPE PLUGIN...


Thanks!

Best Regards,
Brent Fraser


On 7/19/2011 8:45 AM, Jeff McKenna wrote:
Thanks Brent.  Indeed to access SDE layers with MS4W 3.0.x please 
follow your local README (or online at: 
http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde).


-jeff




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


[mapserver-users] Re : 1. mapscript - java exception

2011-07-19 Thread Gastón Lucero

Sends the source code to see

Im using mapscript with java too


Gaston Lucero
www.sitrack.com
Disclaimer:

This email and any attachments thereof may contain confidential, privileged, 
proprietary, or otherwise private information. This email is intended solely 
for the use of the individual to whom it is addressed. If you are not the 
intended recipient of the email and its attachments please inform the sender 
immediately and do not disclose the contents to any other person, use it for 
any purpose or store or copy the information in any way and delete this e-mail 
and its attachments from your system. Any views or opinions expressed are 
solely those of the author.

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


Re: [mapserver-users] Expression and nquery with sde issue

2011-07-19 Thread Mario Franco
Can anyone that uses mapserver with sde reproduce the label and 
expression issue that I'm having?




On 15-07-2011 15:38, Mario Franco wrote:


The version is Mapserver 5.6.3 and using the attribute as label was 
how find out the values were being rounded.
For example the attribute has values from 1000 to 17 and if the 
value is smaller than 10 rounds the value with one decimal but 
above 10

rounds to and integer.
I'm using sqlserver with the SDE and the atrribute type is numeric 
could this have anything to do with it?


Mário

On 15-07-2011 15:23, Steve Lime wrote:
On issue one, what version are you using? MapServer shouldn't be 
rounding the value. The comparison should be being done as a double. 
It might be helpful to see a sample dataset although if this is SDE I 
can't test on my end. One thing to try to help diagnose the problem 
would be to create a sample mapfile that draws your layer and uses 
the area attribute for labeling. What shows up for labels?


Steve

Sent from my iPad

On Jul 15, 2011, at 5:14 AM, Mario Franco > wrote:



Hi,

I having two issues with mapserver if anyone can help me I would be 
appreciated.


The first has to do with an Expression in a class:

I have a shape with an attribute with the 172060.0937 but when add 
to the class:



EXPRESSION ( [AREA] = 172060.0937 )


The problem is that this expression returns false because mapserver 
is rounding the double value from the database. If I compare with:



EXPRESSION ( [AREA] = 172060)


it works. There is any way to turn this off or to increase the 
precision?




The second issue is:

I'm using this url 
(http://localhost:82/cgi-bin/mapserv.exe?map=D%3a\projects\Inag\InterSIG+II\InterSIG+Website\Trunk\InterSIG+ASP.NET\Maps%2fintersig_281.map&qlayer=Concelhos&layers=Concelhos&MAPSIZE=629%20467&MINX=-232614.525612302&MINY=-49761.6088409424&MAXX=676601.080299802&MAXY=625284&mode=NQUERY&MAPSHAPE=POLYGON%28%28-232614%20-49761,%20-232614%20625284,%20676601%20625284,%20676601%20-49761,%20-232614%20-49761%29%29 
) 
to execute a nquery but I always get the error 
"msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid 
parameter value passed to function. (-66) "


The log doesn't help that much:

[Fri Jul 15 10:47:19 2011].2 msSDELayerOpen(): Layer Concelhos 
opened from scratch.
[Fri Jul 15 10:47:23 2011].35000 
msConnPoolRegister(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0)
[Fri Jul 15 10:47:23 2011].35000 msSDELayerOpen(): Layer Concelhos 
specified version SDE.DEFAULT.
[Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): Looking for 
layer by SDE.CONCELH_PTCONT_2008_0_596, SHAPE, 
ydinag2,port:5151,sde,sde,sde
[Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): No cached 
layerid found.
[Fri Jul 15 10:47:23 2011].63000 msSDELCacheAdd(): Caching id for 
SDE.CONCELH_PTCONT_2008_0_596, SHAPE, ydinag2,port:5151,sde,sde,sde
[Fri Jul 15 10:47:23 2011].72000 Getting all column information in 
msSDELayerInitItemInfo
[Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting 
info for DICO
[Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting 
info for CONCELHO
[Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting 
info for DI
[Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting 
info for DISTRITO
[Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting 
info for CCDR
[Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting 
info for NUT3
[Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting 
info for NUT3_NOME
[Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting 
info for NUT2
[Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting 
info for NUT2_NOME
[Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting 
info for AREA2008_1
[Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting 
info for objectid
[Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting 
info for SHAPE
[Fri Jul 15 10:47:23 2011].79000 Column information has already 
been gotten... returning from msSDELayerInitItemInfo
[Fri Jul 15 10:47:43 2011].122000 msSDELayerGetShape(): SDE error. 
SE_stream_fetch_row(): Invalid parameter value passed to function. 
(-66)

[Fri Jul 15 10:47:43 2011].126000 msFreeMap(): freeing map at 01D3EFE8.
[Fri Jul 15 10:47:43 2011].126000 msSDELayerCloseConnection(): 
Closing connection for layer Concelhos.
[Fri Jul 15 10:47:43 2011].126000 
msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0)
[Fri Jul 15 10:47:

Re: [mapserver-users] defresolution & resolution in 6.0

2011-07-19 Thread Richard Greenwood
thomas,

Thank you for reviewing my issue. I have created new ticket #3962 and
attached a simple mapfile and data. I suspect that you are not
recreating the issue because you are using the default AGG/PNG driver
settings. Setting IMAGEMODE PC256 causes the problem, or DRIVER
"GD/PNG" or IMAGETYPE "gif".

Thanks,
Rich


On Tue, Jul 19, 2011 at 12:56 AM, thomas bonfort
 wrote:
> I still haven't been able to reproduce the issue with my simple
> testcase, so please attach the complete mapfile that triggers this to
> the bugreport.
>
> --
> thomas
>
> On Tue, Jul 19, 2011 at 08:37, thomas bonfort  
> wrote:
>> On Mon, Jul 18, 2011 at 21:31, Richard Greenwood
>>  wrote:
>>> thomas,
>>>
>>> Thank you for your reply. This link should produce an image with lines 
>>> rendered:
>>>
>>> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=72&map.resolution=144
>>>
>>> This is the same except with map.resolution=100 and lines are not
>>> rendered, image is blank:
>>>
>>> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=72&map.resolution=100
>>>
>>> When map.defresolution=72, any value for map.resolution between 73 and
>>> 143 fails to render lines. Similarly when map.defresolution=10, any
>>> value for map.resolution between 11 and 19 fails to render lines.
>>>
>>> You can easily change defresolution and resolution in the URL yourself
>>> to see the behavior.
>>>
>>> If you consider this a bug I am happy to file a ticket, but I'd like
>>> another set of eyes on it before I do so.
>> This definitely seems like a bug, go ahead and file a ticket !
>>
>> thanks,
>> thomas
>>
>>>
>>> Thank you,
>>> Rich
>>>
>>> On Mon, Jul 18, 2011 at 11:52 AM, thomas bonfort
>>>  wrote:
 Richard,
 I was also unable to reproduce your issue (see the similar titled
 thread initiated by Mike Smith), using the
 msautotest/renderers/polygon-as-line.map

 please submit a self-contained test-case where the issue can be reproduced.

 thanks,
 thomas

 On Sun, Jul 17, 2011 at 21:35, Richard Greenwood
  wrote:
> When I use defresolution & resolution in MapServer 6.0 on lines with a
> width of 1 nothing is displayed. Specifically I am using:
>   map.defresolution=96&map.resolution=144
> on a polygon layer defined as:
>
>  CLASS
>    NAME "Lot and Parcel Lines"
>    STYLE
>      OUTLINECOLOR 255 0 0
>      WIDTH 1
>    END
>  END
>
> Example (works):
>
> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map
>
> Example, with defresolution & resolution doesn't work:
>
> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=96&map.resolution=144
>
> Any insight would be appreciated.
>
> Thanks,
> Rich
>
> --
> Richard Greenwood
> richard.greenw...@gmail.com
> www.greenwoodmap.com
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>

>>>
>>>
>>>
>>> --
>>> Richard Greenwood
>>> richard.greenw...@gmail.com
>>> www.greenwoodmap.com
>>>
>>
>



-- 
Richard Greenwood
richard.greenw...@gmail.com
www.greenwoodmap.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] elevation DEM color ramp map file

2011-07-19 Thread John Callahan
I'm just curious but does anyone know of Mapserver .map files, or color map
text files, with classes designed for a elevation DEM?  Or possibly a list
of color ramps that work well for DEM maps? I read that GRASS had some
predefined templates for applying color to DEMs and wondering if Mapserver
has a similar thing, perhaps shared on a wiki or other site.  The DEM I'm
working with now has low relief, from -5 meters to about 150 meters, however
a general method or set of map files that can be applied to a range of DEMs
could be helpful to many.  Does something like this exist?  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


[mapserver-users] Re: ms4w 2.3.1. and ArcSDE

2011-07-19 Thread Michelle Douvil
Hi All, 
I have installed both a custom build for Mapserver 6.0 as well as MS4W
3.0.3..
I can get images back with WMS for SDE 9.3.1 data..
However when I try a GetFeatureINFO request via Apache I was getting 

a "Premature end of script headers: mapserv.exe"

So I removed Apache from the picture and try the CGI..

With mapserver 5.2  
*mapserv -nh
"QUERY_STRING=map=e:/sw_nt/mapfiles/base2.map&mode=nquerymap&mapxy=1186128
863840" >test.png *(I get a valid png with the feature highlighted..)

With ms4w mapserver 6.0.1 and a 6.0.0 build.. I get.. 
setMode(): Web application error. Invalid mode.

Any ideas?

Many Thanks, 
Michelle




--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MapServer-v-GeoServer-tp6356255p6599882.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] WMS Service error

2011-07-19 Thread qazi iqbal
I need help. I have created a mapfile for creating webservice or a shapefile
through WMS according to the documentation. When I add the WMS server in
ArcCatalog to see the layer, it show the treeview to the description of
layer, but when I click on the layer, it gives me the below error.

The selected object failed to draw:
Test Web Service: WMS service exceptions:-Service Error Code:InvalidFormat
Service Error Description: msWMSLoadGetmapParams(): WMS server error.
Invalid format for EXCEPTION paramater.
-Service Error Code:InvalidFormat.

Does any one know what I am doing wrong.

I appreciate any help.
Thanks
Qazi Iqbal
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] WMS Service error

2011-07-19 Thread John Callahan
Check the WMS version of the request.  When you add the WMS layer in ArcMap,
set the WMS version to 1.1.1.   Arc 9.3.x runs into trouble if the default
request is 1.3.0.  I believe this was fixed in Arc 10.

- John

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


On Tue, Jul 19, 2011 at 2:51 PM, qazi iqbal  wrote:

> I need help. I have created a mapfile for creating webservice or a
> shapefile through WMS according to the documentation. When I add the WMS
> server in ArcCatalog to see the layer, it show the treeview to the
> description of layer, but when I click on the layer, it gives me the below
> error.
>
> The selected object failed to draw:
> Test Web Service: WMS service exceptions:-Service Error Code:InvalidFormat
> Service Error Description: msWMSLoadGetmapParams(): WMS server error.
> Invalid format for EXCEPTION paramater.
> -Service Error Code:InvalidFormat.
>
> Does any one know what I am doing wrong.
>
> I appreciate any help.
> Thanks
> Qazi Iqbal
>
> ___
> 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] WMS Service error

2011-07-19 Thread Mario Franco
It's an ArcCatalog problem check 
http://forums.esri.com/Thread.asp?c=93&f=1149&t=281244



On 19-07-2011 19:51, qazi iqbal wrote:
I need help. I have created a mapfile for creating webservice or a 
shapefile through WMS according to the documentation. When I add the 
WMS server in ArcCatalog to see the layer, it show the treeview to the 
description of layer, but when I click on the layer, it gives me the 
below error.

The selected object failed to draw:
Test Web Service: WMS service exceptions:-Service Error Code:InvalidFormat
Service Error Description: msWMSLoadGetmapParams(): WMS server error. 
Invalid format for EXCEPTION paramater.

-Service Error Code:InvalidFormat.
Does any one know what I am doing wrong.
I appreciate any help.
Thanks
Qazi Iqbal


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



--

Mário Franco | Software Developer | mario.fra...@ydreams.com 

YDreams - Informática S.A. | www.ydreams.com  | 
+351 210 314 000 | Blog  | YouTube 
 | Vimeo  
| Twitter 


*Disclaimer and Confidentiality Notice:* YDreams accepts no 
responsibility or liability whatsoever with regard to the information 
herein contained. This message including any attachment hereof is 
confidential and may be privileged or otherwise legally protected from 
disclosure and may only be read, copied and used by the intended 
recipient. If you are not the intended recipient, please contact the 
sender immediately (+351 210 314 000) and delete this email and any 
attachment permanently from your system. You must not copy this email or 
any attachment or disclose its/their contents to any other person or 
entity. Thank you.


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


[mapserver-users] ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6)

2011-07-19 Thread Michelle Douvil
Hi All, 
I figured I'd start a new thread..

I have installed both a custom build for Mapserver 6.0 as well as MS4W
3.0.3.. 
I can get images back with GetMAP image request via WMS for SDE 9.3.1 data.. 
However when I try a GetFeatureINFO request via Apache I was getting 

a "Premature end of script headers: mapserv.exe" 

So I removed Apache from the picture and try the CGI.. 

With mapserver 5.2   
mapserv -nh
"QUERY_STRING=map=e:/sw_nt/mapfiles/base2.map&mode=nquerymap&mapxy=1186128
863840" >test.png (I get a valid png with the feature highlighted..) 

With ms4w mapserver 6.0.1 and a 6.0.0 build.. I get.. 
setMode(): Web application error. Invalid mode. 

Any ideas? Is almost like it doesn't like anything other than mode=map for
SDE?

I am using both: 

CONNECTION TYPE PLUGIN..(For MS4W) 
PLUGIN "E:/sw_nt/ms4w/Apache/specialplugins/msplugin_sde_93.dll" 

and 

CONNECTIONTYPE sde 
(with sde.dll, pe.dll, sg.dll from 9.3 SDK) 



Many Thanks, 
Michelle 

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6600091.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


Re: [mapserver-users] ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6)

2011-07-19 Thread Brent Fraser

Michelle,

  Strange, v6 dropped the various *MAP modes (they are missing in 
mapserv.h), but I couldn't locate any RFC , but viewing the revisions in 
Trac (http://trac.osgeo.org/mapserver/changeset/11078) shows a note:


   Remove map-oriented query modes (e.g.QUERYMAP). Use qformat
   parameter instead. (#3712)

which lead to the Migration Guide 
(http://mapserver.org/MIGRATION_GUIDE.html)


All of the query map related modes (e.g. NQUERYMAP, ITEMQUERYMAP, 
etc...) have been removed in favor of using the "qformat" parameter. 
That parameter takes an output format name or mime/type as a value and 
uses that to process a set of query results. For example:


   ...&mode=nquerymap&... would become ...&mode=nquery&qformat=png24&...


So it's a doc issue, and the ticket is 
http://trac.osgeo.org/mapserver/ticket/3712


Best Regards,
Brent Fraser


On 7/19/2011 1:56 PM, Michelle Douvil wrote:

Hi All,
I figured I'd start a new thread..

I have installed both a custom build for Mapserver 6.0 as well as MS4W
3.0.3..
I can get images back with GetMAP image request via WMS for SDE 9.3.1 data..
However when I try a GetFeatureINFO request via Apache I was getting

a "Premature end of script headers: mapserv.exe"

So I removed Apache from the picture and try the CGI..

With mapserver 5.2
mapserv -nh
"QUERY_STRING=map=e:/sw_nt/mapfiles/base2.map&mode=nquerymap&mapxy=1186128
863840">test.png (I get a valid png with the feature highlighted..)

With ms4w mapserver 6.0.1 and a 6.0.0 build.. I get..
setMode(): Web application error. Invalid mode.

Any ideas? Is almost like it doesn't like anything other than mode=map for
SDE?

I am using both:

CONNECTION TYPE PLUGIN..(For MS4W)
PLUGIN "E:/sw_nt/ms4w/Apache/specialplugins/msplugin_sde_93.dll"

and

CONNECTIONTYPE sde
(with sde.dll, pe.dll, sg.dll from 9.3 SDK)



Many Thanks,
Michelle

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6600091.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Can't WFS getFeature w/MapServer 6.0.1

2011-07-19 Thread myOpenLayersUName
I am trying to perform a WFS getFeature request with a newly compiled version
of MapServer 6.0.1. It is failing with a segmentation fault and the failure
is related to SDE somehow but I'm not sure how to proceed.

It's possible the thread
http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-td6600091.html
is describing a similar problem, but the current suggested 'fix' post
suggests this is not the case. Since the original reporter has not
responded, I can't be sure if his problem is now addressed and is,
therefore, a different problem. It could just be a red herring.

Ultimately, at this moment, I'm stuck re: how to proceed and any information
or pointers to get me moving again would be appreciated. Details of my
problem follow.

cheers,
jtm


Background:
I have a simple Mapfile that supports WFS requests (the GetCapabilities
response provides no warnings or errors):


MAP
  NAME "mySubMap"
  FONTSET "../../../mapserv/etc/fonts.txt"
  SYMBOLSET "../../../mapserv/etc/symbols.sym"

  SIZE 800 600
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255

  EXTENT -2903297.697389 -789911.662978 3431059.382789 3959683.443689

  UNITS METERS
  PROJECTION
"init=epsg:42304"
  END

  WEB
IMAGEPATH "//httpd/htdocs/ogc_tmp/"
IMAGEURL "/ogc_tmp/"
METADATA
"ows_title" "joanne_sde.map"
"ows_onlineresource" "http:///ogc/joanne_sde"
"ows_enable_request" "*"
END #end METADATA
  END #end WEB

  OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
MIMETYPE "image/png"
IMAGEMODE RGB
EXTENSION "png"
  END #end OUTPUTFORMAT

  LAYER
NAME 'Roads25M'
TYPE LINE
STATUS ON

CONNECTION "host,port,sde,username,password"
CONNECTIONTYPE SDE
DATA 'XDM_XDATA.TRN_NSF_ROAD_V6_CT25M_R2,SHAPE,SDE.DEFAULT'

METADATA
"ows_title" "Roads Title"
"gml_featureid" "OBJECTID"
"gml_include_items" "all"
END #end METADATA
DUMP true

CLASS
  STYLE
COLOR 0 0 0
  END #end STYLE
END #end CLASS
  END #end LAYER
END #end MAP



When I try to do a getFeature request, it fails with an Internal Server
Error:

http:///ogc/joanne_sde?typename=Roads25M&maxfeatures=2&service=wfs&version=1.0.0&request=getfeature



Looking at the error log, I see:

[Tue Jul 19 16:06:23 2011] [error] [client 10.117.21.141]
/server/nl18/httpd/cgi-bin/joanne_sde: line 4: 24316 Segmentation fault 
${MS_CGIBIN}mapserv
[Tue Jul 19 16:06:23 2011] [error] [client 10.117.21.141] Premature end of
script headers: joanne_sde



This is similar to that discussed at:
http://osgeo-org.1803224.n2.nabble.com/Upgrade-MapServer-from-5-4-to-6-0-td6563752.html.
So, taking the suggestion of Daniel Morisette in that post, I have used gdb
to try to find the source of the segmentation fault. It tells me the
segmentation fault is occurring at:

Program received signal SIGSEGV, Segmentation fault.
0x08157116 in msSDELayerFreeItemInfo (layer=0x8218a90) at mapsde.c:2117
2117mapsde.c: No such file or directory.
in mapsde.c
(gdb) bt
#0  0x08157116 in msSDELayerFreeItemInfo (layer=0x8218a90) at mapsde.c:2117
#1  0x080af586 in msLayerFreeItemInfo (layer=0x8218a90) at maplayer.c:68
#2  0x080af8b4 in msLayerClose (layer=0x8218a90) at maplayer.c:210
#3  0x08096685 in msQueryByRect (map=0x82112e0) at mapquery.c:1024
#4  0x080df889 in msWFSGetFeature (map=0x82112e0, paramsObj=0x821f510,
req=0x8210ca8, ows_request=0xbfffe46c) at mapwfs.c:2500
#5  0x080e098f in msWFSDispatch (map=0x82112e0, requestobj=0x8210ca8,
ows_request=0xbfffe46c, force_wfs_mode=0) at mapwfs.c:2917
#6  0x080d4622 in msOWSDispatch (map=0x82112e0, request=0x8210ca8,
ows_mode=-1) at mapows.c:92
#7  0x0805a2d6 in main (argc=2, argv=0xbfffea94) at mapserv.c:1241




The code in question is "(if (sde->basedefs))" in msSDELayerFreeItemInfo;
however, I think the problem is actually because the layer->layerinfo is
corrupt or null or something.


void msSDELayerFreeItemInfo(layerObj *layer)
{
#ifdef USE_SDE
msSDELayerInfo *sde = NULL;
int i;
if (!msSDELayerIsOpen(layer)) {
msSetError( MS_SDEERR,
"SDE layer has not been opened.",
"msSDELayerFreeItemInfo()");
}
sde = layer->layerinfo;  /*  this is line 2116
*/
if (sde->basedefs) { /*  this is line 2117
*/
SE_table_free_descriptions(sde->basedefs);
:



If I change the data in the Mapfile to use a Shapefile instead of SDE, the
getFeature request works. So, the problem is quite definately related to
working with SDE. However, the SDE log suggests the query took place and
returned successfully. The SDE version we are working with is 9.2; and the
9.2 ArcSDE libraries are being used to compile.

I have also tried this same thing using a compilation of MapServer 5.4 in
this same environment and it works. 

Any ideas what else I might look at to give me an idea of what I need to
fix?




--
View t

[mapserver-users] Re: ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6)

2011-07-19 Thread Michelle Douvil
Thanks for this information Brent..

I tried the following ..
mapserv -nh
"QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qformat=png24&&mapxy=1186128
863840" > e:\sw_nt\mapserver\testms4w.png

and the result now is a 0 kilobyte png.. and the log file does not report
anything ..
a getFeatureINFO request does not find any features..


mapserv 
"QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:3005&BBOX=1136822.19419924,815982.719048714,1186128.62547289,863840.736184577&X=250&Y=250&INFO_FORMAT=text/plain&QUERY_LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30"

msQueryByPoint(): Search returned no results. No matching record(s) found.
Content-type: text/plain
GetFeatureInfo results:
  Search returned no results.

for same data Mapserver 5.2 returns this..

E:\sw_nt\mapserver>mapserv 
"QUERY_STRING=map=e:/sw_nt/mapfiles6/base2.map&LAYER
S=DBM_7H_MIL_POLITICAL_POLY_BC&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&
STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:3005&BB
OX=1136822.19419924,815982.719048714,1186128.62547289,863840.736184577&X=250&Y=2
50&INFO_FORMAT=text/plain&QUERY_LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&WIDTH=650&HE
IGHT=650&FEATURE_COUNT=30"
Content-type: text/plain

GetFeatureInfo results:

Layer 'DBM_7H_MIL_POLITICAL_POLY_BC'
  Feature 97:
STATUS = 'Province'
NAME = 'British Columbia'
ENGLISH_NAME = 'British Columbia'
FRENCH_NAME = 'Colombia-Britannique'
REGION_CODE = '59'
POLYGON_FEATURE = '0'
ISLAND = ''
ISLAND_ENGLISH_NAME = ''
ISLAND_FRENCH_NAME = ''
NATION_ENGLISH_NAME = 'Canada'
NATION_FRENCH_NAME = 'Canada'


I could give my full mapfile syntax if interested..
Perhaps I am missing a config statement that would make this work for SDE..


Thanks, 
Michelle



--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6600531.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


Re: [mapserver-users] Re: ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6)

2011-07-19 Thread Brent Fraser
I don't think png24 is defined by default.  You either need to define an 
OUTPUTFORMAT with a NAME of png24, or use a default one 
(http://mapserver.org/mapfile/outputformat.html#outputformat) like "png"


Best Regards,
Brent Fraser


On 7/19/2011 4:05 PM, Michelle Douvil wrote:

Thanks for this information Brent..

I tried the following ..
mapserv -nh
"QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qformat=png24&&mapxy=1186128
863840">  e:\sw_nt\mapserver\testms4w.png

and the result now is a 0 kilobyte png.. and the log file does not report
anything ..
a getFeatureINFO request does not find any features..


mapserv
"QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:3005&BBOX=1136822.19419924,815982.719048714,1186128.62547289,863840.736184577&X=250&Y=250&INFO_FORMAT=text/plain&QUERY_LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30"

msQueryByPoint(): Search returned no results. No matching record(s) found.
Content-type: text/plain
GetFeatureInfo results:
   Search returned no results.

for same data Mapserver 5.2 returns this..

E:\sw_nt\mapserver>mapserv
"QUERY_STRING=map=e:/sw_nt/mapfiles6/base2.map&LAYER
S=DBM_7H_MIL_POLITICAL_POLY_BC&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&
STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:3005&BB
OX=1136822.19419924,815982.719048714,1186128.62547289,863840.736184577&X=250&Y=2
50&INFO_FORMAT=text/plain&QUERY_LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&WIDTH=650&HE
IGHT=650&FEATURE_COUNT=30"
Content-type: text/plain

GetFeatureInfo results:

Layer 'DBM_7H_MIL_POLITICAL_POLY_BC'
   Feature 97:
 STATUS = 'Province'
 NAME = 'British Columbia'
 ENGLISH_NAME = 'British Columbia'
 FRENCH_NAME = 'Colombia-Britannique'
 REGION_CODE = '59'
 POLYGON_FEATURE = '0'
 ISLAND = ''
 ISLAND_ENGLISH_NAME = ''
 ISLAND_FRENCH_NAME = ''
 NATION_ENGLISH_NAME = 'Canada'
 NATION_FRENCH_NAME = 'Canada'


I could give my full mapfile syntax if interested..
Perhaps I am missing a config statement that would make this work for SDE..


Thanks,
Michelle



--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6600531.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6)

2011-07-19 Thread Michelle Douvil
Thanks Brent..
I have tried the following... all with blank response and no errors..it is
like the cgi just stops..

&qformat=png24, png, text/plain 

as well as this..
mapserv -nh "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles
/3.map&mode=ows&LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&SERVICE=WMS&VERSION=1.1.1&RE
QUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/
jpeg&SRS=EPSG:3005&BBOX=1136822.19419924,815982.719048714,1186128.62547289,86384
0.736184577&X=250&Y=250&INFO_FORMAT=text/plain&QUERY_LAYERS=DBM_7H_MIL_POLITICAL
_POLY_BC&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30" >
e:\sw_nt\mapserver\testms4w.xm
l


*I have add a shapefile and get a valid GetFeatureINFO response with ..*

E:\sw_nt>mapserv
"QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&LAYERS=bcmosaic_
yop_index&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=ap
plication/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:3005&BBOX=1136822.19419924,8
15982.719048714,1186128.62547289,863840.736184577&X=250&Y=250&INFO_FORMAT=text/p
lain&QUERY_LAYERS=bcmosaic_yop_index&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30"
Content-type: text/plain

GetFeatureInfo results:

Layer 'bcmosaic_yop_index'
  Feature 747:
OBJECTID = '748'
IMAGE_ID = '8510.00'
PIXEL_SIZE = '1.00'
PHOTO_YEAR = '1998'
FILE_NAME = 'bc_093b052_xb1m_utm10_1998.tif'
Shape_Leng = '49378.124352'
Shape_Area = '150965542.487000'
MOSAIC_YEA = '2005'
FEATURE_CO = 'RI20040100'


*If I set the SDE layer to "STATUS DEFAULT" I get no response at all to...*
E:\sw_nt>mapserv
"QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qfor
mat=xml&mapxy=1186128 863840"

*If I set the SDE layer to "STATUS OFF or ON" I get A response..*
E:\sw_nt>mapserv
"QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qfor
mat=xml&mapxy=1186128 863840"
Content-type: text/html


MapServer Message


msQueryByPoint(): Search returned no results. No matching record(s) found.


Thanks, 
Michelle


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6601369.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