Re: [mapserver-users] Projection object parameters for UTM to lat-long

2009-03-24 Thread Pietro Giannini

Bob,
maybe error is in first line: ellps-GRS80 is wrong, ellps=GRS80 is 
correct.

bye
pg

Bistrais, Bob ha scritto:


I am trying to project an object from UTM to lat-long.  I cannot get 
the projection to work, and I suspect it's the parameters for the UTM 
projection object.  I am trying to project from UTM Zone 19N, NAD 1983 
to lat-long.  Here is my code:


$projInObj = 
ms_newprojectionobj(proj=utm,ellps-GRS80,datum=NAD83,zone=19,units=m,north,no_defs); 


$projOutObj = ms_newprojectionobj(proj=latlong);
$poPoint = ms_newpointobj();
$poPoint-setXY($xmin, $ymin);
echo p/Coords:  . $poPoint-x . ,.$poPoint-y;
$poPoint = $poPoint-project($projInObj, $projOutObj);
echo p/x =  . $poPoint-x;
echo p/y =  . $poPoint-y;
$poPoint-free();

I can see the output using the echo lines.  The coordinates going into 
the point show up and are correct, but there are no x/y values after 
doing the project.  Can anyone see what I'm doing wrong?




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



--
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58N 12°29'13.39E

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


Re: [mapserver-users] gmap demo - map is not displaying

2009-03-24 Thread Pietro Giannini

Zizu,
I don't know the configration of FGS, but it seems a misconfiguration of 
the IMAGEPATH and/or IMAGEURL in the .map file.

Look in the WEB section of .map file.
http://mapserver.org/mapfile/web.html?highlight=IMAGEPATH%20IMAGEURL
bye
.pg


zizu ha scritto:

hello users...
brbrI am a newbie nbsp;to mapserver. i am trying to get the gamp demo to 
run in my
brmachine fedora 9. i have installed FGS- mapserver 5.2.1 a Stand alone 
environment.
brI have done all the steps given in the Gmap demo Installation file.
bri have added the AddTypes in the httpd.cong. Perhaps i have made the edits
brin the php.ini file. now when i call nbsp;the
brbra href=http://localhost/gmap/gmap75.phtml; target=_top 
rel=nofollowhttp://localhost/gmap/gmap75.phtml/abrbri stunned to see everything is projecting except the 
map is not rendering.
brat the beginning i thought it might be a problem of the java mode is enabled
brthen i tried to disabled that but i failed it was also not working 
nbsp;Then i looked into the httpd error log file ...
bri got this following error
brbr[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_.gif, referer: a href=http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Ydrain_fn=Ybathymetry=Ypopplace=Yprov_bound=Yfedlimit=Yland_fn=YViewRegion=Quick+Viewminx=-2601225.031773miny=-712631.00maxx=3474025.031773maxy=384.00imagewidth=400imageheight=300CMD=INPUT_TYPE=INPUT_COORD=KEYMAPXSIZE=100KEYMAPYSIZE=75MapSize=400%2C300JavaOff.x=14JavaOff.y=21PREVIOUS_MODE=0; target=_top 
rel=nofollowhttp://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Ydrain_fn=Ybathymetry=Ypopplace=Yprov_bound=Yfedlimit=Yland_fn=YViewRegion=Quick+Viewminx=-2601225.031773miny=-712631.00maxx=3474025.031773maxy=384.00imagewidth=400imageheight=300CMD=INPUT_TYPE=INPUT_COORD=KEYMAPXSIZE=100KEYMAPYSIZE=75MapSize=400%2C300JavaOff.x=14JavaOff.y=21PREVIOUS_MODE=0/abr[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_0.gif, referer: a 
href=http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Ydrain_fn=Ybathymetry=Ypopplace=Yprov_bound=Yfedlimit=Yland_fn=YViewRegion=Quick+Viewminx=-2601225.031773miny=-712631.00maxx=3474025.031773maxy=384.00imagewidth=400imageheight=300CMD=INPUT_TYPE=INPUT_COORD=KEYMAPXSIZE=100KEYMAPYSIZE=75MapSize=400%2C300JavaOff.x=14JavaOff.y=21PREVIOUS_MODE=0; target=_top 
rel=nofollowhttp://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Ydrain_fn=Ybathymetry=Ypopplace=Yprov_bound=Yfedlimit=Yland_fn=YViewRegion=Quick+Viewminx=-2601225.031773miny=-712631.00maxx=3474025.031773maxy=384.00imagewidth=400imageheight=300CMD=INPUT_TYPE=INPUT_COORD=KEYMAPXSIZE=100KEYMAPYSIZE=75MapSize=400%2C300JavaOff.x=14JavaOff.y=21PREVIOUS_MODE=0/abr[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_1.png, referer: a 
href=http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Ydrain_fn=Ybathymetry=Ypopplace=Yprov_bound=Yfedlimit=Yland_fn=YViewRegion=Quick+Viewminx=-2601225.031773miny=-712631.00maxx=3474025.031773maxy=384.00imagewidth=400imageheight=300CMD=INPUT_TYPE=INPUT_COORD=KEYMAPXSIZE=100KEYMAPYSIZE=75MapSize=400%2C300JavaOff.x=14JavaOff.y=21PREVIOUS_MODE=0; target=_top 
rel=nofollowhttp://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Ydrain_fn=Ybathymetry=Ypopplace=Yprov_bound=Yfedlimit=Yland_fn=YViewRegion=Quick+Viewminx=-2601225.031773miny=-712631.00maxx=3474025.031773maxy=384.00imagewidth=400imageheight=300CMD=INPUT_TYPE=INPUT_COORD=KEYMAPXSIZE=100KEYMAPYSIZE=75MapSize=400%2C300JavaOff.x=14JavaOff.y=21PREVIOUS_MODE=0/abrbrbrHerewith i am attaching the screen shot of the page for your view
brnbsp;
bri am struggling to solve this problem for the past two days.. 
nbsp;someone
brplease help me out.
brbrany help/tips will be appreciated
brbrThanks,
brzizu nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
brbra href=http://n2.nabble.com/file/n2524064/Screenshot-1.png; target=_topScreenshot-1.png/a
  



--
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58N 12°29'13.39E


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


Re: [mapserver-users] Include directive and mapscript

2009-03-24 Thread Yewondwossen Assefa

Paul,

 I could not reproduce this behavior locally. The fact that a layer 
comes from an include file or is in a map file should not make any 
difference since they all end up as part of the map object internally 
(no distinction where the layer comes from).  Not sure what to suggest 
if your include was done successfully. Maybe doing a map-save and 
making sure that all expected layers are there. If the map file seems 
fine and you still have a problem with that function, I am willing to 
test it if you provide me with the map file.


Best Regards,

Paul Moen wrote:
I have found that the method getLayersIndexByGroup(string groupname) 
does not find layers that are included from a different file.


$llist=$map-getLayersIndexByGroup(Political Boundaries);

$llist does not contain the indexes of any layers that are in the 
include file.  Once, I copied the layer into the mapfile the layer was 
listed in the array.


Is this a bug?

Thanks,

Paul

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




--

Assefa Yewondwossen
Software Analyst

Email: ass...@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


Re: [mapserver-users] gmap demo - map is not displaying

2009-03-24 Thread Jeff McKenna

zizu wrote:

hello users...
brbrI am a newbie nbsp;to mapserver. i am trying to get the gamp demo to 
run in my
brmachine fedora 9. i have installed FGS- mapserver 5.2.1 a Stand alone 
environment.
brI have done all the steps given in the Gmap demo Installation file.
bri have added the AddTypes in the httpd.cong. Perhaps i have made the edits
brin the php.ini file. now when i call nbsp;the
brbra href=http://localhost/gmap/gmap75.phtml; target=_top 
rel=nofollowhttp://localhost/gmap/gmap75.phtml/abrbri stunned to see everything is projecting except the 
map is not rendering.
brat the beginning i thought it might be a problem of the java mode is enabled
brthen i tried to disabled that but i failed it was also not working 
nbsp;Then i looked into the httpd error log file ...
bri got this following error
brbr[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_.gif, referer: a href=http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Ydrain_fn=Ybathymetry=Ypopplace=Yprov_bound=Yfedlimit=Yland_fn=YViewRegion=Quick+Viewminx=-2601225.031773miny=-712631.00maxx=3474025.031773maxy=384.00imagewidth=400imageheight=300CMD=INPUT_TYPE=INPUT_COORD=KEYMAPXSIZE=100KEYMAPYSIZE=75MapSize=400%2C300JavaOff.x=14JavaOff.y=21PREVIOUS_MODE=0; target=_top rel=nofollowhttp://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Ydrain_fn=Ybathymetry=Ypopplace=Yprov_bound=Yfedlimit=Yland_fn=YViewRegion=Quick+Viewminx=-2601225.031773miny=-712631.00maxx=3474025.031773maxy=384.00imagewidth=400imageheight=300CMD=INPUT_TYPE=INPUT_COORD=KEYMAPXSIZE=100KEYMAPYSIZE=75MapSize=400%2C300JavaOff.x=14JavaOff.y=21PREVIOUS_MODE=0/abr[Tue Mar 24 

05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_0.gif, referer: a 
href=http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Ydrain_fn=Ybathymetry=Ypopplace=Yprov_bound=Yfedlimit=Yland_fn=YViewRegion=Quick+Viewminx=-2601225.031773miny=-712631.00maxx=3474025.031773maxy=384.00imagewidth=400imageheight=300CMD=INPUT_TYPE=INPUT_COORD=KEYMAPXSIZE=100KEYMAPYSIZE=75MapSize=400%2C300JavaOff.x=14JavaOff.y=21PREVIOUS_MODE=0;
 target=_top 
rel=nofollowhttp://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Ydrain_fn=Ybathymetry=Ypopplace=Yprov_bound=Yfedlimit=Yland_fn=YViewRegion=Quick+Viewminx=-2601225.031773miny=-712631.00maxx=3474025.031773maxy=384.00imagewidth=400imageheight=300CMD=INPUT_TYPE=INPUT_COORD=KEYMAPXSIZE=100KEYMAPYSIZE=75MapSize=400%2C300JavaOff.x=14JavaOff.y=21PREVIOUS_MODE=0/abr[Tue
 Mar 24 05:13:02 2009] [error] [clien
t 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_1.png, referer: a 
href=http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Ydrain_fn=Ybathymetry=Ypopplace=Yprov_bound=Yfedlimit=Yland_fn=YViewRegion=Quick+Viewminx=-2601225.031773miny=-712631.00maxx=3474025.031773maxy=384.00imagewidth=400imageheight=300CMD=INPUT_TYPE=INPUT_COORD=KEYMAPXSIZE=100KEYMAPYSIZE=75MapSize=400%2C300JavaOff.x=14JavaOff.y=21PREVIOUS_MODE=0;
 target=_top 
rel=nofollowhttp://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Ydrain_fn=Ybathymetry=Ypopplace=Yprov_bound=Yfedlimit=Yland_fn=YViewRegion=Quick+Viewminx=-2601225.031773miny=-712631.00maxx=3474025.031773maxy=384.00imagewidth=400imageheight=300CMD=INPUT_TYPE=INPUT_COORD=KEYMAPXSIZE=100KEYMAPYSIZE=75MapSize=400%2C300JavaOff.x=14JavaOff.y=21PREVIOUS_MODE=0/abrbrbrHerewith
 i am attaching the screen shot of the page for your v
iew

brnbsp;
bri am struggling to solve this problem for the past two days.. 
nbsp;someone
brplease help me out.
brbrany help/tips will be appreciated
brbrThanks,
brzizu nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
brbra href=http://n2.nabble.com/file/n2524064/Screenshot-1.png; target=_topScreenshot-1.png/a


FGS actually has a downloadable module for gmap (listed at 
http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/) that you 
should be using with FGS (no configuring necessary).  If you have more 
FGS questions I would use the FGS mailing list.


-jeff




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


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


Re: [mapserver-users] Include directive and mapscript

2009-03-24 Thread Paul Moen

Here is the fedlands.map that I am including.

LAYER
  PROJECTION
init=epsg:4326
  END
  GROUP Political Boundaries
  NAME Public Land Management Agencies
  TYPE RASTER
  STATUS ON
  CONNECTION http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false 


  CONNECTIONTYPE WMS
  METADATA
  wms_srs EPSG:4326
  wms_name SMA_ALL
  wms_server_version 1.1.1
  wms_format image/gif
  END
END

This is the section of the mapfile that the include is located.


INCLUDE 'fedlands.map'


The output of the map-save function gives the layer below, which no  
longer has the GROUP.  Somewhere along the line the GROUP directive is  
disappearing from my layer when it is included.


LAYER
CONNECTION http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false 


CONNECTIONTYPE WMS
METADATA
  wms_srs   EPSG:4326
  wms_name  SMA_ALL
  wms_formatimage/gif
  wms_server_version1.1.1
END
NAME All Public Land Management Agencies
PROJECTION
  init=epsg:4326
END
STATUS ON
TYPE RASTER
UNITS METERS
  END


Any Ideas?

Paul
 


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


[mapserver-users] queryByAttribute in C# mapscript

2009-03-24 Thread Murty Maganti
Hi

 

I am using queryByAttribute on a SDE layer with a simple expression,
'OBJECTID = 750'. The method returns MS_FAILURE, though it is valid
expression. I can run same query in ArcCatalog and get the result back.

 

What do I need to verify here. I usually I check that there is template
name defined and maxscaledenom is set to -1. What else I am missing.

 

This is what is logged by map server

 

[Mon Mar 23 18:02:25 2009].834000
msConnPoolRequest(Canlur,vmonp03,port:5154,dmtigdb,dmtigdb,password) -
got 1D49DFF8

[Mon Mar 23 18:02:25 2009].834000 msSDELayerOpen(): Layer Canlur
specified version SDE.DEFAULT.

[Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerInfo(): Looking for layer
by TESTGDB.CANLUR, SHAPE, vmonp03,port:5154,dmtigdb,dmtigdb,password

[Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerId(): Matched layer to id
112.

[Mon Mar 23 18:02:25 2009].834000 Getting all column information in
msSDELayerInitItemInfo

[Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
for OBJECTID

[Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
for CATEGORY

[Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
for SHAPE

[Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
for OID

[Mon Mar 23 18:02:35 2009].338000 getSymbol(): Symbol definition error.
Parsing error near (OBJECTID):(line 831)

[Mon Mar 23 18:02:35 2009].37 msQueryByAttributes(): Search returned
no results. No matching record(s) found.

 

I used another field PARCELID, which is also numeric but still does not
work.

 

Thanks

Murty

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


Re: [mapserver-users] queryByAttribute in C# mapscript

2009-03-24 Thread Tamas Szekeres
How is your mapfile looking like. Parsing error near (OBJECTID) seems a bit
strange here

Best regards,

Tamas




2009/3/24 Murty Maganti mmaga...@oriongis.com

  Hi



 I am using queryByAttribute on a SDE layer with a simple expression,
 ‘OBJECTID = 750’. The method returns MS_FAILURE, though it is valid
 expression. I can run same query in ArcCatalog and get the result back.



 What do I need to verify here. I usually I check that there is template
 name defined and maxscaledenom is set to -1. What else I am missing.



 This is what is logged by map server



 [Mon Mar 23 18:02:25 2009].834000
 msConnPoolRequest(Canlur,vmonp03,port:5154,dmtigdb,dmtigdb,password) - got
 1D49DFF8

 [Mon Mar 23 18:02:25 2009].834000 msSDELayerOpen(): Layer Canlur specified
 version SDE.DEFAULT.

 [Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerInfo(): Looking for layer by
 TESTGDB.CANLUR, SHAPE, vmonp03,port:5154,dmtigdb,dmtigdb,password

 [Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerId(): Matched layer to id
 112.

 [Mon Mar 23 18:02:25 2009].834000 Getting all column information in
 msSDELayerInitItemInfo

 [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
 for OBJECTID

 [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
 for CATEGORY

 [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
 for SHAPE

 [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
 for OID

 [Mon Mar 23 18:02:35 2009].338000 getSymbol(): Symbol definition error.
 Parsing error near (OBJECTID):(line 831)

 [Mon Mar 23 18:02:35 2009].37 msQueryByAttributes(): Search returned no
 results. No matching record(s) found.



 I used another field PARCELID, which is also numeric but still does not
 work.



 Thanks

 Murty

 ___
 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] queryByAttribute in C# mapscript

2009-03-24 Thread Murty Maganti
Hi 

 

Here is the entry in map file (removed CLASS portion)

 

  LAYER

CONNECTION vmonp03,port:5154,dmtigdb,dmtigdb,password

CONNECTIONTYPE PLUGIN

PLUGIN  msplugin_sde_92.dll

DATA DMTIGDB.CANLUR,SHAPE,SDE.DEFAULT

NAME Canlur

PROCESSING CLOSE_CONNECTION=DEFER

 

 CLASS

  --

  END

 

END

 

I think the parsing error is coming from query expression. If I use
PARCELD=123, then it writes 'Parsing error near(PARCELID)' to log.

 

Thanks

Murty

From: Tamas Szekeres [mailto:szeker...@gmail.com] 
Sent: Tuesday, March 24, 2009 11:17 AM
To: Murty Maganti
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] queryByAttribute in C# mapscript

 

How is your mapfile looking like. Parsing error near (OBJECTID) seems a
bit strange here

Best regards,

Tamas





2009/3/24 Murty Maganti mmaga...@oriongis.com

Hi

 

I am using queryByAttribute on a SDE layer with a simple expression,
'OBJECTID = 750'. The method returns MS_FAILURE, though it is valid
expression. I can run same query in ArcCatalog and get the result back.

 

What do I need to verify here. I usually I check that there is template
name defined and maxscaledenom is set to -1. What else I am missing.

 

This is what is logged by map server

 

[Mon Mar 23 18:02:25 2009].834000
msConnPoolRequest(Canlur,vmonp03,port:5154,dmtigdb,dmtigdb,password) -
got 1D49DFF8

[Mon Mar 23 18:02:25 2009].834000 msSDELayerOpen(): Layer Canlur
specified version SDE.DEFAULT.

[Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerInfo(): Looking for layer
by TESTGDB.CANLUR, SHAPE, vmonp03,port:5154,dmtigdb,dmtigdb,password

[Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerId(): Matched layer to id
112.

[Mon Mar 23 18:02:25 2009].834000 Getting all column information in
msSDELayerInitItemInfo

[Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
for OBJECTID

[Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
for CATEGORY

[Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
for SHAPE

[Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
for OID

[Mon Mar 23 18:02:35 2009].338000 getSymbol(): Symbol definition error.
Parsing error near (OBJECTID):(line 831)

[Mon Mar 23 18:02:35 2009].37 msQueryByAttributes(): Search returned
no results. No matching record(s) found.

 

I used another field PARCELID, which is also numeric but still does not
work.

 

Thanks

Murty


___
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] Truncating access.log file

2009-03-24 Thread Robert Hicks
Hello all, is there a way to truncate the access.log for Mapserver once it
gets to a certain size? My log file get extremely large and I know webapps
that use log4j have a properties file you can just set the limit in there.
Is there anything similar for Mapserver?
Thanks!

-- 
myspace http://www.myspace.com/diemtvdie
aim hyx1138
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] queryByAttribute in C# mapscript

2009-03-24 Thread Tamas Szekeres
You might want to test with the:

('[Name]'='value')

expression syntax.

Best regards,

Tamas




2009/3/24 Murty Maganti mmaga...@oriongis.com

  Hi



 Here is the entry in map file (removed CLASS portion)



   LAYER

 CONNECTION vmonp03,port:5154,dmtigdb,dmtigdb,password

 CONNECTIONTYPE PLUGIN

 PLUGIN  msplugin_sde_92.dll

 DATA DMTIGDB.CANLUR,SHAPE,SDE.DEFAULT

 NAME Canlur

 PROCESSING CLOSE_CONNECTION=DEFER



  CLASS

   --

   END



 END



 I think the parsing error is coming from query expression. If I use
 PARCELD=123, then it writes ‘Parsing error near(PARCELID)’ to log.



 Thanks

 Murty

 *From:* Tamas Szekeres [mailto:szeker...@gmail.com]
 *Sent:* Tuesday, March 24, 2009 11:17 AM
 *To:* Murty Maganti
 *Cc:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] queryByAttribute in C# mapscript



 How is your mapfile looking like. Parsing error near (OBJECTID) seems a bit
 strange here

 Best regards,

 Tamas



  2009/3/24 Murty Maganti mmaga...@oriongis.com

 Hi



 I am using queryByAttribute on a SDE layer with a simple expression,
 ‘OBJECTID = 750’. The method returns MS_FAILURE, though it is valid
 expression. I can run same query in ArcCatalog and get the result back.



 What do I need to verify here. I usually I check that there is template
 name defined and maxscaledenom is set to -1. What else I am missing.



 This is what is logged by map server



 [Mon Mar 23 18:02:25 2009].834000
 msConnPoolRequest(Canlur,vmonp03,port:5154,dmtigdb,dmtigdb,password) - got
 1D49DFF8

 [Mon Mar 23 18:02:25 2009].834000 msSDELayerOpen(): Layer Canlur specified
 version SDE.DEFAULT.

 [Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerInfo(): Looking for layer by
 TESTGDB.CANLUR, SHAPE, vmonp03,port:5154,dmtigdb,dmtigdb,password

 [Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerId(): Matched layer to id
 112.

 [Mon Mar 23 18:02:25 2009].834000 Getting all column information in
 msSDELayerInitItemInfo

 [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
 for OBJECTID

 [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
 for CATEGORY

 [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
 for SHAPE

 [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info
 for OID

 [Mon Mar 23 18:02:35 2009].338000 getSymbol(): Symbol definition error.
 Parsing error near (OBJECTID):(line 831)

 [Mon Mar 23 18:02:35 2009].37 msQueryByAttributes(): Search returned no
 results. No matching record(s) found.



 I used another field PARCELID, which is also numeric but still does not
 work.



 Thanks

 Murty


 ___
 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] Include directive and mapscript

2009-03-24 Thread Yewondwossen Assefa

Not sure why would that happen.
Just as a note, the 2 layers you sent in this e-mail have a different 
values for the NAME parameter. Is it possible that you do not include 
the correct layer?


Paul Moen wrote:

Here is the fedlands.map that I am including.

LAYER
  PROJECTION
init=epsg:4326
  END
  GROUP Political Boundaries
  NAME Public Land Management Agencies
  TYPE RASTER
  STATUS ON
  CONNECTION 
http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false; 


  CONNECTIONTYPE WMS
  METADATA
  wms_srs EPSG:4326
  wms_name SMA_ALL
  wms_server_version 1.1.1
  wms_format image/gif
  END
END

This is the section of the mapfile that the include is located.


INCLUDE 'fedlands.map'


The output of the map-save function gives the layer below, which no 
longer has the GROUP.  Somewhere along the line the GROUP directive is 
disappearing from my layer when it is included.


LAYER
CONNECTION 
http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false; 


CONNECTIONTYPE WMS
METADATA
  wms_srsEPSG:4326
  wms_nameSMA_ALL
  wms_formatimage/gif
  wms_server_version1.1.1
END
NAME All Public Land Management Agencies
PROJECTION
  init=epsg:4326
END
STATUS ON
TYPE RASTER
UNITS METERS
  END


Any Ideas?

Paul
 






--

Assefa Yewondwossen
Software Analyst

Email: ass...@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


RE: [mapserver-users] Projection object parameters for UTM to lat-long

2009-03-24 Thread Bistrais, Bob
Hi Pietro,
 
That was it!  After making this correction, it works!  
 
Thank you,
Bob



From: Pietro Giannini [mailto:pgiann...@bytewise.it] 
Sent: Tuesday, March 24, 2009 6:12 AM
To: mapserver-users
Subject: Re: [mapserver-users] Projection object parameters for UTM to lat-long


Bob,
maybe error is in first line: ellps-GRS80 is wrong, ellps=GRS80 is correct.
bye
pg

Bistrais, Bob ha scritto: 

I am trying to project an object from UTM to lat-long.  I cannot get 
the projection to work, and I suspect it's the parameters for the UTM 
projection object.  I am trying to project from UTM Zone 19N, NAD 1983 to 
lat-long.  Here is my code:

$projInObj = 
ms_newprojectionobj(proj=utm,ellps-GRS80,datum=NAD83,zone=19,units=m,north,no_defs);
 
$projOutObj = ms_newprojectionobj(proj=latlong); 
$poPoint = ms_newpointobj(); 
$poPoint-setXY($xmin, $ymin); 
echo p/Coords:  . $poPoint-x . ,.$poPoint-y; 
$poPoint = $poPoint-project($projInObj, $projOutObj); 
echo p/x =  . $poPoint-x; 
echo p/y =  . $poPoint-y; 
$poPoint-free(); 

I can see the output using the echo lines.  The coordinates going into 
the point show up and are correct, but there are no x/y values after doing the 
project.  Can anyone see what I'm doing wrong?





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



-- 
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58N 12°29'13.39E
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WMS question

2009-03-24 Thread Murty Maganti
Hello 

 

I have an issue using a WMS layer from
http://njwebmap.state.nj.us/njorthos in map file. mapObj.draw() throws
an exception.

 

This is the URL constructed by map server

 

http://njwebmap.state.nj.us/njorthos?LAYERS=Infrared2007,Natural2007REQ
UEST=GetMapSERVICE=WMSFORMAT=image/jpegSTYLES=,HEIGHT=415VERSION=1.
1.1SRS=EPSG:4326WIDTH=578BBOX=-76.4510022342995,38.91088,-73.01986476
57005,41.372736TRANSPARENT=TRUEEXCEPTIONS=application/vnd.ogc.se_inima
ge

 

If I run this URL in a browser, it still gives error. But if I remove
EXCEPTIONS=application/vnd.ogc.se_inimage, then it works fine. 

 

Is there a way to suppress the exceptions tag appended by map server

 

Thanks

Murty

 

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


[mapserver-users] RE: nquery against postgis layer

2009-03-24 Thread Fawcett, David
To answer my own question...

It turns out that in the query for my data statement, I was using a
character column that didn't have a unique constraint on it.  When I
changed the statement to reference the gid column (e.g.  'using unique
gid'), it worked.  

David.

To paraphrase Dr. Dre, 'nothing but a gid thang...'

-Original Message-
From: Fawcett, David 
Sent: Monday, March 23, 2009 3:11 PM
To: mapserver-users@lists.osgeo.org
Subject: nquery against postgis layer


I am banging my head against an nquery request to a postgis based layer.
This is on MS 5.2.1 on OSX using William's binaries.  

I can draw the layer in mode=map, but when I use mode=nquery, the query
doesn't return any results and my templates aren't populated properly.
I am not passing a point or extent in the query request URL.  

I have a similar nquery request against a shapefile based layer and it
works fine.  

Can anyone think of anything PostGIS specific that might cause this?  I
did a quick search of bug tickets in Trac and the listserv and didn't
see anything.  

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