Opened 14 years ago
Closed 12 years ago
#3421 closed enhancement (fixed)
SWIG MapScript Creating a lineObj
Reported by: | lfilak | Owned by: | jmckenna |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Documentation - MapScript | Version: | 5.6 |
Severity: | normal | Keywords: | |
Cc: | havatv, sdlime |
Description
A new lineObj can be created from a bogus symbolObj. Sample in Perl: my $symbol = new mapscript::symbolObj("bogus.sym"); my $line = $symbol->getPoints();
For some unknown reason this is not sufficient enough to create a GEOS polygon, use fromWKT for that.
Change History (7)
comment:1 by , 14 years ago
Component: | MapServer C Library → MapServer Documentation |
---|---|
Owner: | changed from | to
comment:2 by , 14 years ago
Version: | unspecified → 5.6 |
---|
comment:3 by , 13 years ago
Cc: | added |
---|---|
Resolution: | → invalid |
Status: | new → closed |
comment:4 by , 13 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
After looking through the SWIG Mapscript documentation I did not see any way of creating a new lineObj, so I submitted this bug to hopefully give others direction on how to create a new lineObj. The current documentation does not have a "constructor" section for each object so I do not know where to place the information, but "to create a new lineObj with SWIG mapscript use the getPoints method of a blank symbolObj".
comment:5 by , 13 years ago
Cc: | added |
---|
There should be a simple no way to create a line object in swig mapscript. Hopefully there is, and it just needs to be documented. One would expect something like:
new lineObj( ) : lineObj
According to the PHP mapscript documentation you can use the new lineObj()
, or ms_newLineObj()
to create a line object in PHP.
Adding Steve to the CC-list to get a clarification.
comment:6 by , 12 years ago
Component: | Documentation - MapServer → Documentation - MapScript |
---|
comment:7 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
The lineObj constructor seems to be present, so I added it to the mapscript documentation (for trunk and 6.0) in r13304. Closing.
I don't understand what to do. I close it as invalid. Please reopen and clarify if this is still an issue. Preferably with a suggestion for what to include in the documentation and where.