redlines broke

Jim O'Leary joleary.public at gmail.com
Sat Nov 25 12:07:59 EST 2006


I get these three messages when I attempt to draw a redline:


[Sat Nov 25 09:02:19 2006] [error] [client 127.0.0.1] FastCGI: server
"C:/Program
Files/Autodesk/MapGuideEnterprise2007/WebServerExtensions/Php/php-cgi.exe"
stderr: PHP Warning:  Missing argument 7 for BuildClientSideTree() in
C:\\Program
Files\\Autodesk\\MapGuideEnterprise2007\\WebServerExtensions\\www\\mapviewerphp\\legend.php
on line 181, referer:
http://localhost/mapguide/mapviewerphp/legendctrl.php?MAPNAME=saturnaMapy&SESSION=9c1caa18-ffff-ffff-8000-001143d33b8f_en&LOCALE=en

[Sat Nov 25 09:02:20 2006] [warn] FastCGI: (dynamic) server "C:/Program
Files/Autodesk/MapGuideEnterprise2007/WebServerExtensions/www/mapagent/MapAgent.exe"
(pid 3996) termination signaled

[Sat Nov 25 09:02:21 2006] [warn] FastCGI: (dynamic) server "C:/Program
Files/Autodesk/MapGuideEnterprise2007/WebServerExtensions/www/mapagent/MapAgent.exe"
(pid 3996) terminated with exit with status '0'



I also note that when I run the sample code, which calls
add_layer_definition_to_map() in

www\devguide\modifying_maps_and_layers\layer_functions.php

that the
"$domDocument->schemaValidate("$schemaDirectory\LayerDefinition-1.0.0.xsd"

 method tells me that the XML is invalid. When I call the same function from
my redline app, it passes validation. Yet I have copied my valid XML to the
sample and it still comes out as invalid. Here they are:

------------------------------invalid draw_line.php XML
BEGINS------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<LayerDefinition version="1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="LayerDefinition-1.0.0.xsd">
    <VectorLayerDefinition>
     
<ResourceId>Session:d316121c-ffff-ffff-8000-001143d33b8f_en//TemporaryLines.FeatureSource</ResourceId>
      <FeatureName>PointSchema:Points</FeatureName>
      <FeatureNameType>FeatureClass</FeatureNameType>
      <Geometry>SHPGEOM</Geometry>
      <VectorScaleRange>
        <MinScale>0</MinScale>
        <MaxScale>1000000000000</MaxScale>
        <LineTypeStyle>
          <LineRule>
            <LegendLabel>Lines</LegendLabel>
            <Filter></Filter>
            <LineSymbolization2D>              
              <LineStyle>Solid</LineStyle>
              <Thickness>1</Thickness>
              <Color>FF0000FF</Color>
              <Unit>Points</Unit>
            </LineSymbolization2D>
          </LineRule>
        </LineTypeStyle>
        <PointTypeStyle>
          <DisplayAsText>false</DisplayAsText>
          <AllowOverpost>false</AllowOverpost>
          <PointRule>          
            <LegendLabel>Points</LegendLabel>
            <Filter></Filter>
            <Label>
                <Unit>Points</Unit>
                <SizeContext>DeviceUnits</SizeContext>
                <SizeX>12</SizeX>
                <SizeY>12</SizeY>
                <Rotation>0</Rotation>
                <Text>ID</Text>
                <FontName>Arial</FontName>
                <ForegroundColor>FF000000</ForegroundColor>
                <BackgroundColor>FF000000</BackgroundColor>
                <BackgroundStyle>Transparent</BackgroundStyle>
                <HorizontalAlignment>Center</HorizontalAlignment>
                <VerticalAlignment>Baseline</VerticalAlignment>
                <Bold>false</Bold>
                <Italic>false</Italic>
                <Underlined>false</Underlined>

            </Label>
            <PointSymbolization2D>
                <W2D>
                  <Unit>Points</Unit>
                  <SizeContext>DeviceUnits</SizeContext>
                  <SizeX>24</SizeX>
                  <SizeY>24</SizeY>
                  <Rotation>0</Rotation>
                  <MaintainAspect>true</MaintainAspect>
                  <W2DSymbol>
                   
<ResourceId>Library://Samples/Sheboygan/Symbols/BasicSymbols.SymbolLibrary</ResourceId>
                    <LibraryItemName>PushPin</LibraryItemName>
                  </W2DSymbol>
                  <FillColor>FF0000FF</FillColor>
                  <LineColor>FF000000</LineColor>
                  <TextColor>FF000000</TextColor>
                </W2D>

            </PointSymbolization2D>
          </PointRule>
       
         </PointTypeStyle>
      </VectorScaleRange>
    </VectorLayerDefinition>
  </LayerDefinition>
----------------------------invalid draw_line.php XML ENDS----------------


-------------------------valid redline_scriptframe.php XML
BEGINS-------------

<?xml version="1.0" encoding="UTF-8"?>
<LayerDefinition version="1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="LayerDefinition-1.0.0.xsd">
    <VectorLayerDefinition>
     
<ResourceId>Session:da60765c-ffff-ffff-8000-001143d33b8f_en//TemporaryLines.FeatureSource</ResourceId>
      <FeatureName>PointSchema:Points</FeatureName>
      <FeatureNameType>FeatureClass</FeatureNameType>
      <Geometry>SHPGEOM</Geometry>
      <VectorScaleRange>
        <MinScale>0</MinScale>
        <MaxScale>1000000000000</MaxScale>
        <LineTypeStyle>
          <LineRule>
            <LegendLabel>Lines</LegendLabel>
            <Filter></Filter>
            <LineSymbolization2D>              
              <LineStyle>Solid</LineStyle>
              <Thickness>1</Thickness>
              <Color>FF0000FF</Color>
              <Unit>Points</Unit>
            </LineSymbolization2D>
          </LineRule>
        </LineTypeStyle>
        <PointTypeStyle>
          <DisplayAsText>false</DisplayAsText>
          <AllowOverpost>false</AllowOverpost>
          <PointRule>          
            <LegendLabel>Points</LegendLabel>
            <Filter></Filter>
            <Label>
                <Unit>Points</Unit>
                <SizeContext>DeviceUnits</SizeContext>
                <SizeX>12</SizeX>
                <SizeY>12</SizeY>
                <Rotation>0</Rotation>
                <Text>ID</Text>
                <FontName>Arial</FontName>
                <ForegroundColor>FF000000</ForegroundColor>
                <BackgroundColor>FF000000</BackgroundColor>
                <BackgroundStyle>Transparent</BackgroundStyle>
                <HorizontalAlignment>Center</HorizontalAlignment>
                <VerticalAlignment>Baseline</VerticalAlignment>
                <Bold>false</Bold>
                <Italic>false</Italic>
                <Underlined>false</Underlined>

            </Label>
            <PointSymbolization2D>
                <W2D>
                  <Unit>Points</Unit>
                  <SizeContext>DeviceUnits</SizeContext>
                  <SizeX>24</SizeX>
                  <SizeY>24</SizeY>
                  <Rotation>0</Rotation>
                  <MaintainAspect>true</MaintainAspect>
                  <W2DSymbol>
                   
<ResourceId>Library://Samples/Sheboygan/Symbols/BasicSymbols.SymbolLibrary</ResourceId>
                    <LibraryItemName>PushPin</LibraryItemName>
                  </W2DSymbol>
                  <FillColor>FF0000FF</FillColor>
                  <LineColor>FF000000</LineColor>
                  <TextColor>FF000000</TextColor>
                </W2D>

            </PointSymbolization2D>
          </PointRule>
       
         </PointTypeStyle>
      </VectorScaleRange>
    </VectorLayerDefinition>
  </LayerDefinition>
-----------------------valid redline_scriptframe.php XML
ENDS-------------------

Thanks for your help.


Tom Fukushima wrote:
> 
> Hi Jim,
> 
> When you run your app, do you get any errors logged to the server error
> log?  If so could you post them and we can take a look.
> 
> Thanks
> Tom 
> 
> -----Original Message-----
> From: Jim O'Leary [mailto:joleary.public at gmail.com] 
> Sent: Friday, November 24, 2006 11:47 PM
> To: dev at mapguide.osgeo.org
> Subject: [mapguide-dev] redlines broke
> 
> 
> I had a redline sample working based on the Dev Guide sample app at:
> 
> /mapguide/devguide/digitizing_features/main.php
> 
> We applied the service pack and it no longer works. Neither does the
> sample app. Did something change?
> 
> Thanks
> --
> View this message in context:
> http://www.nabble.com/redlines-broke-tf2702451.html#a7535587
> Sent from the MapGuide Dev mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: dev-help at mapguide.osgeo.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: dev-help at mapguide.osgeo.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/redlines-broke-tf2702451.html#a7540216
Sent from the MapGuide Dev mailing list archive at Nabble.com.





More information about the Mapguide-internals mailing list