Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread tday
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

2013-09-27 Thread tday
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

2013-09-27 Thread tday
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

2013-09-27 Thread tday
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

2013-09-27 Thread tday
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

2013-09-27 Thread tday
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

2013-09-27 Thread tday
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

2013-09-26 Thread tday
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

2013-09-26 Thread tday
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

2013-09-26 Thread tday
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] Submitting filter does not filter - returns all features

2013-09-25 Thread tday
Thanks for the advice. I have not yet gotten the DWithin to work, however, I
was able to put together a successful Intersects filter and I'm going to
work with that for now.

I suspect you are right about the units being at the root of the problem.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Re-Submitting-filter-does-not-filter-returns-all-features-tp5079619p5080013.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