Re: [mapserver-users] GEOMTRANSFORM definition causing an error
Changing to: GEOMTRANSFORM (buffer([shape], 0.0) ...has the same error result. There are a total of 5 mapserver calls to load the web page (I'm using leaflet in the browser). The error occurs on the very first call to mapserver from an ajax request which is requesting the un-buffered parcel layer (not the one with the GEOMTRANFORM option). The GET request URL is: http://wfsd.visualapms.com/wfs.php?SERVICE=WFSVERSION=1.1.0REQUEST=getfeatureTYPENAME=parcelsSRSNAME=EPSG:4269OUTPUTFORMAT=jsonFILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3EPARCEL_ID%3C/PropertyName%3E%3CLiteral%3E78517%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E ...and this is returned to the browser... NetworkError: 500 Internal Server Error - http://wfsd.visualapms.com/wfs.php?SERVICE=WFSVERSION=1.1.0REQUEST=getfeatureTYPENAME=parcelsSRSNAME=EPSG:4269OUTPUTFORMAT=jsonFILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3EPARCEL_ID%3C/PropertyName%3E%3CLiteral%3E78517%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E; You could test the url yourself. When debugging the ajax response, the 8102 is the line number in jQuery 1.7.1 core. Not sure why jquery is coughing there, but the request object and error are returned to the ajax error function. I have not used shp2img before, I'll need to research to give you an answer for that. I'll see if I can get the data in shapefile format which will require some work with the server admin. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080554.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] GEOMTRANSFORM definition causing an error
If the GDAL on your system is compiled with Oracle support, you could use ogr2ogr to create a shapefile copy of your data from Oracle. http://www.gdal.org/ogr2ogr.html If you want to do it with a GUI, you could probably use the QGIS. I believe that QGIS 2.0 now has Oracle Spatial support out of the box. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of tday Sent: Friday, September 27, 2013 8:16 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] GEOMTRANSFORM definition causing an error Changing to: GEOMTRANSFORM (buffer([shape], 0.0) ...has the same error result. There are a total of 5 mapserver calls to load the web page (I'm using leaflet in the browser). The error occurs on the very first call to mapserver from an ajax request which is requesting the un-buffered parcel layer (not the one with the GEOMTRANFORM option). The GET request URL is: http://wfsd.visualapms.com/wfs.php?SERVICE=WFSVERSION=1.1.0REQUEST=getfeatureTYPENAME=parcelsSRSNAME=EPSG:4269OUTPUTFORMAT=jsonFILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3EPARCEL_ID%3C/PropertyName%3E%3CLiteral%3E78517%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E ...and this is returned to the browser... NetworkError: 500 Internal Server Error - http://wfsd.visualapms.com/wfs.php?SERVICE=WFSVERSION=1.1.0REQUEST=getfeatureTYPENAME=parcelsSRSNAME=EPSG:4269OUTPUTFORMAT=jsonFILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3EPARCEL_ID%3C/PropertyName%3E%3CLiteral%3E78517%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E; You could test the url yourself. When debugging the ajax response, the 8102 is the line number in jQuery 1.7.1 core. Not sure why jquery is coughing there, but the request object and error are returned to the ajax error function. I have not used shp2img before, I'll need to research to give you an answer for that. I'll see if I can get the data in shapefile format which will require some work with the server admin. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080554.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
Re: [mapserver-users] GEOMTRANSFORM definition causing an error
On 9/27/2013 9:16 AM, tday wrote: Changing to: GEOMTRANSFORM (buffer([shape], 0.0) ...has the same error result. There are a total of 5 mapserver calls to load the web page (I'm using leaflet in the browser). The error occurs on the very first call to mapserver from an ajax request which is requesting the un-buffered parcel layer (not the one with the GEOMTRANFORM option). The GET request URL is: http://wfsd.visualapms.com/wfs.php?SERVICE=WFSVERSION=1.1.0REQUEST=getfeatureTYPENAME=parcelsSRSNAME=EPSG:4269OUTPUTFORMAT=jsonFILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3EPARCEL_ID%3C/PropertyName%3E%3CLiteral%3E78517%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E This is actually calling a PHP script, so you might need to look at this to figure out what is actually getting passed to mapserver or if this is a mapscript program in which case you may need to debug that to see what is happening. It might just be hiding the mapfile parameter. ...and this is returned to the browser... NetworkError: 500 Internal Server Error - http://wfsd.visualapms.com/wfs.php?SERVICE=WFSVERSION=1.1.0REQUEST=getfeatureTYPENAME=parcelsSRSNAME=EPSG:4269OUTPUTFORMAT=jsonFILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3EPARCEL_ID%3C/PropertyName%3E%3CLiteral%3E78517%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E; You could test the url yourself. I get no response back from the above URL which might be interpreted as a timeout and hence a server error. When debugging the ajax response, the 8102 is the line number in jQuery 1.7.1 core. Not sure why jquery is coughing there, but the request object and error are returned to the ajax error function. I have not used shp2img before, I'll need to research to give you an answer for that. Ok it might be easier to do this: /pat/to/mapserv QUERY_STRING='map=/path/to/mapfile.mapSERVICE=WFSVERSION=1.1.0REQUEST=getfeatureTYPENAME=parcelsSRSNAME=EPSG:4269OUTPUTFORMAT=jsonFILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3EPARCEL_ID%3C/PropertyName%3E%3CLiteral%3E78517%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E' and see what this reports. -Steve W I'll see if I can get the data in shapefile format which will require some work with the server admin. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080554.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
Re: [mapserver-users] GEOMTRANSFORM definition causing an error
Here is what the shptoimage did: ... ~]$ shp2img -map_debug 5 -m /.../wfs.map -o test.png [Fri Sep 27 08:44:36 2013].926937 loadLayer(): Unknown identifier. Parsing error near (GEOMTRANSFORM):(line 131) [Fri Sep 27 08:44:36 2013].927117 msFreeMap(): freeing map at 0x9a152f0. loadLayer(): Unknown identifier. Parsing error near (GEOMTRANSFORM):(line 131) br -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080564.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] GEOMTRANSFORM definition causing an error
Thanks, the admin tells me it was created using ArcView, so I've requested an export using ESRI tool chain. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080565.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] GEOMTRANSFORM definition causing an error
Yes, you are correct about the php...here is the entire php code: $request = ms_newowsrequestobj(); $request-loadparams(); $request-setParameter(VERSION,1.1.0); $request-setParameter(SERVICE,WFS); ms_ioinstallstdouttobuffer(); $oMap = ms_newMapobj(mapfiles/wfs.map); $oMap-owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); $buffer = ms_iogetstdoutbufferstring(); header(Access-Control-Allow-Origin: http://wwwd.visualapms.com;); if (strtolower($request-getvaluebyname(REQUEST)) == getcapabilities || (strtolower($request-getvaluebyname(OUTPUTFORMAT)) != json strtolower($request-getvaluebyname(OUTPUTFORMAT)) != geojson)) { header('Content-type: application/xml'); } echo $buffer; ms_ioresethandlers(); I'm thinking the allow-origin header is probably why you could not get a response... -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080566.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] GEOMTRANSFORM definition causing an error
On 9/27/2013 9:56 AM, tday wrote: Here is what the shptoimage did: ... ~]$ shp2img -map_debug 5 -m /.../wfs.map -o test.png [Fri Sep 27 08:44:36 2013].926937 loadLayer(): Unknown identifier. Parsing error near (GEOMTRANSFORM):(line 131) [Fri Sep 27 08:44:36 2013].927117 msFreeMap(): freeing map at 0x9a152f0. loadLayer(): Unknown identifier. Parsing error near (GEOMTRANSFORM):(line 131) br This says that you have an error in the mapfile on line 131 and that likely GEOMTRANSFORM is not supported at the layer level for you version of mapserver. /path/to/mapserv -v will tell you what version you are running. Then check if the GEOMTRANSFORM at the LAYER level is support in that version. -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GEOMTRANSFORM definition causing an error
It appears that layer level GEOMTRANSFORM was added in 6.4 according to the changelog: http://mapserver.org/trunk/development/changelog/changelog-6-4.html ...and it is confirmed we are using 6.2.1 So that is a very basic requirement - looks like my server admin will get to reinstall newest version of mapserver. You guys have been fantastic! I've learned a lot going through this process - Thank you! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080579.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] GEOMTRANSFORM definition causing an error
tday, Note that the *LAYER* geomstransform has been added in 6.4. You can still use the buffer GEOMSTRANSFORM in you style definition. Give it a try. Alan On 13-09-27 10:53 AM, tday wrote: It appears that layer level GEOMTRANSFORM was added in 6.4 according to the changelog: http://mapserver.org/trunk/development/changelog/changelog-6-4.html ...and it is confirmed we are using 6.2.1 So that is a very basic requirement - looks like my server admin will get to reinstall newest version of mapserver. You guys have been fantastic! I've learned a lot going through this process - Thank you! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080579.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 -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GEOMTRANSFORM definition causing an error
Better with an example: LAYER NAME my_layer TYPE LINE STATUS DEFAULT DATA lines.shp CLASS STYLE GEOMTRANSFORM (buffer([shape], 5) ## In pixels WIDTH 2 COLOR 255 0 0 END END END On 13-09-27 10:55 AM, Alan Boudreault wrote: tday, Note that the *LAYER* geomstransform has been added in 6.4. You can still use the buffer GEOMSTRANSFORM in you style definition. Give it a try. Alan On 13-09-27 10:53 AM, tday wrote: It appears that layer level GEOMTRANSFORM was added in 6.4 according to the changelog: http://mapserver.org/trunk/development/changelog/changelog-6-4.html ...and it is confirmed we are using 6.2.1 So that is a very basic requirement - looks like my server admin will get to reinstall newest version of mapserver. You guys have been fantastic! I've learned a lot going through this process - Thank you! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080579.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 -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GEOMTRANSFORM definition causing an error
H...My assumption has been that the style GEOMTRANSFORM will be shown if I am producing an image with mapserver. If all I'm getting is geojson from mapserver, will the style GEOMTRANSFORM be applied? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080590.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] GEOMTRANSFORM definition causing an error
Ah, right. You will need the layer geomtransform for that. On 13-09-27 11:11 AM, tday wrote: H...My assumption has been that the style GEOMTRANSFORM will be shown if I am producing an image with mapserver. If all I'm getting is geojson from mapserver, will the style GEOMTRANSFORM be applied? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080590.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 -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GEOMTRANSFORM definition causing an error
Postscript: Although the upgrade to version 6.4 was necessary, the solution to the error message was happening because the server needed to access X-Requested-With headers. IE, in php... header(Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept); It seems that the addition of the GEOMTRANSFORM triggered this requirement somehow...though I do not understand why. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080619.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] GEOMTRANSFORM definition causing an error
Hello, I'm trying to implement a buffer layer using layer GEOMTRANSFORM. I am adding this line to the second LAYER definition in the following map file: GEOMTRANSFORM (buffer([shape], 150)) After adding this line, Mapserver throws an error: Mapserver response:undefined - Status:error - Error:[Exception... Failure nsresult: 0x80004005 (NS_ERROR_FAILURE) location: JS frame :: http://[domain obscured]/assets/a4f84659/jquery.js :: .send :: line 8102 data: no] The second layer is exactly the same as the first layer except for the GEOMTRANSFORM definition. Any ideas what the problem may be? Thanks! MAP NAMEobscured STATUS ON SIZE912 380 EXTENT -180 -90 180 90 UNITS FEET IMAGECOLOR 255 255 255 FONTSET /web/mapserver/fonts.list CONFIG MS_ERRORFILE stdout # CONFIG MS_ERRORFILE /web/mapserver/ms_error.txt DEBUG 5 OUTPUTFORMAT NAME json DRIVER TEMPLATE #MIMETYPE application/json; subtype=geojson FORMATOPTION FILE=geojson.tmpl END OUTPUTFORMAT NAME geojson DRIVER TEMPLATE #MIMETYPE application/json; subtype=geojson FORMATOPTION FILE=geojson.tmpl END # # Web Interface # WEB IMAGEPATH ../out/ IMAGEURL /out/ METADATA # obscured END END PROJECTION init=epsg:4269 END # # Layers # # # Parcels # LAYER NAME parcels METADATA wfs_title Parcels wfs_srs EPSG:4269 gml_include_items all gml_featureid OBJECTID wfs_enable_request* wfs_getfeature_formatlist gml,json,geojson gml_COUNTRY_ID_type Character gml_STATE_ID_type Character gml_COUNTY_ID_typeCharacter gml_PARCEL_ID_typeCharacter END TYPE POLYGON STATUS ON EXTENT -180 -90 180 90 CONNECTIONTYPE oraclespatial CONNECTION SDE/3nz0rb4rr4g1n@ArcSDE DATA SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID, COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER PROJECTION init=epsg:4269 END # TOLERANCEUNITS feet # TOLERANCE 150 CLASS NAME Parcels STYLE COLOR240 240 240 OUTLINECOLOR 0 0 0 END END END # # Buffered Parcels # LAYER NAME parcelbuffers METADATA wfs_title Parcel Buffers wfs_srs EPSG:4269 gml_include_items all gml_featureid OBJECTID wfs_enable_request* wfs_getfeature_formatlist gml,json,geojson gml_COUNTRY_ID_type Character gml_STATE_ID_type Character gml_COUNTY_ID_typeCharacter gml_PARCEL_ID_typeCharacter END TYPE POLYGON STATUS ON EXTENT -180 -90 180 90 CONNECTIONTYPE oraclespatial CONNECTION SDE/3nz0rb4rr4g1n@ArcSDE DATA SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID, COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER PROJECTION init=epsg:4269 END # GEOMTRANSFORM (buffer([shape], 150)) CLASS NAME Parcel Buffers STYLE COLOR240 240 240 OUTLINECOLOR 0 0 0 END END END END -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269.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] GEOMTRANSFORM definition causing an error
I have no idea why you are getting an error about jquery, but is does look like you might be trying to apply a 150 degree buffer around your feature... I don't know what version you are using, but from this RFC, it appears as though LAYER-level geomtransforms use ground coordinates: http://mapserver.org/development/rfc/ms-rfc-89.html David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of tday Sent: Thursday, September 26, 2013 12:21 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] GEOMTRANSFORM definition causing an error Hello, I'm trying to implement a buffer layer using layer GEOMTRANSFORM. I am adding this line to the second LAYER definition in the following map file: GEOMTRANSFORM (buffer([shape], 150)) After adding this line, Mapserver throws an error: Mapserver response:undefined - Status:error - Error:[Exception... Failure nsresult: 0x80004005 (NS_ERROR_FAILURE) location: JS frame :: http://[domain obscured]/assets/a4f84659/jquery.js :: .send :: line 8102 data: no] The second layer is exactly the same as the first layer except for the GEOMTRANSFORM definition. Any ideas what the problem may be? Thanks! MAP NAMEobscured STATUS ON SIZE912 380 EXTENT -180 -90 180 90 UNITS FEET IMAGECOLOR 255 255 255 FONTSET /web/mapserver/fonts.list CONFIG MS_ERRORFILE stdout # CONFIG MS_ERRORFILE /web/mapserver/ms_error.txt DEBUG 5 OUTPUTFORMAT NAME json DRIVER TEMPLATE #MIMETYPE application/json; subtype=geojson FORMATOPTION FILE=geojson.tmpl END OUTPUTFORMAT NAME geojson DRIVER TEMPLATE #MIMETYPE application/json; subtype=geojson FORMATOPTION FILE=geojson.tmpl END # # Web Interface # WEB IMAGEPATH ../out/ IMAGEURL /out/ METADATA # obscured END END PROJECTION init=epsg:4269 END # # Layers # # # Parcels # LAYER NAME parcels METADATA wfs_title Parcels wfs_srs EPSG:4269 gml_include_items all gml_featureid OBJECTID wfs_enable_request* wfs_getfeature_formatlist gml,json,geojson gml_COUNTRY_ID_type Character gml_STATE_ID_type Character gml_COUNTY_ID_typeCharacter gml_PARCEL_ID_typeCharacter END TYPE POLYGON STATUS ON EXTENT -180 -90 180 90 CONNECTIONTYPE oraclespatial CONNECTION SDE/3nz0rb4rr4g1n@ArcSDE DATA SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID, COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER PROJECTION init=epsg:4269 END # TOLERANCEUNITS feet # TOLERANCE 150 CLASS NAME Parcels STYLE COLOR240 240 240 OUTLINECOLOR 0 0 0 END END END # # Buffered Parcels # LAYER NAME parcelbuffers METADATA wfs_title Parcel Buffers wfs_srs EPSG:4269 gml_include_items all gml_featureid OBJECTID wfs_enable_request* wfs_getfeature_formatlist gml,json,geojson gml_COUNTRY_ID_type Character gml_STATE_ID_type Character gml_COUNTY_ID_typeCharacter gml_PARCEL_ID_typeCharacter END TYPE POLYGON STATUS ON EXTENT -180 -90 180 90 CONNECTIONTYPE oraclespatial CONNECTION SDE/3nz0rb4rr4g1n@ArcSDE DATA SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID, COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER PROJECTION init=epsg:4269 END # GEOMTRANSFORM (buffer([shape], 150)) CLASS NAME Parcel Buffers STYLE COLOR240 240 240 OUTLINECOLOR 0 0 0 END END END END -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269.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
Re: [mapserver-users] GEOMTRANSFORM definition causing an error
So according to this: http://mapserver.org/development/rfc/ms-rfc-89.html Section 2.2 You GEOMTRANSFORM at the LAYER level is expecting your buffer value in ground units, do you really want to buffer your parcel by 150 degrees? Maybe you want to do something like Section 2.3? -Steve W On 9/26/2013 1:20 PM, tday wrote: Hello, I'm trying to implement a buffer layer using layer GEOMTRANSFORM. I am adding this line to the second LAYER definition in the following map file: GEOMTRANSFORM (buffer([shape], 150)) After adding this line, Mapserver throws an error: Mapserver response:undefined - Status:error - Error:[Exception... Failure nsresult: 0x80004005 (NS_ERROR_FAILURE) location: JS frame :: http://[domain obscured]/assets/a4f84659/jquery.js :: .send :: line 8102 data: no] The second layer is exactly the same as the first layer except for the GEOMTRANSFORM definition. Any ideas what the problem may be? Thanks! MAP NAMEobscured STATUS ON SIZE912 380 EXTENT -180 -90 180 90 UNITS FEET IMAGECOLOR 255 255 255 FONTSET /web/mapserver/fonts.list CONFIG MS_ERRORFILE stdout # CONFIG MS_ERRORFILE /web/mapserver/ms_error.txt DEBUG 5 OUTPUTFORMAT NAME json DRIVER TEMPLATE #MIMETYPE application/json; subtype=geojson FORMATOPTION FILE=geojson.tmpl END OUTPUTFORMAT NAME geojson DRIVER TEMPLATE #MIMETYPE application/json; subtype=geojson FORMATOPTION FILE=geojson.tmpl END # # Web Interface # WEB IMAGEPATH ../out/ IMAGEURL /out/ METADATA # obscured END END PROJECTION init=epsg:4269 END # # Layers # # # Parcels # LAYER NAME parcels METADATA wfs_title Parcels wfs_srs EPSG:4269 gml_include_items all gml_featureid OBJECTID wfs_enable_request* wfs_getfeature_formatlist gml,json,geojson gml_COUNTRY_ID_type Character gml_STATE_ID_type Character gml_COUNTY_ID_typeCharacter gml_PARCEL_ID_typeCharacter END TYPE POLYGON STATUS ON EXTENT -180 -90 180 90 CONNECTIONTYPE oraclespatial CONNECTION SDE/3nz0rb4rr4g1n@ArcSDE DATA SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID, COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER PROJECTION init=epsg:4269 END # TOLERANCEUNITS feet # TOLERANCE 150 CLASS NAME Parcels STYLE COLOR240 240 240 OUTLINECOLOR 0 0 0 END END END # # Buffered Parcels # LAYER NAME parcelbuffers METADATA wfs_title Parcel Buffers wfs_srs EPSG:4269 gml_include_items all gml_featureid OBJECTID wfs_enable_request* wfs_getfeature_formatlist gml,json,geojson gml_COUNTRY_ID_type Character gml_STATE_ID_type Character gml_COUNTY_ID_typeCharacter gml_PARCEL_ID_typeCharacter END TYPE POLYGON STATUS ON EXTENT -180 -90 180 90 CONNECTIONTYPE oraclespatial CONNECTION SDE/3nz0rb4rr4g1n@ArcSDE DATA SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID, COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER PROJECTION init=epsg:4269 END # GEOMTRANSFORM (buffer([shape], 150)) CLASS NAME Parcel Buffers STYLE COLOR240 240 240 OUTLINECOLOR 0 0 0 END END END END -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269.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
Re: [mapserver-users] GEOMTRANSFORM definition causing an error
I wish to create a 150 foot buffer and MAP UNITs are set to FEET. Are you implying that buffer units must be specified another way? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080306.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] GEOMTRANSFORM definition causing an error
Thanks for all the quick replies. At this point, I don't care what units it is in - I'd like to get a working prototype. I've made some changes to the map file to see if I can find the cause of my issue. No matter what I do, I get the same error. Again, if I add... GEOMTRANSFORM (buffer([shape], [map_cellsize]*10) ...I get the error. If I comment out that line, no problems. I looked up epsg 4269 and saw it is based on Degrees so I set the UNITS to DD. I've been working with mapserver for a couple of weeks, so let's assume I know next to nil... Here is the most recent map file: MAP NAMEobscured STATUS ON SIZE912 380 EXTENT -180 -90 180 90 UNITS DD IMAGECOLOR 255 255 255 FONTSET /web/mapserver/fonts.list CONFIG MS_ERRORFILE stdout # CONFIG MS_ERRORFILE /web/mapserver/ms_error.txt DEBUG 4 OUTPUTFORMAT NAME json DRIVER TEMPLATE #MIMETYPE application/json; subtype=geojson FORMATOPTION FILE=geojson.tmpl END OUTPUTFORMAT NAME geojson DRIVER TEMPLATE #MIMETYPE application/json; subtype=geojson FORMATOPTION FILE=geojson.tmpl END # # Web Interface # WEB IMAGEPATH ../out/ IMAGEURL /out/ METADATA wfs_srs EPSG:4269 END END PROJECTION init=epsg:4269 END # # Layers # # # Parcels # LAYER NAME parcels METADATA wfs_title Parcels wfs_srs EPSG:4269 gml_include_items all gml_featureid OBJECTID wfs_enable_request* wfs_getfeature_formatlist gml,json,geojson gml_COUNTRY_ID_type Character gml_STATE_ID_type Character gml_COUNTY_ID_typeCharacter gml_PARCEL_ID_typeCharacter END TYPE POLYGON STATUS ON # EXTENT -180 -90 180 90 CONNECTIONTYPE oraclespatial CONNECTION SDE/3nz0rb4rr4g1n@ArcSDE DATA SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID, COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER PROJECTION init=epsg:4269 END CLASS NAME Parcels STYLE COLOR240 240 240 OUTLINECOLOR 0 0 0 END END END # # Buffered Parcels # LAYER NAME parcelbuffers METADATA wfs_title Parcel Buffers wfs_srs EPSG:4269 gml_include_items all gml_featureid OBJECTID wfs_enable_request* wfs_getfeature_formatlist gml,json,geojson gml_COUNTRY_ID_type Character gml_STATE_ID_type Character gml_COUNTY_ID_typeCharacter gml_PARCEL_ID_typeCharacter END TYPE POLYGON UNITS DD STATUS ON EXTENT -180 -90 180 90 CONNECTIONTYPE oraclespatial CONNECTION SDE/3nz0rb4rr4g1n@ArcSDE DATA SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID, COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER PROJECTION init=epsg:4269 END GEOMTRANSFORM (buffer([shape], [map_cellsize]*10) CLASS NAME Parcel Buffers STYLE # GEOMTRANSFORM (buffer([shape], 5) COLOR240 240 240 OUTLINECOLOR 0 0 0 END END END END -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080363.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] GEOMTRANSFORM definition causing an error
tday, Lets try to see if we can eliminate if the value is the problem of the call is the problem. Try this: GEOMTRANSFORM (buffer([shape], 0.0) This should call the buffer and return the same object. If this works then we can assume that buffer is working and the issue is setting a valid value. This also might be related to using the Orcale connection. If you have the same data in a shapefile and could try your test with that that might be revealing. More questions: o Where are you seeing this error message? o Do you get the same error when using shp2img from the command line? o What does you whole mapserver CGI request look like? -Steve W On 9/26/2013 5:43 PM, tday wrote: Thanks for all the quick replies. At this point, I don't care what units it is in - I'd like to get a working prototype. I've made some changes to the map file to see if I can find the cause of my issue. No matter what I do, I get the same error. Again, if I add... GEOMTRANSFORM (buffer([shape], [map_cellsize]*10) ...I get the error. If I comment out that line, no problems. I looked up epsg 4269 and saw it is based on Degrees so I set the UNITS to DD. I've been working with mapserver for a couple of weeks, so let's assume I know next to nil... Here is the most recent map file: MAP NAMEobscured STATUS ON SIZE912 380 EXTENT -180 -90 180 90 UNITS DD IMAGECOLOR 255 255 255 FONTSET /web/mapserver/fonts.list CONFIG MS_ERRORFILE stdout # CONFIG MS_ERRORFILE /web/mapserver/ms_error.txt DEBUG 4 OUTPUTFORMAT NAME json DRIVER TEMPLATE #MIMETYPE application/json; subtype=geojson FORMATOPTION FILE=geojson.tmpl END OUTPUTFORMAT NAME geojson DRIVER TEMPLATE #MIMETYPE application/json; subtype=geojson FORMATOPTION FILE=geojson.tmpl END # # Web Interface # WEB IMAGEPATH ../out/ IMAGEURL /out/ METADATA wfs_srs EPSG:4269 END END PROJECTION init=epsg:4269 END # # Layers # # # Parcels # LAYER NAME parcels METADATA wfs_title Parcels wfs_srs EPSG:4269 gml_include_items all gml_featureid OBJECTID wfs_enable_request* wfs_getfeature_formatlist gml,json,geojson gml_COUNTRY_ID_type Character gml_STATE_ID_type Character gml_COUNTY_ID_typeCharacter gml_PARCEL_ID_typeCharacter END TYPE POLYGON STATUS ON # EXTENT -180 -90 180 90 CONNECTIONTYPE oraclespatial CONNECTION SDE/3nz0rb4rr4g1n@ArcSDE DATA SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID, COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER PROJECTION init=epsg:4269 END CLASS NAME Parcels STYLE COLOR240 240 240 OUTLINECOLOR 0 0 0 END END END # # Buffered Parcels # LAYER NAME parcelbuffers METADATA wfs_title Parcel Buffers wfs_srs EPSG:4269 gml_include_items all gml_featureid OBJECTID wfs_enable_request* wfs_getfeature_formatlist gml,json,geojson gml_COUNTRY_ID_type Character gml_STATE_ID_type Character gml_COUNTY_ID_typeCharacter gml_PARCEL_ID_typeCharacter END TYPE POLYGON UNITS DD STATUS ON EXTENT -180 -90 180 90 CONNECTIONTYPE oraclespatial CONNECTION SDE/3nz0rb4rr4g1n@ArcSDE DATA SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID, COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER PROJECTION init=epsg:4269 END GEOMTRANSFORM (buffer([shape], [map_cellsize]*10) CLASS NAME Parcel Buffers STYLE # GEOMTRANSFORM (buffer([shape], 5) COLOR240 240 240 OUTLINECOLOR 0 0 0 END END END END -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080363.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